I am new to k8s and i want to have few clarification on below questions, please let me know ur thoughts
kubectl api-resources
you will get an overview.local proxy
For local development you can have a look at minikube
?
- Does persistent volumes claims are confined to single namespace ?
Persistent Volume Claims(PVC) is bound to namespace. PVC must exist in the same namespace as the Pod using the claim
- How many pod networks can we have per cluster ?
Default maximum of 110 Pods per node, Kubernetes assigns a /24 CIDR block (256 addresses) to each of the nodes.
- Which namespace contains the infrastructure pods ?
Generally kube-system
- Does all objects are restricted to single namespace ?
No, not all objects are restricted to single namespace. You can create objects in different namespaces.
- Does container offer a persistent storage that outlives the container ?
If you use PV/PVC then your storage must be persistent
A Kubernetes pod is a group of containers, and is the smallest unit that Kubernetes administers.
- does a deployment use a persistent volume or a persistent volume claim ?
You need to use PVC in deployment, in volume section like following
volumes:
- name: data
persistentVolumeClaim:
claimName: <pvc name>
- With deployment config spec which strategy(recreate or rollingupdate) allows us to control the updates to pod ?
Recreate will terminate all the running instances then recreate them with the newer version. Rolling update follows defined strategy of how many instance will be down and recreate at a time.
- How can we start local proxy which is useful for development and testing ?
You can use port-forwarding
- Pod can have multiple ip address?
single pod have single ip address. details here