Create a busybox pod (using YAML) that runs the command "env". Run it and see the output - Casey-lab-95/cka GitHub Wiki
create a YAML template with this command
kubectl run busybox --image=busybox --restart=Never --dry-run=client -o yaml --command -- env > envpod.yaml
see it
cat envpod.yaml
apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: run: busybox name: busybox spec: containers:
- command:
- env image: busybox name: busybox resources: {} dnsPolicy: ClusterFirst restartPolicy: Never status: {}
apply it and then see the logs
kubectl apply -f envpod.yaml kubectl logs busybox