-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Benoit Orihuela edited this page Oct 13, 2019
·
3 revisions
- Deploy Mosquitto
kubectl apply -f mosquitto-pod.yaml -f mosquitto-service.yaml -f mosquitto-storage-persistentvolumeclaim.yaml
- Get pods
kubectl get pods
- Get shell into the container
kubectl exec -it mosquitto -- /bin/sh
- Create ConfigMap from a file
kubectl create configmap mysql-init-db --from-file=./data/mobiusdb.sql
- Dump ConfigMap into a yaml file (then
kubectl apply
it as any other config file)
kubectl get configmaps mysql-init-db -o yaml > mysql-configmap.yml