Created
January 5, 2026 07:57
-
-
Save ams0/997a889bab58c9a9ad9926589bb592dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # download with: | |
| # curl -Lo cloud-provider-kind "https://github.com/kubernetes-sigs/cloud-provider-kind/releases/download/$(curl -s https://api.github.com/repos/kubernetes-sigs/cloud-provider-kind/releases/latest | jq -r .tag_name)/cloud-provider-kind-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)" && chmod +x cloud-provider-kind && sudo mv cloud-provider-kind /usr/local/bin/ | |
| # then run wget | |
| # # Reload systemd to recognize the new file | |
| # sudo systemctl daemon-reload | |
| # Enable the service to start on boot | |
| # sudo systemctl enable cloud-provider-kind | |
| # Start the service | |
| #sudo systemctl start cloud-provider-kind | |
| [Unit] | |
| Description=cloud-provider-kind Service | |
| After=network.target | |
| # If you want it to wait until docker is ready | |
| Requires=docker.service | |
| After=docker.service | |
| [Service] | |
| Type=simple | |
| # cloud-provider-kind requires root/sudo to manage network interfaces | |
| ExecStart=/usr/local/bin/cloud-provider-kind | |
| Restart=always | |
| RestartSec=5 | |
| # Optional: standard output and error logging | |
| StandardOutput=append:/var/log/cloud-provider-kind.log | |
| StandardError=append:/var/log/cloud-provider-kind.log | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment