Re-deploy a Kubernetes deployment
To redeploy a service after an image has been updated: kubectl rollout restart deployment [deployment-name]

Articles, notes and random thoughts on Software Development and Technology
To redeploy a service after an image has been updated: kubectl rollout restart deployment [deployment-name]
I’m deploying an app to Kubernetes that references a Kubernetes Secret that is exported as an env var on the pod. I couldn’t work out why I kept getting this error when the pod was starting up: FATAL: password authentication failed for user “admin” but if I exec’d into the pod to check the value …
Per the k3s docs here, copy the /etc/rancher/k3s/k3s.yaml from your controller to your local machine at ~/.kube/config. Change the server ip to it’s actual ip, and then should be able to use kubectl against the remote cluster.
To create a ‘hostPath’ PersistentVolume in a single node cluster (do not use in a cluster with more than 1 node): kind: PersistentVolume apiVersion: v1 metadata: name: pv1 labels: type: local spec: storageClassName: manual capacity: storage: 1Gi accessModes: – ReadWriteOnce hostPath: path: “/your-path-for-vol1” If the above is pv1.yaml, apply with: kubectl apply -f pv1.yaml For …
Continue reading “Kubernetes: creating a hostPath PersistentVolume in a single node cluster”