Last active
August 14, 2018 18:56
-
-
Save jeefy/dbe0b9087c52f281e0be10b618838aa4 to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"ignition": { | |
"config": {}, | |
"security": { | |
"tls": {} | |
}, | |
"timeouts": {}, | |
"version": "2.2.0" | |
}, | |
"networkd": {}, | |
"passwd": { | |
"users": [ | |
{ | |
"name": "core", | |
"sshAuthorizedKeys": [ | |
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGHZBEQptplOuYg+Ta9VCZKlKU9LoSr9MMDNhGhNmr5crbhVQJSTvt+PyoNZoqGbAzlKSGV9YGsFsP4SVA1q3FVNRK+aMrd8debNOp2wAJvkLJKql46t8BbY6FHRbOxdKwRavbYUfxAL0JXXp4NVDi3Lqr/WWL7yoiI+rCMNcS7TUEFl39B5YUv8GbIo3pqxEPNPfDJ1Jxw0OOdkN1TFHlvBToyp8Ix1NdhIenDdyT3n6HBR+Qeli6Coj6CKeNQkxzTj9vQrEZFTXrI1xbUsmPeOhl/RUnpd5r1kYBDrNLvXLWmvK2xWnduv+Whl7eTeFd8o/w/wx6wlNjCOSWGQKj jeefy@bahamut-vm" | |
] | |
} | |
] | |
}, | |
"storage": { | |
"files": [ | |
{ | |
"filesystem": "root", | |
"path": "/ignition/init/k8s/cni.sh", | |
"contents": { | |
"source": "data:,%23!%2Fbin%2Fbash%0ACNI_VERSION%3D%22v0.6.0%22%0Amkdir%20-p%20%2Fopt%2Fcni%2Fbin%0Acurl%20-L%20%22https%3A%2F%2Fgithub.com%2Fcontainernetworking%2Fplugins%2Freleases%2Fdownload%2F%24%7BCNI_VERSION%7D%2Fcni-plugins-amd64-%24%7BCNI_VERSION%7D.tgz%22%20%7C%20tar%20-C%20%2Fopt%2Fcni%2Fbin%20-xz%0Aecho%20%22CNI%20driver%20installed%22%3B%0A", | |
"verification": {} | |
}, | |
"mode": 480 | |
}, | |
{ | |
"filesystem": "root", | |
"path": "/ignition/init/k8s/kube-tools.sh", | |
"contents": { | |
"source": "data:,%23!%2Fbin%2Fbash%0ARELEASE%3D%22%24(curl%20-sSL%20https%3A%2F%2Fdl.k8s.io%2Frelease%2Fstable.txt)%22%0Amkdir%20-p%20%2Fopt%2Fbin%0Acd%20%2Fopt%2Fbin%0Acurl%20-L%20--remote-name-all%20https%3A%2F%2Fstorage.googleapis.com%2Fkubernetes-release%2Frelease%2F%24%7BRELEASE%7D%2Fbin%2Flinux%2Famd64%2F%7Bkubeadm%2Ckubelet%2Ckubectl%7D%0Achmod%20%2Bx%20%7Bkubeadm%2Ckubelet%2Ckubectl%7D%0AVERSION%3D%22v1.11.1%22%0Awget%20https%3A%2F%2Fgithub.com%2Fkubernetes-incubator%2Fcri-tools%2Freleases%2Fdownload%2F%24VERSION%2Fcrictl-%24VERSION-linux-amd64.tar.gz%0Asudo%20tar%20zxvf%20crictl-%24VERSION-linux-amd64.tar.gz%20-C%20%2Fopt%2Fbin%0Arm%20-f%20crictl-%24VERSION-linux-amd64.tar.gz%0Aecho%20%22Kube%20Tools%20installed.%22%3B%0A", | |
"verification": {} | |
}, | |
"mode": 480 | |
}, | |
{ | |
"filesystem": "root", | |
"path": "/ignition/init/k8s/systemd.sh", | |
"contents": { | |
"source": "data:,%23!%2Fbin%2Fbash%0ARELEASE%3D%22%24(curl%20-sSL%20https%3A%2F%2Fdl.k8s.io%2Frelease%2Fstable.txt)%22%0Acurl%20-sSL%20%22https%3A%2F%2Fraw.githubusercontent.com%2Fkubernetes%2Fkubernetes%2F%24%7BRELEASE%7D%2Fbuild%2Fdebs%2Fkubelet.service%22%20%7C%20sed%20%22s%3A%2Fusr%2Fbin%3A%2Fopt%2Fbin%3Ag%22%20%3E%20%2Fetc%2Fsystemd%2Fsystem%2Fkubelet.service%0Amkdir%20-p%20%2Fetc%2Fsystemd%2Fsystem%2Fkubelet.service.d%0Acurl%20-sSL%20%22https%3A%2F%2Fraw.githubusercontent.com%2Fkubernetes%2Fkubernetes%2F%24%7BRELEASE%7D%2Fbuild%2Fdebs%2F10-kubeadm.conf%22%20%7C%20sed%20%22s%3A%2Fusr%2Fbin%3A%2Fopt%2Fbin%3Ag%22%20%3E%20%2Fetc%2Fsystemd%2Fsystem%2Fkubelet.service.d%2F10-kubeadm.conf%0Aecho%20%22%5BService%5D%22%20%3E%20%2Fetc%2Fsystemd%2Fsystem%2Fkubelet.service.d%2F20-auto-label.conf%0Aecho%20%22Environment%3D%5C%22KUBELET_EXTRA_ARGS%3D--node-labels%3Dnode-role.kubernetes.io%2Fnode%3Dtrue%5C%22%22%20%3E%3E%20%2Fetc%2Fsystemd%2Fsystem%2Fkubelet.service.d%2F20-auto-label.conf%0A%0Asystemctl%20enable%20kubelet%20%26%26%20systemctl%20start%20kubelet%0Aecho%20%22Kubelet%20started%22%3B%0A", | |
"verification": {} | |
}, | |
"mode": 480 | |
}, | |
{ | |
"filesystem": "root", | |
"path": "/ignition/init/k8s/join.sh", | |
"contents": { | |
"source": "data:,%23!%2Fbin%2Fbash%0Asysctl%20net.bridge.bridge-nf-call-iptables%3D1%0A%2Fopt%2Fbin%2Fkubeadm%20join%20192.168.2.100%3A6443%20--token%209qgdzx.da796a32pjkv5dty%20--discovery-token-ca-cert-hash%20sha256%3Ab2558804eca2b8392a67026049b56f3cd3cf881313688d867ba69efae264116c%0A", | |
"verification": {} | |
}, | |
"mode": 480 | |
} | |
], | |
"filesystems": [ | |
{ | |
"mount": { | |
"device": "/dev/sda", | |
"format": "xfs", | |
"label": "ROOT", | |
"wipeFilesystem": true | |
} | |
} | |
] | |
}, | |
"systemd": { | |
"units": [ | |
{ | |
"enabled": true, | |
"name": "docker.service" | |
}, | |
{ | |
"enabled": true, | |
"name": "containerd.service" | |
}, | |
{ | |
"contents": "[Install]\nWantedBy=multi-user.target\n\n[Unit]\nDescription=k8s installation script\nWants=network-online.target\nAfter=network.target network-online.target\n\n[Service]\nType=oneshot\nExecStart=/ignition/init/k8s/cni.sh\n", | |
"enabled": true, | |
"name": "cni-install.service" | |
}, | |
{ | |
"contents": "[Install]\nWantedBy=multi-user.target\n\n[Unit]\nDescription=k8s installation script\nRequires=cni-install.service\nAfter=cni-install.service\n\n[Service]\nType=oneshot\nExecStart=/ignition/init/k8s/kube-tools.sh\n", | |
"enabled": true, | |
"name": "kube-tools-install.service" | |
}, | |
{ | |
"contents": "[Install]\nWantedBy=multi-user.target\n\n[Unit]\nDescription=k8s installation script\nRequires=kube-tools-install.service\nAfter=kube-tools-install.service\n\n[Service]\nType=oneshot\nExecStart=/ignition/init/k8s/systemd.sh\n", | |
"enabled": true, | |
"name": "systemd-k8s-setup.service" | |
}, | |
{ | |
"contents": "[Install]\nWantedBy=multi-user.target\n\n[Unit]\nDescription=k8s join script\nRequires=systemd-k8s-setup.service\nAfter=systemd-k8s-setup.service\n\n[Service]\nType=oneshot\nExecStart=/bin/bash -c 'PATH=/opt/bin:$PATH exec /ignition/init/k8s/join.sh'\n", | |
"enabled": true, | |
"name": "k8s-join.service" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment