Created
July 18, 2018 18:07
-
-
Save joshy91/d05cb3c348fe31e21389871af0a9674a to your computer and use it in GitHub Desktop.
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 | |
kubectl get daemonsets -n kube-system | |
kubectl describe daemonset kube-flannel-ds -n kube-system | |
echo “apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: chippy | |
labels: | |
daemon: “yup” | |
spec: | |
selector: | |
matchLabels: | |
daemon: “pod” | |
template: | |
metadata: | |
labels: | |
daemon: pod | |
spec: | |
tolerations: | |
- key: node-role.kubernetes.io/master | |
effect: NoSchedule | |
containers: | |
- name: chippy-jr | |
image: nginx” >> nginx-daemonset.yaml | |
kubectl create -f nginx-daemonset.yaml | |
kubectl get daemonsets -n kube-system | |
kubectl get daemonsets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment