- images cleanup
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
- image cleanup based on name
docker rmi $(docker images | grep "asia.gcr.io" | awk '{print $3}')
kubectl -n kube-system patch daemonset myDaemonset -p '{"spec": {"template": {"spec": {"nodeSelector": {"non-existing": "true"}}}}}'
kubectl -n kube-system patch daemonset myDaemonset --type json -p='[{"op": "remove", "path": "/spec/template/spec/nodeSelector/non-existing"}]'
kubectl config current-context
kubectl cluster-info
kubectl get events
kubectl top pod --all-namespaces
kubectl config current-context
kubectl cluster-info
kubectl get events
kubectl top pod --all-namespaces
version: '3' | |
services: | |
elasticsearch: | |
#image: elasticsearch:5-alpine | |
image: elasticsearch:latest | |
environment: | |
- discovery.type=single-node | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms256m -Xmx256m" | |
ulimits: |
version: '3' | |
services: | |
vault: | |
image: vault:latest | |
container_name: vault-dev | |
ports: | |
- "8200:8200" | |
restart: always | |
environment: | |
VAULT_ADDR: http://127.0.0.1:8200 |
version: '3' | |
services: | |
rabbitmq: | |
image: rabbitmq:3-management | |
container_name: rabbitmq | |
hostname: rabbitmq | |
restart: always | |
ports: | |
- "15672:15672" | |
- "5672:5672" |