mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-18 19:10:39 +01:00
be61637a4d
fix lint Update README.md Co-authored-by: Jeff Geerling <geerlingguy@mac.com> Update defaults/main.yml Co-authored-by: Jeff Geerling <geerlingguy@mac.com> Update main.yml
72 lines
2.5 KiB
YAML
72 lines
2.5 KiB
YAML
---
|
|
kubernetes_packages:
|
|
- name: kubelet
|
|
state: present
|
|
- name: kubectl
|
|
state: present
|
|
- name: kubeadm
|
|
state: present
|
|
- name: kubernetes-cni
|
|
state: present
|
|
|
|
kubernetes_version: '1.20'
|
|
kubernetes_version_rhel_package: '1.20.4'
|
|
|
|
kubernetes_role: master
|
|
|
|
# This is deprecated. Please use kubernetes_config_kubelet_configuration instead.
|
|
kubernetes_kubelet_extra_args: ""
|
|
|
|
kubernetes_kubeadm_init_extra_opts: ""
|
|
kubernetes_join_command_extra_opts: ""
|
|
kubernetes_allow_pods_on_master: true
|
|
kubernetes_enable_web_ui: true
|
|
kubernetes_web_ui_manifest_file: https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml
|
|
|
|
kubernetes_pod_network:
|
|
# Flannel CNI.
|
|
cni: 'flannel'
|
|
cidr: '10.244.0.0/16'
|
|
# Calico CNI.
|
|
# cni: 'calico'
|
|
# cidr: '192.168.0.0/16'
|
|
|
|
kubernetes_kubeadm_kubelet_config_file_path: '/etc/kubernetes/kubeadm-kubelet-config.yaml'
|
|
kubernetes_config_kubelet_configuration:
|
|
cgroupDriver: "cgroupfs"
|
|
|
|
kubernetes_config_init_configuration:
|
|
localAPIEndpoint:
|
|
advertiseAddress: "{{ kubernetes_apiserver_advertise_address | default(ansible_default_ipv4.address, true) }}"
|
|
# if you use the next lines, remove the command line argument below
|
|
# nodeRegistration:
|
|
# ignorePreflightErrors:
|
|
# - all
|
|
|
|
kubernetes_config_cluster_configuration:
|
|
networking:
|
|
podSubnet: "{{ kubernetes_pod_network.cidr }}"
|
|
kubernetesVersion: "{{ kubernetes_version_kubeadm }}"
|
|
|
|
kubernetes_apiserver_advertise_address: ''
|
|
kubernetes_version_kubeadm: 'stable-{{ kubernetes_version }}'
|
|
kubernetes_ignore_preflight_errors: 'all'
|
|
|
|
kubernetes_apt_release_channel: main
|
|
# Note that xenial repo is used for all Debian derivatives at this time.
|
|
kubernetes_apt_repository: "deb http://apt.kubernetes.io/ kubernetes-xenial {{ kubernetes_apt_release_channel }}"
|
|
kubernetes_apt_ignore_key_error: false
|
|
|
|
kubernetes_yum_arch: '$basearch'
|
|
kubernetes_yum_base_url: "https://packages.cloud.google.com/yum/repos/kubernetes-el7-{{ kubernetes_yum_arch }}"
|
|
kubernetes_yum_gpg_key:
|
|
- https://packages.cloud.google.com/yum/doc/yum-key.gpg
|
|
- https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
|
|
|
|
# Flannel config files.
|
|
kubernetes_flannel_manifest_file_rbac: https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
|
|
kubernetes_flannel_manifest_file: https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
|
|
|
|
# Calico config files
|
|
kubernetes_calico_manifest_file: https://docs.projectcalico.org/v3.10/manifests/calico.yaml
|