Files
states/softwares/k8s.sls
CLEMENT Iwan 5e3f887cdc Indentation OK
2018-11-08 20:22:15 +01:00

23 lines
575 B
Plaintext

{% if grains['kernel'] == 'Linux' %}
include:
- linux.docker-ce
{% if grains['os'] == 'Debian' %}
{% set DEBVER = salt['grains.get']('oscodename') %}
Debian K8S Add Repo:
pkgrepo.managed:
- name: deb https://apt.kubernetes.io/ kubernetes-{{DEBVER}} main
- file: /etc/apt/sources.list.d/k8s.list
- enable: 1
- gpgkey: https://dl.google.com/linux/linux_signing_key.pub
# - key_url: https://download.docker.com/linux/debian/gpg
{% endif %}
K8S installation:
pkg.installed:
- pkgs:
- kubelet
- kubeadm
- kubectl
{% endif %}