86 lines
2.3 KiB
YAML
86 lines
2.3 KiB
YAML
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: cilium-install
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: cluster-admin
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: cilium-install
|
|
namespace: kube-system
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: cilium-install
|
|
namespace: kube-system
|
|
---
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: cilium-install
|
|
namespace: kube-system
|
|
spec:
|
|
backoffLimit: 10
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: cilium-install
|
|
spec:
|
|
restartPolicy: OnFailure
|
|
tolerations:
|
|
- operator: Exists
|
|
- effect: NoSchedule
|
|
operator: Exists
|
|
- effect: NoExecute
|
|
operator: Exists
|
|
- effect: PreferNoSchedule
|
|
operator: Exists
|
|
- key: node-role.kubernetes.io/control-plane
|
|
operator: Exists
|
|
effect: NoSchedule
|
|
- key: node-role.kubernetes.io/control-plane
|
|
operator: Exists
|
|
effect: NoExecute
|
|
- key: node-role.kubernetes.io/control-plane
|
|
operator: Exists
|
|
effect: PreferNoSchedule
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: node-role.kubernetes.io/control-plane
|
|
operator: Exists
|
|
serviceAccountName: cilium-install
|
|
hostNetwork: true
|
|
containers:
|
|
- name: cilium-install
|
|
image: quay.io/cilium/cilium-cli:v0.18.6 # renovate: github-releases=cilium/cilium-cli
|
|
env:
|
|
- name: KUBERNETES_SERVICE_HOST
|
|
valueFrom:
|
|
fieldRef:
|
|
apiVersion: v1
|
|
fieldPath: status.podIP
|
|
- name: KUBERNETES_SERVICE_PORT
|
|
value: "6443"
|
|
volumeMounts:
|
|
- name: values
|
|
mountPath: /root/app/values.yaml
|
|
subPath: values.yaml
|
|
command:
|
|
- cilium
|
|
- install
|
|
- --version=v1.18.0 # renovate: github-releases=cilium/cilium
|
|
- --set
|
|
- kubeProxyReplacement=true
|
|
- --values
|
|
- values.yaml
|
|
volumes:
|
|
- name: values
|
|
configMap:
|
|
name: cilium-values |