Created
March 21, 2022 21:23
-
-
Save samueljon/a25b06f2254bdc82adc6a1ca2ecb0cb5 to your computer and use it in GitHub Desktop.
testing deployment of Cilium v1.11.2 in a talos based cluster.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Source: cilium/templates/cilium-agent/serviceaccount.yaml | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: "cilium" | |
namespace: kube-system | |
--- | |
# Source: cilium/templates/cilium-operator/serviceaccount.yaml | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: "cilium-operator" | |
namespace: kube-system | |
--- | |
# Source: cilium/templates/hubble/tls-helm/ca-secret.yaml | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: hubble-ca-secret | |
namespace: kube-system | |
data: | |
ca.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURLRENDQWhDZ0F3SUJBZ0lSQVA1elVMUnhDT3g2b250ajFFSENBZTB3RFFZSktvWklodmNOQVFFTEJRQXcKSGpFY01Cb0dBMVVFQXhNVGFIVmlZbXhsTFdOaExtTnBiR2wxYlM1cGJ6QWVGdzB5TWpBek1qRXlNVEl3TWpWYQpGdzB5TlRBek1qQXlNVEl3TWpWYU1CNHhIREFhQmdOVkJBTVRFMmgxWW1Kc1pTMWpZUzVqYVd4cGRXMHVhVzh3CmdnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUJEd0F3Z2dFS0FvSUJBUURkYkRTWm1WZXZ0VHNJL2xtL2JNekgKcGVWS2ZLVnNJMWd6UDBiOWM1c3pCWXNINGJFR1k5MGhoajVpUkwyUFBHalZQd2lXU2YyNWNmaWlUdzVuWFlnTwpGSENVZHd4ZFlNVjV1NGZHZ1dCL25ocFY5Z0JOLzlWSzF3dXp3TGsxZ3NaKzVNSnR0OW1RdG5aRjRkZFllV1FVCjd1WEFvRWFsdXRWeWNVZ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LS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo= | |
--- | |
# Source: cilium/templates/hubble/tls-helm/server-secret.yaml | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: hubble-server-certs | |
namespace: kube-system | |
type: kubernetes.io/tls | |
data: | |
ca.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURLRENDQWhDZ0F3SUJBZ0lSQVA1elVMUnhDT3g2b250ajFFSENBZTB3RFFZSktvWklodmNOQVFFTEJRQXcKSGpFY01Cb0dBMVVFQXhNVGFIVmlZbXhsTFdOaExtTnBiR2wxYlM1cGJ6QWVGdzB5TWpBek1qRXlNVEl3TWpWYQpGdzB5TlRBek1qQXlNVEl3TWpWYU1CNHhIREFhQmdOVkJBTVRFMmgxWW1Kc1pTMWpZUzVqYVd4cGRXMHVhVzh3CmdnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUJEd0F3Z2dFS0FvSUJBUURkYkRTWm1WZXZ0VHNJL2xtL2JNekgKcGVWS2ZLVnNJMWd6UDBiOWM1c3pCWXNINGJFR1k5MGhoajVpUkwyUFBHalZQd2lXU2YyNWNmaWlUdzVuWFlnTwpGSENVZHd4ZFlNVjV1NGZHZ1dCL25ocFY5Z0JOLzlWSzF3dXp3TGsxZ3NaKzVNSnR0OW1RdG5aRjRkZFllV1FVCjd1WEFvRWFsdXRWeWNVZHZka2EyYWtGc2FoSW96d0RXUHhtZ2I1N2tkcTFiOERjKzhwdHpLV3pTWE8wcVZpWVYKZVk4bnRJK2RxNlNCRE5NOTRabFJFR2ZIcFB5eGxOd3l2aGk1M2lzREcxS2pMSGlzZWtVRU1UL3hmaEFTdFh6ZwozYml4M0U0KzJkNXhuei8vQ2dPRzBtUUw0SkFySHYvMVhhejFYcDZmWStMVFBKMS9DV2FDUVpIRVlkcXVCVGl4CkFnTUJBQUdqWVRCZk1BNEdBMVVkRHdFQi93UUVBd0lDcERBZEJnTlZIU1VFRmpBVUJnZ3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mg1OVFQamNYSWNDV0Z0K3hkbUgzRTZjbVRLCjJTUVZVd0tCZ0VkME5sT0hQYjgwK0pxVVU2a2FUOEhPMTNmTDUyMmQ1K1htU2Z2WWFTOTVLMmRyVVI4RnBxS3MKd2QyN1EwUDdPVXo3bWxycVh2UFpmYm9waFpSZjZpbXhqK0hyWERhb1JCWjFGaG5VKzVxc2NGYkZxUm03K3dVegpLbDJaYnkvSy9ncjZoWThwUVlZQ1JKVmZ0MjA2NGM3enBiMnVrZlRERlkyeVErWUp1RVE4Ci0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg== | |
--- | |
# Source: cilium/templates/cilium-configmap.yaml | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cilium-config | |
namespace: kube-system | |
data: | |
# Identity allocation mode selects how identities are shared between cilium | |
# nodes by setting how they are stored. The options are "crd" or "kvstore". | |
# - "crd" stores identities in kubernetes as CRDs (custom resource definition). | |
# These can be queried with: | |
# kubectl get ciliumid | |
# - "kvstore" stores identities in an etcd kvstore, that is | |
# configured below. Cilium versions before 1.6 supported only the kvstore | |
# backend. Upgrades from these older cilium versions should continue using | |
# the kvstore by commenting out the identity-allocation-mode below, or | |
# setting it to "kvstore". | |
identity-allocation-mode: crd | |
cilium-endpoint-gc-interval: "5m0s" | |
# Disable the usage of CiliumEndpoint CRD | |
disable-endpoint-crd: "false" | |
# If you want to run cilium in debug mode change this value to true | |
debug: "false" | |
# The agent can be put into the following three policy enforcement modes | |
# default, always and never. | |
# https://docs.cilium.io/en/latest/policy/intro/#policy-enforcement-modes | |
enable-policy: "default" | |
# Enable IPv4 addressing. If enabled, all endpoints are allocated an IPv4 | |
# address. | |
enable-ipv4: "true" | |
# Enable IPv6 addressing. If enabled, all endpoints are allocated an IPv6 | |
# address. | |
enable-ipv6: "false" | |
# Users who wish to specify their own custom CNI configuration file must set | |
# custom-cni-conf to "true", otherwise Cilium may overwrite the configuration. | |
custom-cni-conf: "false" | |
enable-bpf-clock-probe: "true" | |
# If you want cilium monitor to aggregate tracing for packets, set this level | |
# to "low", "medium", or "maximum". The higher the level, the less packets | |
# that will be seen in monitor output. | |
monitor-aggregation: medium | |
# The monitor aggregation interval governs the typical time between monitor | |
# notification events for each allowed connection. | |
# | |
# Only effective when monitor aggregation is set to "medium" or higher. | |
monitor-aggregation-interval: 5s | |
# The monitor aggregation flags determine which TCP flags which, upon the | |
# first observation, cause monitor notifications to be generated. | |
# | |
# Only effective when monitor aggregation is set to "medium" or higher. | |
monitor-aggregation-flags: all | |
# Specifies the ratio (0.0-1.0) of total system memory to use for dynamic | |
# sizing of the TCP CT, non-TCP CT, NAT and policy BPF maps. | |
bpf-map-dynamic-size-ratio: "0.0025" | |
# bpf-policy-map-max specifies the maximum number of entries in endpoint | |
# policy map (per endpoint) | |
bpf-policy-map-max: "16384" | |
# bpf-lb-map-max specifies the maximum number of entries in bpf lb service, | |
# backend and affinity maps. | |
bpf-lb-map-max: "65536" | |
# bpf-lb-bypass-fib-lookup instructs Cilium to enable the FIB lookup bypass | |
# optimization for nodeport reverse NAT handling. | |
bpf-lb-external-clusterip: "false" | |
# Pre-allocation of map entries allows per-packet latency to be reduced, at | |
# the expense of up-front memory allocation for the entries in the maps. The | |
# default value below will minimize memory usage in the default installation; | |
# users who are sensitive to latency may consider setting this to "true". | |
# | |
# This option was introduced in Cilium 1.4. Cilium 1.3 and earlier ignore | |
# this option and behave as though it is set to "true". | |
# | |
# If this value is modified, then during the next Cilium startup the restore | |
# of existing endpoints and tracking of ongoing connections may be disrupted. | |
# As a result, reply packets may be dropped and the load-balancing decisions | |
# for established connections may change. | |
# | |
# If this option is set to "false" during an upgrade from 1.3 or earlier to | |
# 1.4 or later, then it may cause one-time disruptions during the upgrade. | |
preallocate-bpf-maps: "false" | |
# Regular expression matching compatible Istio sidecar istio-proxy | |
# container image names | |
sidecar-istio-proxy-image: "cilium/istio_proxy" | |
# Name of the cluster. Only relevant when building a mesh of clusters. | |
cluster-name: default | |
# Unique ID of the cluster. Must be unique across all conneted clusters and | |
# in the range of 1 and 255. Only relevant when building a mesh of clusters. | |
cluster-id: "" | |
# Encapsulation mode for communication between nodes | |
# Possible values: | |
# - disabled | |
# - vxlan (default) | |
# - geneve | |
tunnel: vxlan | |
# Enables L7 proxy for L7 policy enforcement and visibility | |
enable-l7-proxy: "true" | |
enable-ipv4-masquerade: "true" | |
enable-ipv6-masquerade: "true" | |
enable-xt-socket-fallback: "true" | |
install-iptables-rules: "true" | |
install-no-conntrack-iptables-rules: "false" | |
auto-direct-node-routes: "false" | |
enable-bandwidth-manager: "false" | |
enable-local-redirect-policy: "false" | |
kube-proxy-replacement: "disabled" | |
enable-health-check-nodeport: "true" | |
node-port-bind-protection: "true" | |
enable-auto-protect-node-port-range: "true" | |
enable-session-affinity: "true" | |
enable-l2-neigh-discovery: "true" | |
enable-endpoint-health-checking: "true" | |
enable-health-checking: "true" | |
enable-well-known-identities: "false" | |
enable-remote-node-identity: "true" | |
operator-api-serve-addr: "127.0.0.1:9234" | |
# Enable Hubble gRPC service. | |
enable-hubble: "true" | |
# UNIX domain socket for Hubble server to listen to. | |
hubble-socket-path: "/var/run/cilium/hubble.sock" | |
# An additional address for Hubble server to listen to (e.g. ":4244"). | |
hubble-listen-address: ":4244" | |
hubble-disable-tls: "false" | |
hubble-tls-cert-file: /var/lib/cilium/tls/hubble/server.crt | |
hubble-tls-key-file: /var/lib/cilium/tls/hubble/server.key | |
hubble-tls-client-ca-files: /var/lib/cilium/tls/hubble/client-ca.crt | |
ipam: "kubernetes" | |
disable-cnp-status-updates: "true" | |
cgroup-root: "/run/cilium/cgroupv2" | |
enable-k8s-terminating-endpoint: "true" | |
--- | |
# Source: cilium/templates/cilium-agent/clusterrole.yaml | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
name: cilium | |
rules: | |
- apiGroups: | |
- networking.k8s.io | |
resources: | |
- networkpolicies | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- discovery.k8s.io | |
resources: | |
- endpointslices | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- "" | |
resources: | |
- namespaces | |
- services | |
- nodes | |
- endpoints | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- "" | |
resources: | |
- pods | |
- pods/finalizers | |
verbs: | |
- get | |
- list | |
- watch | |
- update | |
- delete | |
- apiGroups: | |
- "" | |
resources: | |
- nodes | |
verbs: | |
- get | |
- list | |
- watch | |
- update | |
- apiGroups: | |
- "" | |
resources: | |
- nodes | |
- nodes/status | |
verbs: | |
- patch | |
- apiGroups: | |
- apiextensions.k8s.io | |
resources: | |
- customresourcedefinitions | |
verbs: | |
# Deprecated for removal in v1.10 | |
- create | |
- list | |
- watch | |
- update | |
# This is used when validating policies in preflight. This will need to stay | |
# until we figure out how to avoid "get" inside the preflight, and then | |
# should be removed ideally. | |
- get | |
- apiGroups: | |
- cilium.io | |
resources: | |
- ciliumnetworkpolicies | |
- ciliumnetworkpolicies/status | |
- ciliumnetworkpolicies/finalizers | |
- ciliumclusterwidenetworkpolicies | |
- ciliumclusterwidenetworkpolicies/status | |
- ciliumclusterwidenetworkpolicies/finalizers | |
- ciliumendpoints | |
- ciliumendpoints/status | |
- ciliumendpoints/finalizers | |
- ciliumnodes | |
- ciliumnodes/status | |
- ciliumnodes/finalizers | |
- ciliumidentities | |
- ciliumidentities/finalizers | |
- ciliumlocalredirectpolicies | |
- ciliumlocalredirectpolicies/status | |
- ciliumlocalredirectpolicies/finalizers | |
- ciliumegressnatpolicies | |
- ciliumendpointslices | |
verbs: | |
- '*' | |
--- | |
# Source: cilium/templates/cilium-operator/clusterrole.yaml | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
name: cilium-operator | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
# to automatically delete [core|kube]dns pods so that are starting to being | |
# managed by Cilium | |
- pods | |
verbs: | |
- get | |
- list | |
- watch | |
- delete | |
- apiGroups: | |
- discovery.k8s.io | |
resources: | |
- endpointslices | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- "" | |
resources: | |
- services | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- "" | |
resources: | |
# to perform LB IP allocation for BGP | |
- services/status | |
verbs: | |
- update | |
- apiGroups: | |
- "" | |
resources: | |
# to perform the translation of a CNP that contains `ToGroup` to its endpoints | |
- services | |
- endpoints | |
# to check apiserver connectivity | |
- namespaces | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- cilium.io | |
resources: | |
- ciliumnetworkpolicies | |
- ciliumnetworkpolicies/status | |
- ciliumnetworkpolicies/finalizers | |
- ciliumclusterwidenetworkpolicies | |
- ciliumclusterwidenetworkpolicies/status | |
- ciliumclusterwidenetworkpolicies/finalizers | |
- ciliumendpoints | |
- ciliumendpoints/status | |
- ciliumendpoints/finalizers | |
- ciliumnodes | |
- ciliumnodes/status | |
- ciliumnodes/finalizers | |
- ciliumidentities | |
- ciliumendpointslices | |
- ciliumidentities/status | |
- ciliumidentities/finalizers | |
- ciliumlocalredirectpolicies | |
- ciliumlocalredirectpolicies/status | |
- ciliumlocalredirectpolicies/finalizers | |
verbs: | |
- '*' | |
- apiGroups: | |
- apiextensions.k8s.io | |
resources: | |
- customresourcedefinitions | |
verbs: | |
- create | |
- get | |
- list | |
- update | |
- watch | |
# For cilium-operator running in HA mode. | |
# | |
# Cilium operator running in HA mode requires the use of ResourceLock for Leader Election | |
# between multiple running instances. | |
# The preferred way of doing this is to use LeasesResourceLock as edits to Leases are less | |
# common and fewer objects in the cluster watch "all Leases". | |
- apiGroups: | |
- coordination.k8s.io | |
resources: | |
- leases | |
verbs: | |
- create | |
- get | |
- update | |
--- | |
# Source: cilium/templates/cilium-agent/clusterrolebinding.yaml | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: cilium | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: cilium | |
subjects: | |
- kind: ServiceAccount | |
name: "cilium" | |
namespace: kube-system | |
--- | |
# Source: cilium/templates/cilium-operator/clusterrolebinding.yaml | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: cilium-operator | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: cilium-operator | |
subjects: | |
- kind: ServiceAccount | |
name: "cilium-operator" | |
namespace: kube-system | |
--- | |
# Source: cilium/templates/cilium-agent/daemonset.yaml | |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: cilium | |
namespace: kube-system | |
labels: | |
k8s-app: cilium | |
spec: | |
selector: | |
matchLabels: | |
k8s-app: cilium | |
updateStrategy: | |
rollingUpdate: | |
maxUnavailable: 2 | |
type: RollingUpdate | |
template: | |
metadata: | |
annotations: | |
# This annotation plus the CriticalAddonsOnly toleration makes | |
# cilium to be a critical pod in the cluster, which ensures cilium | |
# gets priority scheduling. | |
# https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/ | |
scheduler.alpha.kubernetes.io/critical-pod: "" | |
labels: | |
k8s-app: cilium | |
spec: | |
affinity: | |
nodeAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: kubernetes.io/os | |
operator: In | |
values: | |
- linux | |
- matchExpressions: | |
- key: beta.kubernetes.io/os | |
operator: In | |
values: | |
- linux | |
podAntiAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
- labelSelector: | |
matchExpressions: | |
- key: k8s-app | |
operator: In | |
values: | |
- cilium | |
topologyKey: kubernetes.io/hostname | |
containers: | |
- name: cilium-agent | |
image: "quay.io/cilium/cilium:v1.11.2@sha256:4332428fbb528bda32fffe124454458c9b716c86211266d1a03c4ddf695d7f60" | |
imagePullPolicy: IfNotPresent | |
command: | |
- cilium-agent | |
args: | |
- --config-dir=/tmp/cilium/config-map | |
startupProbe: | |
httpGet: | |
host: "127.0.0.1" | |
path: /healthz | |
port: 9876 | |
scheme: HTTP | |
httpHeaders: | |
- name: "brief" | |
value: "true" | |
failureThreshold: 105 | |
periodSeconds: 2 | |
successThreshold: 1 | |
livenessProbe: | |
httpGet: | |
host: "127.0.0.1" | |
path: /healthz | |
port: 9876 | |
scheme: HTTP | |
httpHeaders: | |
- name: "brief" | |
value: "true" | |
periodSeconds: 30 | |
successThreshold: 1 | |
failureThreshold: 10 | |
timeoutSeconds: 5 | |
readinessProbe: | |
httpGet: | |
host: "127.0.0.1" | |
path: /healthz | |
port: 9876 | |
scheme: HTTP | |
httpHeaders: | |
- name: "brief" | |
value: "true" | |
periodSeconds: 30 | |
successThreshold: 1 | |
failureThreshold: 3 | |
timeoutSeconds: 5 | |
env: | |
- name: K8S_NODE_NAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: spec.nodeName | |
- name: CILIUM_K8S_NAMESPACE | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
- name: CILIUM_CLUSTERMESH_CONFIG | |
value: /var/lib/cilium/clustermesh/ | |
- name: CILIUM_CNI_CHAINING_MODE | |
valueFrom: | |
configMapKeyRef: | |
name: cilium-config | |
key: cni-chaining-mode | |
optional: true | |
- name: CILIUM_CUSTOM_CNI_CONF | |
valueFrom: | |
configMapKeyRef: | |
name: cilium-config | |
key: custom-cni-conf | |
optional: true | |
lifecycle: | |
postStart: | |
exec: | |
command: | |
- "/cni-install.sh" | |
- "--enable-debug=false" | |
- "--cni-exclusive=true" | |
preStop: | |
exec: | |
command: | |
- /cni-uninstall.sh | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- name: bpf-maps | |
mountPath: /sys/fs/bpf | |
mountPropagation: Bidirectional | |
- name: cilium-run | |
mountPath: /var/run/cilium | |
- name: cni-path | |
mountPath: /host/opt/cni/bin | |
- name: etc-cni-netd | |
mountPath: /host/etc/cni/net.d | |
- name: clustermesh-secrets | |
mountPath: /var/lib/cilium/clustermesh | |
readOnly: true | |
- name: cilium-config-path | |
mountPath: /tmp/cilium/config-map | |
readOnly: true | |
# Needed to be able to load kernel modules | |
- name: lib-modules | |
mountPath: /lib/modules | |
readOnly: true | |
- name: xtables-lock | |
mountPath: /run/xtables.lock | |
- name: hubble-tls | |
mountPath: /var/lib/cilium/tls/hubble | |
readOnly: true | |
hostNetwork: true | |
initContainers: | |
# Required to mount cgroup2 filesystem on the underlying Kubernetes node. | |
# We use nsenter command with host's cgroup and mount namespaces enabled. | |
- name: mount-cgroup | |
image: "quay.io/cilium/cilium:v1.11.2@sha256:4332428fbb528bda32fffe124454458c9b716c86211266d1a03c4ddf695d7f60" | |
imagePullPolicy: IfNotPresent | |
env: | |
- name: CGROUP_ROOT | |
value: /run/cilium/cgroupv2 | |
- name: BIN_PATH | |
value: /opt/cni/bin | |
command: | |
- sh | |
- -ec | |
# The statically linked Go program binary is invoked to avoid any | |
# dependency on utilities like sh and mount that can be missing on certain | |
# distros installed on the underlying host. Copy the binary to the | |
# same directory where we install cilium cni plugin so that exec permissions | |
# are available. | |
- | | |
cp /usr/bin/cilium-mount /hostbin/cilium-mount; | |
nsenter --cgroup=/hostproc/1/ns/cgroup --mount=/hostproc/1/ns/mnt "${BIN_PATH}/cilium-mount" $CGROUP_ROOT; | |
rm /hostbin/cilium-mount | |
volumeMounts: | |
- name: hostproc | |
mountPath: /hostproc | |
- name: cni-path | |
mountPath: /hostbin | |
securityContext: | |
privileged: true | |
- name: clean-cilium-state | |
image: "quay.io/cilium/cilium:v1.11.2@sha256:4332428fbb528bda32fffe124454458c9b716c86211266d1a03c4ddf695d7f60" | |
imagePullPolicy: IfNotPresent | |
command: | |
- /init-container.sh | |
env: | |
- name: CILIUM_ALL_STATE | |
valueFrom: | |
configMapKeyRef: | |
name: cilium-config | |
key: clean-cilium-state | |
optional: true | |
- name: CILIUM_BPF_STATE | |
valueFrom: | |
configMapKeyRef: | |
name: cilium-config | |
key: clean-cilium-bpf-state | |
optional: true | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- name: bpf-maps | |
mountPath: /sys/fs/bpf | |
# Required to mount cgroup filesystem from the host to cilium agent pod | |
- name: cilium-cgroup | |
mountPath: /run/cilium/cgroupv2 | |
mountPropagation: HostToContainer | |
- name: cilium-run | |
mountPath: /var/run/cilium | |
resources: | |
requests: | |
cpu: 100m | |
memory: 100Mi | |
restartPolicy: Always | |
priorityClassName: system-node-critical | |
serviceAccount: "cilium" | |
serviceAccountName: "cilium" | |
terminationGracePeriodSeconds: 1 | |
tolerations: | |
- operator: Exists | |
volumes: | |
# To keep state between restarts / upgrades | |
- name: cilium-run | |
hostPath: | |
path: /var/run/cilium | |
type: DirectoryOrCreate | |
# To keep state between restarts / upgrades for bpf maps | |
- name: bpf-maps | |
hostPath: | |
path: /sys/fs/bpf | |
type: DirectoryOrCreate | |
# To mount cgroup2 filesystem on the host | |
- name: hostproc | |
hostPath: | |
path: /proc | |
type: Directory | |
# To keep state between restarts / upgrades for cgroup2 filesystem | |
- name: cilium-cgroup | |
hostPath: | |
path: /run/cilium/cgroupv2 | |
type: DirectoryOrCreate | |
# To install cilium cni plugin in the host | |
- name: cni-path | |
hostPath: | |
path: /opt/cni/bin | |
type: DirectoryOrCreate | |
# To install cilium cni configuration in the host | |
- name: etc-cni-netd | |
hostPath: | |
path: /etc/cni/net.d | |
type: DirectoryOrCreate | |
# To be able to load kernel modules | |
- name: lib-modules | |
hostPath: | |
path: /lib/modules | |
# To access iptables concurrently with other processes (e.g. kube-proxy) | |
- name: xtables-lock | |
hostPath: | |
path: /run/xtables.lock | |
type: FileOrCreate | |
# To read the clustermesh configuration | |
- name: clustermesh-secrets | |
secret: | |
secretName: cilium-clustermesh | |
# note: the leading zero means this number is in octal representation: do not remove it | |
defaultMode: 0400 | |
optional: true | |
# To read the configuration from the config map | |
- name: cilium-config-path | |
configMap: | |
name: cilium-config | |
- name: hubble-tls | |
projected: | |
# note: the leading zero means this number is in octal representation: do not remove it | |
defaultMode: 0400 | |
sources: | |
- secret: | |
name: hubble-server-certs | |
optional: true | |
items: | |
- key: ca.crt | |
path: client-ca.crt | |
- key: tls.crt | |
path: server.crt | |
- key: tls.key | |
path: server.key | |
--- | |
# Source: cilium/templates/cilium-operator/deployment.yaml | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: cilium-operator | |
namespace: kube-system | |
labels: | |
io.cilium/app: operator | |
name: cilium-operator | |
spec: | |
# See docs on ServerCapabilities.LeasesResourceLock in file pkg/k8s/version/version.go | |
# for more details. | |
replicas: 2 | |
selector: | |
matchLabels: | |
io.cilium/app: operator | |
name: cilium-operator | |
strategy: | |
rollingUpdate: | |
maxSurge: 1 | |
maxUnavailable: 1 | |
type: RollingUpdate | |
template: | |
metadata: | |
annotations: | |
labels: | |
io.cilium/app: operator | |
name: cilium-operator | |
spec: | |
# In HA mode, cilium-operator pods must not be scheduled on the same | |
# node as they will clash with each other. | |
affinity: | |
podAntiAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
- labelSelector: | |
matchExpressions: | |
- key: io.cilium/app | |
operator: In | |
values: | |
- operator | |
topologyKey: kubernetes.io/hostname | |
containers: | |
- name: cilium-operator | |
image: quay.io/cilium/operator-generic:v1.11.2@sha256:4c8bea6818ee3e4932f99e9c1d7efa88b8c0f3cd516160caec878406531e45e7 | |
imagePullPolicy: IfNotPresent | |
command: | |
- cilium-operator-generic | |
args: | |
- --config-dir=/tmp/cilium/config-map | |
- --debug=$(CILIUM_DEBUG) | |
env: | |
- name: K8S_NODE_NAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: spec.nodeName | |
- name: CILIUM_K8S_NAMESPACE | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
- name: CILIUM_DEBUG | |
valueFrom: | |
configMapKeyRef: | |
key: debug | |
name: cilium-config | |
optional: true | |
livenessProbe: | |
httpGet: | |
host: "127.0.0.1" | |
path: /healthz | |
port: 9234 | |
scheme: HTTP | |
initialDelaySeconds: 60 | |
periodSeconds: 10 | |
timeoutSeconds: 3 | |
volumeMounts: | |
- name: cilium-config-path | |
mountPath: /tmp/cilium/config-map | |
readOnly: true | |
hostNetwork: true | |
restartPolicy: Always | |
priorityClassName: system-cluster-critical | |
serviceAccount: "cilium-operator" | |
serviceAccountName: "cilium-operator" | |
tolerations: | |
- operator: Exists | |
volumes: | |
# To read the configuration from the config map | |
- name: cilium-config-path | |
configMap: | |
name: cilium-config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment