- A simple k8s configuration that uses Pod and Service/NodePort
- Single container/pod
This demonstrate that only a limited set of fields can be updated in a Pod config
A pod with an image from Docker Hub
- client-pod.yaml
A NodePort service that config the external port for local computer
- client-node-port.yaml
You can expect to see the following error message if you change the containerPort in the Pod config file.
The Pod "client-pod" is invalid: spec: Forbidden: pod updates may not change fields other than
spec.containers[*].image
,spec.initContainers[*].image
,spec.activeDeadlineSeconds
orspec.tolerations
(only additions to existing tolerations)
We then use deployment to provides declarative updates for Pods
A deployment to run a set of identical pods (with an image from Docker Hub)
- client-deployment.yaml