* Replica 3, Name : nginx-deployment
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx spec: replicas: 3 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 |
* Create a simple Pod to use as a test environment
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
apiVersion: v1 kind: Pod metadata: name: dnsutils namespace: default spec: containers: - name: dnsutils image: gcr.io/kubernetes-e2e-test-images/dnsutils:1.3 command: - sleep - "3600" imagePullPolicy: IfNotPresent restartPolicy: Always |
* dd
1 |
kubectl apply -f https://k8s.io/examples/admin/dns/dnsutils.yaml |
* cc
*
Ref :
- https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/
- a
- b
- c
- d