Skip to content

Instantly share code, notes, and snippets.

@joshy91
Created July 18, 2018 18:07
Show Gist options
  • Save joshy91/d05cb3c348fe31e21389871af0a9674a to your computer and use it in GitHub Desktop.
Save joshy91/d05cb3c348fe31e21389871af0a9674a to your computer and use it in GitHub Desktop.
#!/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