Ignore condition
This commit is contained in:
parent
a22215fa08
commit
ae8ed85e43
2 changed files with 3 additions and 3 deletions
|
@ -16,8 +16,8 @@
|
||||||
copy:
|
copy:
|
||||||
src: "/etc/kubernetes/admin.conf"
|
src: "/etc/kubernetes/admin.conf"
|
||||||
dest: "/root/.kube/config"
|
dest: "/root/.kube/config"
|
||||||
remote_src: yes
|
# remote_src: yes
|
||||||
when: and ansible_hostname == k8s_first_master_node
|
# when: and ansible_hostname == k8s_first_master_node
|
||||||
|
|
||||||
- name: Install Calico CNI
|
- name: Install Calico CNI
|
||||||
command: kubectl apply -f "https://docs.projectcalico.org/v3.13/manifests/calico.yaml"
|
command: kubectl apply -f "https://docs.projectcalico.org/v3.13/manifests/calico.yaml"
|
||||||
|
|
2
runme.sh
2
runme.sh
|
@ -7,7 +7,7 @@ vcpu=`cat /proc/cpuinfo|grep proc|tail -1|awk '{print $NF}'`
|
||||||
k8sdsk="${apptmp}/k8s-demo.raw"
|
k8sdsk="${apptmp}/k8s-demo.raw"
|
||||||
httpboot='http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64'
|
httpboot='http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64'
|
||||||
seed='https://git.ix.gs/public/coins-demo/raw/branch/master/contrib/k8s-seed.txt'
|
seed='https://git.ix.gs/public/coins-demo/raw/branch/master/contrib/k8s-seed.txt'
|
||||||
qemu="${appdir}/contrib/qemu-system-x86_64 -L ${appdir}/contrib/share/qemu -net nic -net user,net=100.100.100.0/24,host=100.100.100.100 -m ${vmmem} -smp ${vcpu} -localtime -enable-kvm -cpu host,+nx -M pc -vga std -usbdevice tablet -k en-us -hda ${k8sdsk} -boot once=d -nographic"
|
qemu="${appdir}/contrib/qemu-system-x86_64 -L ${appdir}/contrib/share/qemu -net nic -net user,net=100.100.100.0/24,,hostfwd=tcp::8888-:8888 -m ${vmmem} -smp ${vcpu} -localtime -enable-kvm -cpu host,+nx -M pc -vga std -usbdevice tablet -k en-us -hda ${k8sdsk} -boot once=d -nographic"
|
||||||
wget='wget -cq4O'
|
wget='wget -cq4O'
|
||||||
###
|
###
|
||||||
installvm() {
|
installvm() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue