This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// start etcd | |
nohup etcd & | |
// stop etcd | |
kill `pgrep etcd` | |
// get all route info | |
etcdctl get / --prefix --keys-only | |
// delete all route info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl delete pods --all --all-namespaces | |
kubectl delete pod websocket-server-service | |
kubectl delete --all pods --namespace=foo | |
kubectl delete --all deployments --namespace=foo | |
kubectl delete --all namespaces | |
```bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
var validNames = map[string]bool{ | |
"blue": true, | |
"yellow": true, | |
} | |
func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker rm $(docker ps -qf 'status=exited') | |
docker rmi $(docker images -qf 'dangling=true') | |
docker rmi $(docker images -a) | |
docker rmi $(docker images -a) -f | |
docker volume rm $(docker volume ls -qf 'dangling=true') |
NewerOlder