cmd.run
This commit is contained in:
@@ -34,11 +34,12 @@ K8S installation:
|
|||||||
- kubeadm
|
- kubeadm
|
||||||
- kubectl
|
- kubectl
|
||||||
{% elif grains['os'] == 'CentOS' %}
|
{% elif grains['os'] == 'CentOS' %}
|
||||||
|
Configure SeLinux:
|
||||||
|
cmd.run:
|
||||||
|
- name: 'setenforce 0;sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config'
|
||||||
|
|
||||||
pkg.install:
|
pkg.install:
|
||||||
- disableexcludes: kubernetes
|
cmd.run:
|
||||||
- pkgs:
|
- name: 'yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes && systemctl enable kubelet && systemctl start kubelet'
|
||||||
- kubelet
|
|
||||||
- kubeadm
|
|
||||||
- kubectl
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Reference in New Issue
Block a user