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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: external-dns | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: external-dns |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
k8s-app: kube-dns-autoscaler | |
kubernetes.io/cluster-service: "true" | |
name: kube-dns-autoscaler | |
namespace: kube-system | |
spec: | |
progressDeadlineSeconds: 600 |
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 scale deployment.apps/coredns -n kube-system --replicas=0 | |
kubectl scale deployment.apps/coredns -n kube-system --replicas=2 |
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
#!/bin/bash | |
for POD in $(kubectl get pods --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}') | |
do | |
kubectl exec -it ${POD} -- ps aux | |
done |
OlderNewer