Skip to content

Instantly share code, notes, and snippets.

@BrandonPotter
BrandonPotter / kubernetes-latest-image.md
Last active February 21, 2020 01:20
Force Kubernetes to pull latest container image in a deployment

Force Kubernetes to pull latest container image in a deployment

kubectl patch deployment DEPLOYMENT_NAME -p "{\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"date\":\"`date +'%s'`\"}}}}}"
@BrandonPotter
BrandonPotter / cert-generation-kubernetes-dashboard.md
Last active March 23, 2017 22:02
Cert generation for baremetal Kubernetes CentOS cluster and dashboard config
@BrandonPotter
BrandonPotter / restart-kubectl-master-services.md
Last active February 23, 2021 17:25
Restart Kubernetes Master Services
for SERVICES in etcd kube-apiserver kube-controller-manager kube-scheduler flanneld; do
	systemctl restart $SERVICES
	systemctl enable $SERVICES
	systemctl status $SERVICES
done

restart kubelet/node services

for SERVICES in kube-proxy kubelet flanneld docker; do

systemctl restart $SERVICES