Skip to content

Instantly share code, notes, and snippets.

@ybelleguic
Created April 13, 2021 06:55
Show Gist options
  • Save ybelleguic/d27a3d92da6cc122d685f652ee31d442 to your computer and use it in GitHub Desktop.
Save ybelleguic/d27a3d92da6cc122d685f652ee31d442 to your computer and use it in GitHub Desktop.
Access to minikube internal registry from the host (podman push localhost:5000/myimage:latest)
[Unit]
Description=Minikube Proxy Registry Service
After=network-online.target
After=minikube.service
Requires=minikube.service
[Service]
Type=simple
User=Yohan.Belleguic
Group=Yohan.Belleguic
ExecStart=/bin/bash -c "socat TCP-LISTEN:5000,reuseaddr,fork TCP:$$(minikube ip):5000"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment