X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Fk3s%2Ftasks%2Finstall.yml;h=57592410cf7958ff484b2c2ee5268cd1b64b7022;hb=97c655ebd49ec7ff289af583750056576c6e338e;hp=0aaa7bd0b44d5f079e070994eeaf56c00a29dc37;hpb=8e23e5cecfca19d2bb543ab3cd10c8cf55d0b0bb;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/k3s/tasks/install.yml b/ocd/infra/playbooks/roles/k3s/tasks/install.yml index 0aaa7bd..5759241 100644 --- a/ocd/infra/playbooks/roles/k3s/tasks/install.yml +++ b/ocd/infra/playbooks/roles/k3s/tasks/install.yml @@ -55,11 +55,19 @@ register: ifName when: result is failed +# yamllint disable rule:line-length - name: install k3s shell: - cmd: curl -sfL https://get.k3s.io | sh - + cmd: curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--node-ip={{ ansible_host }} --node-external-ip={{ ansible_host }} --bind-address={{ ansible_host }} --flannel-iface=eth0 --docker --no-deploy=servicelb --no-deploy=traefik --write-kubeconfig-mode 644 --kube-apiserver-arg="service-node-port-range=30000-36000"" sh - when: result is failed +# yamllint disable rule:line-length + +#- name: install k3s +# shell: +# cmd: curl -sfL https://get.k3s.io | sh - +# when: result is failed + - name: create .kube dir shell: cmd: mkdir -p $HOME/.kube/