Junior — Middle
Can you give examples of resources or elements that are part of Kubernetes?
sobes.tech AI
Answer from AI
In Kubernetes, the main resources and elements are:
- Pod: the smallest deployable unit, containing one or more containers.
- Service: an abstraction that provides stable access to a set of Pods.
- Deployment: manages the creation and updating of Pods.
- ConfigMap and Secret: store configuration data and sensitive information.
- Namespace: logical division of resources within the cluster.
- Volume: provides persistent storage for data.
- Ingress: manages external access to services.
Example of a Pod description in YAML:
apiVersion: v1
kind: Pod
metadata:
name: example-pod
spec:
containers:
- name: nginx-container
image: nginx:latest