Merge "Add X710 to iavf driver NICs"
[multicloud/k8s.git] / kud / hosting_providers / vagrant / inventory / group_vars / k8s-cluster.yml
1 # SPDX-license-identifier: Apache-2.0
2 ##############################################################################
3 # Copyright (c) 2018
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 # Kubernetes configuration dirs and system namespace.
11 # Those are where all the additional config stuff goes
12 # kubernetes normally puts in /srv/kubernetes.
13 # This puts them in a sane location and namespace.
14 # Editing those values will almost surely break something.
15 system_namespace: kube-system
16
17 docker_version: 'latest'
18
19 # Logging directory (sysvinit systems)
20 kube_log_dir: "/var/log/kubernetes"
21
22 kube_api_anonymous_auth: true
23
24 # Users to create for basic auth in Kubernetes API via HTTP
25 # Optionally add groups for user
26 kube_api_pwd: "secret"
27 kube_users:
28   kube:
29     pass: "{{kube_api_pwd}}"
30     role: admin
31     groups:
32       - system:masters
33
34 ## It is possible to activate / deactivate selected authentication methods (basic auth, static token auth)
35 #kube_oidc_auth: false
36 kube_basic_auth: true
37 kube_token_auth: true
38
39 # Choose network plugin (calico, contiv, weave or flannel)
40 # Can also be set to 'cloud', which lets the cloud provider setup appropriate routing
41 kube_network_plugin: flannel
42
43 # Make a copy of kubeconfig (admin.conf) on the host that runs Ansible to inventory/artifacts
44 kubeconfig_localhost: true
45 # Copy kubectl binary on the host that runs Ansible to inventory/artifacts
46 kubectl_localhost: true
47 # Disable nodelocal dns cache
48 enable_nodelocaldns: false
49 # Enable MountPropagation gate feature
50 local_volumes_enabled: true
51 local_volume_provisioner_enabled: true
52
53 # Helm deployment
54 helm_enabled: true
55 helm_stable_repo_url: "https://charts.helm.sh/stable"
56
57 # Kube-proxy proxyMode configuration.
58 # NOTE: Ipvs is based on netfilter hook function, but uses hash table as the underlying data structure and
59 # works in the kernel space
60 # https://kubernetes.io/docs/concepts/services-networking/service/#proxy-mode-ipvs
61 #kube_proxy_mode: ipvs
62
63 # Download container images only once then push to cluster nodes in batches
64 download_run_once: True
65
66 # Where the binaries will be downloaded.
67 # Note: ensure that you've enough disk space (about 1G)
68 local_release_dir: "/tmp/releases"
69
70 #Set download_localhost: True to make localhost the download delegate. This can be useful if 
71 #cluster nodes cannot access external addresses. To use this requires that docker is installed 
72 #and running on the ansible master and that the current user is either in the docker group or 
73 #can do passwordless sudo, to be able to access docker. 
74 download_localhost: True
75
76 # Subnet for cluster IPs
77 kube_service_addresses: 10.244.0.0/18
78 # Subnet for Pod IPs
79 kube_pods_subnet: 10.244.64.0/18
80
81 # pod security policy (RBAC must be enabled either by having 'RBAC' in authorization_modes or kubeadm enabled)
82 podsecuritypolicy_enabled: true
83 # The restricted spec is identical to the kubespray podsecuritypolicy_privileged_spec, with the replacement of
84 #   allowedCapabilities:
85 #     - '*'
86 # by
87 #   requiredDropCapabilities:
88 #    - NET_RAW
89 podsecuritypolicy_restricted_spec:
90   privileged: true
91   allowPrivilegeEscalation: true
92   volumes:
93     - '*'
94   hostNetwork: true
95   hostPorts:
96     - min: 0
97       max: 65535
98   hostIPC: true
99   hostPID: true
100   requiredDropCapabilities:
101     - NET_RAW
102   runAsUser:
103     rule: 'RunAsAny'
104   seLinux:
105     rule: 'RunAsAny'
106   supplementalGroups:
107     rule: 'RunAsAny'
108   fsGroup:
109     rule: 'RunAsAny'
110   readOnlyRootFilesystem: false
111   # This will fail if allowed-unsafe-sysctls is not set accordingly in kubelet flags
112   allowedUnsafeSysctls:
113     - '*'