Useful Kubectl Commands
kubectl run -i --tty --rm debug --image=curlimages/curl --restart=Never -- www.google.com -vvv
kubectl run -i --tty --rm debug --image=busybox --restart=Never -- sh
Testing Volume Mount from Configmap
---
apiVersion: v1
kind: Pod
metadata:
name: busybox1
namespace: spark
labels:
app: busybox1
spec:
containers:
- image: busybox
command:
- sleep
- "3600"
imagePullPolicy: IfNotPresent
name: busybox
volumeMounts:
- name: executor-template
mountPath: "/opt/spark/configs"
readOnly: true
restartPolicy: Always
volumes:
- name: executor-template
configMap:
name: spark-executor-template