kubeadm-commands
kubeadm-commands
Here's an example .yaml file that shows the required fields and object spec for a
Kubernetes Deployment:
application/deployment.yaml
servicefile.yml
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
selector:
app: nginx
type: NodePort
ports:
- protocol: TCP
nodePort: 31000
port: 80
targetPort: 80
https://kubernetes.io/docs/tasks/configure-pod-container/
--------------------------------------------------------------------------------
Replicationsets:
Deployment:
Rollout - new deployment with revision1, if update the image then its Revision2
DS -
Recreate - Destroy all and create new instances (Application will go down)
Rolling Update - one after one
Rollback:
sudo swapoff -a
kubeadm reset