93 lines
3.1 KiB
YAML
93 lines
3.1 KiB
YAML
# Bootstrap once with an administrator identity. CI can update only the exact
|
|
# existing objects rendered by the pinned Cilium chart and the local manifests.
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: cilium-deployer
|
|
namespace: kube-system
|
|
automountServiceAccountToken: false
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: cilium-deployer
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: [namespaces]
|
|
resourceNames: [cilium-secrets]
|
|
verbs: [get, patch, update]
|
|
- apiGroups: [""]
|
|
resources: [serviceaccounts]
|
|
resourceNames: [cilium, cilium-envoy, cilium-operator, hubble-relay, hubble-ui]
|
|
verbs: [get, patch, update]
|
|
- apiGroups: [""]
|
|
resources: [configmaps]
|
|
resourceNames: [cilium-config, cilium-envoy-config, hubble-relay-config, hubble-ui-nginx]
|
|
verbs: [get, patch, update]
|
|
- apiGroups: [""]
|
|
resources: [services]
|
|
resourceNames: [cilium-envoy, hubble-peer, hubble-relay, hubble-ui]
|
|
verbs: [get, patch, update]
|
|
- apiGroups: [apps]
|
|
resources: [daemonsets]
|
|
resourceNames: [cilium, cilium-envoy]
|
|
verbs: [get, patch, update]
|
|
- apiGroups: [apps]
|
|
resources: [deployments]
|
|
resourceNames: [cilium-operator, hubble-relay, hubble-ui]
|
|
verbs: [get, patch, update]
|
|
- apiGroups: [policy]
|
|
resources: [poddisruptionbudgets]
|
|
resourceNames: [cilium-operator]
|
|
verbs: [get, patch, update]
|
|
- apiGroups: [rbac.authorization.k8s.io]
|
|
resources: [clusterroles]
|
|
resourceNames: [cilium, cilium-operator, hubble-ui]
|
|
verbs: [get, patch, update, escalate, bind]
|
|
- apiGroups: [rbac.authorization.k8s.io]
|
|
resources: [clusterrolebindings]
|
|
resourceNames: [cilium, cilium-operator, hubble-ui]
|
|
verbs: [get, patch, update]
|
|
- apiGroups: [rbac.authorization.k8s.io]
|
|
resources: [roles]
|
|
resourceNames: [cilium-config-agent, cilium-operator-tlsinterception-secrets, cilium-operator-ztunnel, cilium-tlsinterception-secrets]
|
|
verbs: [get, patch, update, escalate, bind]
|
|
- apiGroups: [rbac.authorization.k8s.io]
|
|
resources: [rolebindings]
|
|
resourceNames: [cilium-config-agent, cilium-operator-tlsinterception-secrets, cilium-operator-ztunnel, cilium-tlsinterception-secrets]
|
|
verbs: [get, patch, update]
|
|
- apiGroups: [cert-manager.io]
|
|
resources: [issuers]
|
|
resourceNames: [hubble-ca, hubble-selfsigned]
|
|
verbs: [get, patch, update]
|
|
- apiGroups: [cert-manager.io]
|
|
resources: [certificates]
|
|
resourceNames: [hubble-ca, hubble-relay-client-certs, hubble-server-certs]
|
|
verbs: [get, patch, update]
|
|
- apiGroups: [monitoring.coreos.com]
|
|
resources: [prometheusrules]
|
|
resourceNames: [cilium-availability]
|
|
verbs: [get, patch, update]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: cilium-deployer
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: cilium-deployer
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: cilium-deployer
|
|
namespace: kube-system
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: cilium-deployer-token
|
|
namespace: kube-system
|
|
annotations:
|
|
kubernetes.io/service-account.name: cilium-deployer
|
|
type: kubernetes.io/service-account-token
|