mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-02-05 08:17:59 +00:00
Compare commits
1 Commits
fix-full-d
...
framework
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa4d3a5c77 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1 @@
|
|||||||
_out
|
_out
|
||||||
.git
|
|
||||||
.idea
|
|
||||||
@@ -33,7 +33,7 @@ You can use Cozystack as Kubernetes distribution for Bare Metal
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
The documentation is located on official [cozystack.io](https://cozystack.io) website.
|
The documentation is located on official [cozystack.io](cozystack.io) website.
|
||||||
|
|
||||||
Read [Get Started](https://cozystack.io/docs/get-started/) section for a quick start.
|
Read [Get Started](https://cozystack.io/docs/get-started/) section for a quick start.
|
||||||
|
|
||||||
@@ -44,8 +44,6 @@ If you encounter any difficulties, start with the [troubleshooting guide](https:
|
|||||||
Versioning adheres to the [Semantic Versioning](http://semver.org/) principles.
|
Versioning adheres to the [Semantic Versioning](http://semver.org/) principles.
|
||||||
A full list of the available releases is available in the GitHub repository's [Release](https://github.com/aenix-io/cozystack/releases) section.
|
A full list of the available releases is available in the GitHub repository's [Release](https://github.com/aenix-io/cozystack/releases) section.
|
||||||
|
|
||||||
- [Roadmap](https://github.com/orgs/aenix-io/projects/2)
|
|
||||||
|
|
||||||
## Contributions
|
## Contributions
|
||||||
|
|
||||||
Contributions are highly appreciated and very welcomed!
|
Contributions are highly appreciated and very welcomed!
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ PUSH := 1
|
|||||||
LOAD := 0
|
LOAD := 0
|
||||||
REGISTRY := ghcr.io/aenix-io/cozystack
|
REGISTRY := ghcr.io/aenix-io/cozystack
|
||||||
NGINX_CACHE_TAG = v0.1.0
|
NGINX_CACHE_TAG = v0.1.0
|
||||||
TAG := v0.2.0
|
TAG := v0.1.0
|
||||||
|
|
||||||
image: image-nginx
|
image: image-nginx
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
PUSH := 1
|
PUSH := 1
|
||||||
LOAD := 0
|
LOAD := 0
|
||||||
REGISTRY := ghcr.io/aenix-io/cozystack
|
REGISTRY := ghcr.io/aenix-io/cozystack
|
||||||
TAG := v0.2.0
|
TAG := v0.1.0
|
||||||
UBUNTU_CONTAINER_DISK_TAG = v1.29.1
|
UBUNTU_CONTAINER_DISK_TAG = v1.29.1
|
||||||
|
|
||||||
image: image-ubuntu-container-disk
|
image: image-ubuntu-container-disk
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ NAME=installer
|
|||||||
PUSH := 1
|
PUSH := 1
|
||||||
LOAD := 0
|
LOAD := 0
|
||||||
REGISTRY := ghcr.io/aenix-io/cozystack
|
REGISTRY := ghcr.io/aenix-io/cozystack
|
||||||
TAG := v0.2.0
|
TAG := v0.1.0
|
||||||
TALOS_VERSION=$(shell awk '/^version:/ {print $$2}' images/talos/profiles/installer.yaml)
|
TALOS_VERSION=$(shell awk '/^version:/ {print $$2}' images/talos/profiles/installer.yaml)
|
||||||
|
|
||||||
show:
|
show:
|
||||||
|
|||||||
@@ -16,4 +16,4 @@ namespaces-apply:
|
|||||||
helm template -n $(NAMESPACE) $(NAME) . --dry-run=server $(API_VERSIONS_FLAGS) -s templates/namespaces.yaml | kubectl apply -f-
|
helm template -n $(NAMESPACE) $(NAME) . --dry-run=server $(API_VERSIONS_FLAGS) -s templates/namespaces.yaml | kubectl apply -f-
|
||||||
|
|
||||||
diff:
|
diff:
|
||||||
helm template -n $(NAMESPACE) $(NAME) . --dry-run=server $(API_VERSIONS_FLAGS) | kubectl diff -f-
|
helm template -n $(NAMESPACE) $(NAME) . --dry-run=server $(API_VERSIONS_FLAGS) -s templates/namespaces.yaml | kubectl diff -f-
|
||||||
|
|||||||
@@ -1,103 +0,0 @@
|
|||||||
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
|
|
||||||
|
|
||||||
releases:
|
|
||||||
- name: cilium
|
|
||||||
releaseName: cilium
|
|
||||||
chart: cozy-cilium
|
|
||||||
namespace: cozy-cilium
|
|
||||||
privileged: true
|
|
||||||
dependsOn: []
|
|
||||||
values:
|
|
||||||
cilium:
|
|
||||||
cni:
|
|
||||||
chainingMode: ~
|
|
||||||
customConf: false
|
|
||||||
configMap: ""
|
|
||||||
enableIPv4Masquerade: true
|
|
||||||
|
|
||||||
- name: fluxcd
|
|
||||||
releaseName: fluxcd
|
|
||||||
chart: cozy-fluxcd
|
|
||||||
namespace: cozy-fluxcd
|
|
||||||
dependsOn: [cilium]
|
|
||||||
|
|
||||||
- name: cert-manager
|
|
||||||
releaseName: cert-manager
|
|
||||||
chart: cozy-cert-manager
|
|
||||||
namespace: cozy-cert-manager
|
|
||||||
dependsOn: [cilium]
|
|
||||||
|
|
||||||
- name: cert-manager-issuers
|
|
||||||
releaseName: cert-manager-issuers
|
|
||||||
chart: cozy-cert-manager-issuers
|
|
||||||
namespace: cozy-cert-manager
|
|
||||||
dependsOn: [cilium,cert-manager]
|
|
||||||
|
|
||||||
- name: victoria-metrics-operator
|
|
||||||
releaseName: victoria-metrics-operator
|
|
||||||
chart: cozy-victoria-metrics-operator
|
|
||||||
namespace: cozy-victoria-metrics-operator
|
|
||||||
dependsOn: [cilium,cert-manager]
|
|
||||||
|
|
||||||
- name: monitoring
|
|
||||||
releaseName: monitoring
|
|
||||||
chart: cozy-monitoring
|
|
||||||
namespace: cozy-monitoring
|
|
||||||
privileged: true
|
|
||||||
dependsOn: [cilium,victoria-metrics-operator]
|
|
||||||
|
|
||||||
- name: metallb
|
|
||||||
releaseName: metallb
|
|
||||||
chart: cozy-metallb
|
|
||||||
namespace: cozy-metallb
|
|
||||||
privileged: true
|
|
||||||
dependsOn: [cilium]
|
|
||||||
|
|
||||||
- name: grafana-operator
|
|
||||||
releaseName: grafana-operator
|
|
||||||
chart: cozy-grafana-operator
|
|
||||||
namespace: cozy-grafana-operator
|
|
||||||
dependsOn: [cilium]
|
|
||||||
|
|
||||||
- name: mariadb-operator
|
|
||||||
releaseName: mariadb-operator
|
|
||||||
chart: cozy-mariadb-operator
|
|
||||||
namespace: cozy-mariadb-operator
|
|
||||||
dependsOn: [cilium,cert-manager,victoria-metrics-operator]
|
|
||||||
|
|
||||||
- name: postgres-operator
|
|
||||||
releaseName: postgres-operator
|
|
||||||
chart: cozy-postgres-operator
|
|
||||||
namespace: cozy-postgres-operator
|
|
||||||
dependsOn: [cilium,cert-manager]
|
|
||||||
|
|
||||||
- name: rabbitmq-operator
|
|
||||||
releaseName: rabbitmq-operator
|
|
||||||
chart: cozy-rabbitmq-operator
|
|
||||||
namespace: cozy-rabbitmq-operator
|
|
||||||
dependsOn: [cilium]
|
|
||||||
|
|
||||||
- name: redis-operator
|
|
||||||
releaseName: redis-operator
|
|
||||||
chart: cozy-redis-operator
|
|
||||||
namespace: cozy-redis-operator
|
|
||||||
dependsOn: [cilium]
|
|
||||||
|
|
||||||
- name: piraeus-operator
|
|
||||||
releaseName: piraeus-operator
|
|
||||||
chart: cozy-piraeus-operator
|
|
||||||
namespace: cozy-linstor
|
|
||||||
dependsOn: [cilium,cert-manager]
|
|
||||||
|
|
||||||
- name: linstor
|
|
||||||
releaseName: linstor
|
|
||||||
chart: cozy-linstor
|
|
||||||
namespace: cozy-linstor
|
|
||||||
privileged: true
|
|
||||||
dependsOn: [piraeus-operator,cilium,cert-manager]
|
|
||||||
|
|
||||||
- name: telepresence
|
|
||||||
releaseName: traffic-manager
|
|
||||||
chart: cozy-telepresence
|
|
||||||
namespace: cozy-telepresence
|
|
||||||
dependsOn: []
|
|
||||||
@@ -1,177 +0,0 @@
|
|||||||
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
|
|
||||||
|
|
||||||
releases:
|
|
||||||
- name: cilium
|
|
||||||
releaseName: cilium
|
|
||||||
chart: cozy-cilium
|
|
||||||
namespace: cozy-cilium
|
|
||||||
privileged: true
|
|
||||||
dependsOn: []
|
|
||||||
|
|
||||||
- name: kubeovn
|
|
||||||
releaseName: kubeovn
|
|
||||||
chart: cozy-kubeovn
|
|
||||||
namespace: cozy-kubeovn
|
|
||||||
privileged: true
|
|
||||||
dependsOn: [cilium]
|
|
||||||
values:
|
|
||||||
cozystack:
|
|
||||||
nodesHash: {{ include "cozystack.master-node-ips" . | sha256sum }}
|
|
||||||
kube-ovn:
|
|
||||||
ipv4:
|
|
||||||
POD_CIDR: "{{ index $cozyConfig.data "ipv4-pod-cidr" }}"
|
|
||||||
POD_GATEWAY: "{{ index $cozyConfig.data "ipv4-pod-gateway" }}"
|
|
||||||
SVC_CIDR: "{{ index $cozyConfig.data "ipv4-svc-cidr" }}"
|
|
||||||
JOIN_CIDR: "{{ index $cozyConfig.data "ipv4-join-cidr" }}"
|
|
||||||
|
|
||||||
- name: fluxcd
|
|
||||||
releaseName: fluxcd
|
|
||||||
chart: cozy-fluxcd
|
|
||||||
namespace: cozy-fluxcd
|
|
||||||
dependsOn: [cilium,kubeovn]
|
|
||||||
|
|
||||||
- name: cert-manager
|
|
||||||
releaseName: cert-manager
|
|
||||||
chart: cozy-cert-manager
|
|
||||||
namespace: cozy-cert-manager
|
|
||||||
dependsOn: [cilium,kubeovn]
|
|
||||||
|
|
||||||
- name: cert-manager-issuers
|
|
||||||
releaseName: cert-manager-issuers
|
|
||||||
chart: cozy-cert-manager-issuers
|
|
||||||
namespace: cozy-cert-manager
|
|
||||||
dependsOn: [cilium,kubeovn,cert-manager]
|
|
||||||
|
|
||||||
- name: victoria-metrics-operator
|
|
||||||
releaseName: victoria-metrics-operator
|
|
||||||
chart: cozy-victoria-metrics-operator
|
|
||||||
namespace: cozy-victoria-metrics-operator
|
|
||||||
dependsOn: [cilium,kubeovn,cert-manager]
|
|
||||||
|
|
||||||
- name: monitoring
|
|
||||||
releaseName: monitoring
|
|
||||||
chart: cozy-monitoring
|
|
||||||
namespace: cozy-monitoring
|
|
||||||
privileged: true
|
|
||||||
dependsOn: [cilium,kubeovn,victoria-metrics-operator]
|
|
||||||
|
|
||||||
- name: kubevirt-operator
|
|
||||||
releaseName: kubevirt-operator
|
|
||||||
chart: cozy-kubevirt-operator
|
|
||||||
namespace: cozy-kubevirt
|
|
||||||
dependsOn: [cilium,kubeovn]
|
|
||||||
|
|
||||||
- name: kubevirt
|
|
||||||
releaseName: kubevirt
|
|
||||||
chart: cozy-kubevirt
|
|
||||||
namespace: cozy-kubevirt
|
|
||||||
privileged: true
|
|
||||||
dependsOn: [cilium,kubeovn,kubevirt-operator]
|
|
||||||
|
|
||||||
- name: kubevirt-cdi-operator
|
|
||||||
releaseName: kubevirt-cdi-operator
|
|
||||||
chart: cozy-kubevirt-cdi-operator
|
|
||||||
namespace: cozy-kubevirt-cdi
|
|
||||||
dependsOn: [cilium,kubeovn]
|
|
||||||
|
|
||||||
- name: kubevirt-cdi
|
|
||||||
releaseName: kubevirt-cdi
|
|
||||||
chart: cozy-kubevirt-cdi
|
|
||||||
namespace: cozy-kubevirt-cdi
|
|
||||||
dependsOn: [cilium,kubeovn,kubevirt-cdi-operator]
|
|
||||||
|
|
||||||
- name: metallb
|
|
||||||
releaseName: metallb
|
|
||||||
chart: cozy-metallb
|
|
||||||
namespace: cozy-metallb
|
|
||||||
privileged: true
|
|
||||||
dependsOn: [cilium,kubeovn]
|
|
||||||
|
|
||||||
- name: grafana-operator
|
|
||||||
releaseName: grafana-operator
|
|
||||||
chart: cozy-grafana-operator
|
|
||||||
namespace: cozy-grafana-operator
|
|
||||||
dependsOn: [cilium,kubeovn]
|
|
||||||
|
|
||||||
- name: mariadb-operator
|
|
||||||
releaseName: mariadb-operator
|
|
||||||
chart: cozy-mariadb-operator
|
|
||||||
namespace: cozy-mariadb-operator
|
|
||||||
dependsOn: [cilium,kubeovn,cert-manager,victoria-metrics-operator]
|
|
||||||
|
|
||||||
- name: postgres-operator
|
|
||||||
releaseName: postgres-operator
|
|
||||||
chart: cozy-postgres-operator
|
|
||||||
namespace: cozy-postgres-operator
|
|
||||||
dependsOn: [cilium,kubeovn,cert-manager]
|
|
||||||
|
|
||||||
- name: rabbitmq-operator
|
|
||||||
releaseName: rabbitmq-operator
|
|
||||||
chart: cozy-rabbitmq-operator
|
|
||||||
namespace: cozy-rabbitmq-operator
|
|
||||||
dependsOn: [cilium,kubeovn]
|
|
||||||
|
|
||||||
- name: redis-operator
|
|
||||||
releaseName: redis-operator
|
|
||||||
chart: cozy-redis-operator
|
|
||||||
namespace: cozy-redis-operator
|
|
||||||
dependsOn: [cilium,kubeovn]
|
|
||||||
|
|
||||||
- name: piraeus-operator
|
|
||||||
releaseName: piraeus-operator
|
|
||||||
chart: cozy-piraeus-operator
|
|
||||||
namespace: cozy-linstor
|
|
||||||
dependsOn: [cilium,kubeovn,cert-manager]
|
|
||||||
|
|
||||||
- name: linstor
|
|
||||||
releaseName: linstor
|
|
||||||
chart: cozy-linstor
|
|
||||||
namespace: cozy-linstor
|
|
||||||
privileged: true
|
|
||||||
dependsOn: [piraeus-operator,cilium,kubeovn,cert-manager]
|
|
||||||
|
|
||||||
- name: telepresence
|
|
||||||
releaseName: traffic-manager
|
|
||||||
chart: cozy-telepresence
|
|
||||||
namespace: cozy-telepresence
|
|
||||||
dependsOn: [cilium,kubeovn]
|
|
||||||
|
|
||||||
- name: dashboard
|
|
||||||
releaseName: dashboard
|
|
||||||
chart: cozy-dashboard
|
|
||||||
namespace: cozy-dashboard
|
|
||||||
dependsOn: [cilium,kubeovn]
|
|
||||||
{{- if .Capabilities.APIVersions.Has "source.toolkit.fluxcd.io/v1beta2" }}
|
|
||||||
{{- with (lookup "source.toolkit.fluxcd.io/v1beta2" "HelmRepository" "cozy-public" "").items }}
|
|
||||||
values:
|
|
||||||
kubeapps:
|
|
||||||
redis:
|
|
||||||
master:
|
|
||||||
podAnnotations:
|
|
||||||
{{- range $index, $repo := . }}
|
|
||||||
{{- with (($repo.status).artifact).revision }}
|
|
||||||
repository.cozystack.io/{{ $repo.metadata.name }}: {{ quote . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
- name: kamaji
|
|
||||||
releaseName: kamaji
|
|
||||||
chart: cozy-kamaji
|
|
||||||
namespace: cozy-kamaji
|
|
||||||
dependsOn: [cilium,kubeovn,cert-manager]
|
|
||||||
|
|
||||||
- name: capi-operator
|
|
||||||
releaseName: capi-operator
|
|
||||||
chart: cozy-capi-operator
|
|
||||||
namespace: cozy-cluster-api
|
|
||||||
privileged: true
|
|
||||||
dependsOn: [cilium,kubeovn,cert-manager]
|
|
||||||
|
|
||||||
- name: capi-providers
|
|
||||||
releaseName: capi-providers
|
|
||||||
chart: cozy-capi-providers
|
|
||||||
namespace: cozy-cluster-api
|
|
||||||
privileged: true
|
|
||||||
dependsOn: [cilium,kubeovn,capi-operator]
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
|
|
||||||
|
|
||||||
releases:
|
|
||||||
- name: fluxcd
|
|
||||||
releaseName: fluxcd
|
|
||||||
chart: cozy-fluxcd
|
|
||||||
namespace: cozy-fluxcd
|
|
||||||
dependsOn: []
|
|
||||||
|
|
||||||
- name: cert-manager
|
|
||||||
releaseName: cert-manager
|
|
||||||
chart: cozy-cert-manager
|
|
||||||
namespace: cozy-cert-manager
|
|
||||||
dependsOn: []
|
|
||||||
|
|
||||||
- name: cert-manager-issuers
|
|
||||||
releaseName: cert-manager-issuers
|
|
||||||
chart: cozy-cert-manager-issuers
|
|
||||||
namespace: cozy-cert-manager
|
|
||||||
dependsOn: [cert-manager]
|
|
||||||
|
|
||||||
- name: victoria-metrics-operator
|
|
||||||
releaseName: victoria-metrics-operator
|
|
||||||
chart: cozy-victoria-metrics-operator
|
|
||||||
namespace: cozy-victoria-metrics-operator
|
|
||||||
dependsOn: [cert-manager]
|
|
||||||
|
|
||||||
- name: monitoring
|
|
||||||
releaseName: monitoring
|
|
||||||
chart: cozy-monitoring
|
|
||||||
namespace: cozy-monitoring
|
|
||||||
privileged: true
|
|
||||||
dependsOn: [victoria-metrics-operator]
|
|
||||||
|
|
||||||
- name: grafana-operator
|
|
||||||
releaseName: grafana-operator
|
|
||||||
chart: cozy-grafana-operator
|
|
||||||
namespace: cozy-grafana-operator
|
|
||||||
dependsOn: []
|
|
||||||
|
|
||||||
- name: mariadb-operator
|
|
||||||
releaseName: mariadb-operator
|
|
||||||
chart: cozy-mariadb-operator
|
|
||||||
namespace: cozy-mariadb-operator
|
|
||||||
dependsOn: [victoria-metrics-operator]
|
|
||||||
|
|
||||||
- name: postgres-operator
|
|
||||||
releaseName: postgres-operator
|
|
||||||
chart: cozy-postgres-operator
|
|
||||||
namespace: cozy-postgres-operator
|
|
||||||
dependsOn: [cert-manager]
|
|
||||||
|
|
||||||
- name: rabbitmq-operator
|
|
||||||
releaseName: rabbitmq-operator
|
|
||||||
chart: cozy-rabbitmq-operator
|
|
||||||
namespace: cozy-rabbitmq-operator
|
|
||||||
dependsOn: []
|
|
||||||
|
|
||||||
- name: redis-operator
|
|
||||||
releaseName: redis-operator
|
|
||||||
chart: cozy-redis-operator
|
|
||||||
namespace: cozy-redis-operator
|
|
||||||
dependsOn: []
|
|
||||||
|
|
||||||
- name: telepresence
|
|
||||||
releaseName: traffic-manager
|
|
||||||
chart: cozy-telepresence
|
|
||||||
namespace: cozy-telepresence
|
|
||||||
dependsOn: []
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
|
|
||||||
|
|
||||||
releases:
|
|
||||||
- name: fluxcd
|
|
||||||
releaseName: fluxcd
|
|
||||||
chart: cozy-fluxcd
|
|
||||||
namespace: cozy-fluxcd
|
|
||||||
dependsOn: []
|
|
||||||
|
|
||||||
- name: cert-manager
|
|
||||||
releaseName: cert-manager
|
|
||||||
chart: cozy-cert-manager
|
|
||||||
namespace: cozy-cert-manager
|
|
||||||
dependsOn: []
|
|
||||||
|
|
||||||
- name: cert-manager-issuers
|
|
||||||
releaseName: cert-manager-issuers
|
|
||||||
chart: cozy-cert-manager-issuers
|
|
||||||
namespace: cozy-cert-manager
|
|
||||||
dependsOn: [cert-manager]
|
|
||||||
|
|
||||||
- name: victoria-metrics-operator
|
|
||||||
releaseName: victoria-metrics-operator
|
|
||||||
chart: cozy-victoria-metrics-operator
|
|
||||||
namespace: cozy-victoria-metrics-operator
|
|
||||||
dependsOn: [cert-manager]
|
|
||||||
|
|
||||||
- name: monitoring
|
|
||||||
releaseName: monitoring
|
|
||||||
chart: cozy-monitoring
|
|
||||||
namespace: cozy-monitoring
|
|
||||||
privileged: true
|
|
||||||
dependsOn: [victoria-metrics-operator]
|
|
||||||
|
|
||||||
- name: grafana-operator
|
|
||||||
releaseName: grafana-operator
|
|
||||||
chart: cozy-grafana-operator
|
|
||||||
namespace: cozy-grafana-operator
|
|
||||||
dependsOn: []
|
|
||||||
|
|
||||||
- name: mariadb-operator
|
|
||||||
releaseName: mariadb-operator
|
|
||||||
chart: cozy-mariadb-operator
|
|
||||||
namespace: cozy-mariadb-operator
|
|
||||||
dependsOn: [cert-manager,victoria-metrics-operator]
|
|
||||||
|
|
||||||
- name: postgres-operator
|
|
||||||
releaseName: postgres-operator
|
|
||||||
chart: cozy-postgres-operator
|
|
||||||
namespace: cozy-postgres-operator
|
|
||||||
dependsOn: [cert-manager]
|
|
||||||
|
|
||||||
- name: rabbitmq-operator
|
|
||||||
releaseName: rabbitmq-operator
|
|
||||||
chart: cozy-rabbitmq-operator
|
|
||||||
namespace: cozy-rabbitmq-operator
|
|
||||||
dependsOn: []
|
|
||||||
|
|
||||||
- name: redis-operator
|
|
||||||
releaseName: redis-operator
|
|
||||||
chart: cozy-redis-operator
|
|
||||||
namespace: cozy-redis-operator
|
|
||||||
dependsOn: []
|
|
||||||
|
|
||||||
- name: piraeus-operator
|
|
||||||
releaseName: piraeus-operator
|
|
||||||
chart: cozy-piraeus-operator
|
|
||||||
namespace: cozy-linstor
|
|
||||||
dependsOn: [cert-manager]
|
|
||||||
|
|
||||||
- name: telepresence
|
|
||||||
releaseName: traffic-manager
|
|
||||||
chart: cozy-telepresence
|
|
||||||
namespace: cozy-telepresence
|
|
||||||
dependsOn: []
|
|
||||||
|
|
||||||
- name: dashboard
|
|
||||||
releaseName: dashboard
|
|
||||||
chart: cozy-dashboard
|
|
||||||
namespace: cozy-dashboard
|
|
||||||
dependsOn: []
|
|
||||||
{{- if .Capabilities.APIVersions.Has "source.toolkit.fluxcd.io/v1beta2" }}
|
|
||||||
{{- with (lookup "source.toolkit.fluxcd.io/v1beta2" "HelmRepository" "cozy-public" "").items }}
|
|
||||||
values:
|
|
||||||
kubeapps:
|
|
||||||
redis:
|
|
||||||
master:
|
|
||||||
podAnnotations:
|
|
||||||
{{- range $index, $repo := . }}
|
|
||||||
{{- with (($repo.status).artifact).revision }}
|
|
||||||
repository.cozystack.io/{{ $repo.metadata.name }}: {{ quote . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{{/*
|
{{/*
|
||||||
Get IP-addresses of master nodes
|
Get IP-addresses of master nodes
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "cozystack.master-node-ips" -}}
|
{{- define "master.nodeIPs" -}}
|
||||||
{{- $nodes := lookup "v1" "Node" "" "" -}}
|
{{- $nodes := lookup "v1" "Node" "" "" -}}
|
||||||
{{- $ips := list -}}
|
{{- $ips := list -}}
|
||||||
{{- range $node := $nodes.items -}}
|
{{- range $node := $nodes.items -}}
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
|
|
||||||
{{- $bundleName := index $cozyConfig.data "bundle-name" }}
|
|
||||||
{{- $bundle := tpl (.Files.Get (printf "bundles/%s.yaml" $bundleName)) . | fromYaml }}
|
|
||||||
{{- $host := "example.org" }}
|
{{- $host := "example.org" }}
|
||||||
{{- $tenantRoot := list }}
|
{{- $tenantRoot := list }}
|
||||||
{{- if .Capabilities.APIVersions.Has "helm.toolkit.fluxcd.io/v2beta2" }}
|
{{- if .Capabilities.APIVersions.Has "helm.toolkit.fluxcd.io/v2beta1" }}
|
||||||
{{- $tenantRoot = lookup "helm.toolkit.fluxcd.io/v2beta2" "HelmRelease" "tenant-root" "tenant-root" }}
|
{{- $tenantRoot = lookup "helm.toolkit.fluxcd.io/v2beta1" "HelmRelease" "tenant-root" "tenant-root" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and $tenantRoot $tenantRoot.spec $tenantRoot.spec.values $tenantRoot.spec.values.host }}
|
{{- if and $tenantRoot $tenantRoot.spec $tenantRoot.spec.values $tenantRoot.spec.values.host }}
|
||||||
{{- $host = $tenantRoot.spec.values.host }}
|
{{- $host = $tenantRoot.spec.values.host }}
|
||||||
@@ -22,7 +19,7 @@ metadata:
|
|||||||
namespace.cozystack.io/host: "{{ $host }}"
|
namespace.cozystack.io/host: "{{ $host }}"
|
||||||
name: tenant-root
|
name: tenant-root
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-root
|
name: tenant-root
|
||||||
@@ -48,9 +45,7 @@ spec:
|
|||||||
values:
|
values:
|
||||||
host: "{{ $host }}"
|
host: "{{ $host }}"
|
||||||
dependsOn:
|
dependsOn:
|
||||||
{{- range $x := $bundle.releases }}
|
- name: cilium
|
||||||
{{- if has $x.name (list "cilium" "kubeovn") }}
|
namespace: cozy-cilium
|
||||||
- name: {{ $x.name }}
|
- name: kubeovn
|
||||||
namespace: {{ $x.namespace }}
|
namespace: cozy-kubeovn
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|||||||
@@ -1,27 +1,13 @@
|
|||||||
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
{{- $bundleName := index $cozyConfig.data "bundle-name" }}
|
|
||||||
{{- $bundle := tpl (.Files.Get (printf "bundles/%s.yaml" $bundleName)) . | fromYaml }}
|
|
||||||
{{- $dependencyNamespaces := dict }}
|
|
||||||
{{- $disabledComponents := splitList "," ((index $cozyConfig.data "bundle-disable") | default "") }}
|
|
||||||
|
|
||||||
{{/* collect dependency namespaces from releases */}}
|
|
||||||
{{- range $x := $bundle.releases }}
|
|
||||||
{{- $_ := set $dependencyNamespaces $x.name $x.namespace }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- range $x := $bundle.releases }}
|
|
||||||
{{- if not (has $x.name $disabledComponents) }}
|
|
||||||
---
|
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $x.name }}
|
name: cilium
|
||||||
namespace: {{ $x.namespace }}
|
namespace: cozy-cilium
|
||||||
labels:
|
labels:
|
||||||
cozystack.io/repository: system
|
cozystack.io/repository: system
|
||||||
spec:
|
spec:
|
||||||
interval: 1m
|
interval: 1m
|
||||||
releaseName: {{ $x.releaseName | default $x.name }}
|
releaseName: cilium
|
||||||
install:
|
install:
|
||||||
remediation:
|
remediation:
|
||||||
retries: -1
|
retries: -1
|
||||||
@@ -30,31 +16,743 @@ spec:
|
|||||||
retries: -1
|
retries: -1
|
||||||
chart:
|
chart:
|
||||||
spec:
|
spec:
|
||||||
chart: {{ $x.chart }}
|
chart: cozy-cilium
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: kubeovn
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-kubeovn
|
||||||
reconcileStrategy: Revision
|
reconcileStrategy: Revision
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: cozystack-system
|
name: cozystack-system
|
||||||
namespace: cozy-system
|
namespace: cozy-system
|
||||||
{{- $values := dict }}
|
|
||||||
{{- with $x.values }}
|
|
||||||
{{- $values = merge . $values }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with index $cozyConfig.data (printf "values-%s" $x.name) }}
|
|
||||||
{{- $values = merge (fromYaml .) $values }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with $values }}
|
|
||||||
values:
|
values:
|
||||||
{{- toYaml . | nindent 4}}
|
cozystack:
|
||||||
{{- end }}
|
configHash: {{ index (lookup "v1" "ConfigMap" "cozy-system" "cozystack") "data" | toJson | sha256sum }}
|
||||||
{{- with $x.dependsOn }}
|
nodesHash: {{ include "master.nodeIPs" . | sha256sum }}
|
||||||
dependsOn:
|
dependsOn:
|
||||||
{{- range $dep := . }}
|
- name: cilium
|
||||||
{{- if not (has $dep $disabledComponents) }}
|
namespace: cozy-cilium
|
||||||
- name: {{ $dep }}
|
---
|
||||||
namespace: {{ index $dependencyNamespaces $dep }}
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: cozy-fluxcd
|
||||||
|
namespace: cozy-fluxcd
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: fluxcd
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-fluxcd
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: cert-manager
|
||||||
|
namespace: cozy-cert-manager
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: cert-manager
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-cert-manager
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: cert-manager-issuers
|
||||||
|
namespace: cozy-cert-manager
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: cert-manager-issuers
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-cert-manager-issuers
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
- name: cert-manager
|
||||||
|
namespace: cozy-cert-manager
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: victoria-metrics-operator
|
||||||
|
namespace: cozy-victoria-metrics-operator
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: victoria-metrics-operator
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-victoria-metrics-operator
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
- name: cert-manager
|
||||||
|
namespace: cozy-cert-manager
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: monitoring
|
||||||
|
namespace: cozy-monitoring
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: monitoring
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-monitoring
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
- name: victoria-metrics-operator
|
||||||
|
namespace: cozy-victoria-metrics-operator
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: kubevirt-operator
|
||||||
|
namespace: cozy-kubevirt
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: kubevirt-operator
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-kubevirt-operator
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: kubevirt
|
||||||
|
namespace: cozy-kubevirt
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: kubevirt
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-kubevirt
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
- name: kubevirt-operator
|
||||||
|
namespace: cozy-kubevirt
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: kubevirt-cdi-operator
|
||||||
|
namespace: cozy-kubevirt-cdi
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: kubevirt-cdi-operator
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-kubevirt-cdi-operator
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: kubevirt-cdi
|
||||||
|
namespace: cozy-kubevirt-cdi
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: kubevirt-cdi
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-kubevirt-cdi
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
- name: kubevirt-cdi-operator
|
||||||
|
namespace: cozy-kubevirt-cdi
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: metallb
|
||||||
|
namespace: cozy-metallb
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: metallb
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-metallb
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: grafana-operator
|
||||||
|
namespace: cozy-grafana-operator
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: grafana-operator
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-grafana-operator
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: mariadb-operator
|
||||||
|
namespace: cozy-mariadb-operator
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: mariadb-operator
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-mariadb-operator
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
- name: cert-manager
|
||||||
|
namespace: cozy-cert-manager
|
||||||
|
- name: victoria-metrics-operator
|
||||||
|
namespace: cozy-victoria-metrics-operator
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: postgres-operator
|
||||||
|
namespace: cozy-postgres-operator
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: postgres-operator
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-postgres-operator
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
- name: cert-manager
|
||||||
|
namespace: cozy-cert-manager
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: rabbitmq-operator
|
||||||
|
namespace: cozy-rabbitmq-operator
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: rabbitmq-operator
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-rabbitmq-operator
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: redis-operator
|
||||||
|
namespace: cozy-redis-operator
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: redis-operator
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-redis-operator
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: piraeus-operator
|
||||||
|
namespace: cozy-linstor
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: piraeus-operator
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-piraeus-operator
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
- name: cert-manager
|
||||||
|
namespace: cozy-cert-manager
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: linstor
|
||||||
|
namespace: cozy-linstor
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: linstor
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-linstor
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
- name: piraeus-operator
|
||||||
|
namespace: cozy-linstor
|
||||||
|
- name: cert-manager
|
||||||
|
namespace: cozy-cert-manager
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: telepresence
|
||||||
|
namespace: cozy-telepresence
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: traffic-manager
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-telepresence
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: dashboard
|
||||||
|
namespace: cozy-dashboard
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: dashboard
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-dashboard
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
{{- if .Capabilities.APIVersions.Has "source.toolkit.fluxcd.io/v1beta2" }}
|
||||||
|
{{- with (lookup "source.toolkit.fluxcd.io/v1beta2" "HelmRepository" "cozy-public" "").items }}
|
||||||
|
values:
|
||||||
|
kubeapps:
|
||||||
|
redis:
|
||||||
|
master:
|
||||||
|
podAnnotations:
|
||||||
|
{{- range $index, $repo := . }}
|
||||||
|
{{- with (($repo.status).artifact).revision }}
|
||||||
|
repository.cozystack.io/{{ $repo.metadata.name }}: {{ quote . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
---
|
||||||
{{- end }}
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
{{- end }}
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: kamaji
|
||||||
|
namespace: cozy-kamaji
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: kamaji
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-kamaji
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
- name: cert-manager
|
||||||
|
namespace: cozy-cert-manager
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: capi-operator
|
||||||
|
namespace: cozy-cluster-api
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: capi-operator
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-capi-operator
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
- name: cert-manager
|
||||||
|
namespace: cozy-cert-manager
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: capi-providers
|
||||||
|
namespace: cozy-cluster-api
|
||||||
|
labels:
|
||||||
|
cozystack.io/repository: system
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
releaseName: capi-providers
|
||||||
|
install:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
upgrade:
|
||||||
|
remediation:
|
||||||
|
retries: -1
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cozy-capi-providers
|
||||||
|
reconcileStrategy: Revision
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: cozystack-system
|
||||||
|
namespace: cozy-system
|
||||||
|
dependsOn:
|
||||||
|
- name: capi-operator
|
||||||
|
namespace: cozy-cluster-api
|
||||||
|
- name: cilium
|
||||||
|
namespace: cozy-cilium
|
||||||
|
- name: kubeovn
|
||||||
|
namespace: cozy-kubeovn
|
||||||
|
|||||||
@@ -1,29 +1,13 @@
|
|||||||
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
|
{{- range $ns := .Values.namespaces }}
|
||||||
{{- $bundleName := index $cozyConfig.data "bundle-name" }}
|
|
||||||
{{- $bundle := tpl (.Files.Get (printf "bundles/%s.yaml" $bundleName)) . | fromYaml }}
|
|
||||||
{{- $namespaces := dict }}
|
|
||||||
|
|
||||||
{{/* collect namespaces from releases */}}
|
|
||||||
{{- range $x := $bundle.releases }}
|
|
||||||
{{- if not (hasKey $namespaces $x.namespace) }}
|
|
||||||
{{- $_ := set $namespaces $x.namespace false }}
|
|
||||||
{{- end }}
|
|
||||||
{{/* if at least one release requires a privileged namespace, then it should be privileged */}}
|
|
||||||
{{- if or $x.privileged (index $namespaces $x.namespace) }}
|
|
||||||
{{- $_ := set $namespaces $x.namespace true }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- range $namespace, $privileged := $namespaces }}
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/resource-policy": keep
|
"helm.sh/resource-policy": keep
|
||||||
{{- if $privileged }}
|
{{- if $ns.privileged }}
|
||||||
labels:
|
labels:
|
||||||
pod-security.kubernetes.io/enforce: privileged
|
pod-security.kubernetes.io/enforce: privileged
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ $namespace }}
|
name: {{ $ns.name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
30
packages/core/platform/values.yaml
Normal file
30
packages/core/platform/values.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
namespaces:
|
||||||
|
- name: cozy-public
|
||||||
|
- name: cozy-system
|
||||||
|
privileged: true
|
||||||
|
- name: cozy-cert-manager
|
||||||
|
- name: cozy-cilium
|
||||||
|
privileged: true
|
||||||
|
- name: cozy-fluxcd
|
||||||
|
- name: cozy-grafana-operator
|
||||||
|
- name: cozy-kamaji
|
||||||
|
- name: cozy-cluster-api
|
||||||
|
privileged: true # for capk only
|
||||||
|
- name: cozy-dashboard
|
||||||
|
- name: cozy-kubeovn
|
||||||
|
privileged: true
|
||||||
|
- name: cozy-kubevirt
|
||||||
|
privileged: true
|
||||||
|
- name: cozy-kubevirt-cdi
|
||||||
|
- name: cozy-linstor
|
||||||
|
privileged: true
|
||||||
|
- name: cozy-mariadb-operator
|
||||||
|
- name: cozy-metallb
|
||||||
|
privileged: true
|
||||||
|
- name: cozy-monitoring
|
||||||
|
privileged: true
|
||||||
|
- name: cozy-postgres-operator
|
||||||
|
- name: cozy-rabbitmq-operator
|
||||||
|
- name: cozy-redis-operator
|
||||||
|
- name: cozy-telepresence
|
||||||
|
- name: cozy-victoria-metrics-operator
|
||||||
@@ -1,88 +1,131 @@
|
|||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/crds: "- kind: CiliumNetworkPolicy\n version: v2\n name: ciliumnetworkpolicies.cilium.io\n
|
artifacthub.io/crds: |
|
||||||
\ displayName: Cilium Network Policy\n description: |\n Cilium Network Policies
|
- kind: CiliumNetworkPolicy
|
||||||
provide additional functionality beyond what\n is provided by standard Kubernetes
|
version: v2
|
||||||
NetworkPolicy such as the ability\n to allow traffic based on FQDNs, or to
|
name: ciliumnetworkpolicies.cilium.io
|
||||||
filter at Layer 7.\n- kind: CiliumClusterwideNetworkPolicy\n version: v2\n name:
|
displayName: Cilium Network Policy
|
||||||
ciliumclusterwidenetworkpolicies.cilium.io\n displayName: Cilium Clusterwide
|
description: |
|
||||||
Network Policy\n description: |\n Cilium Clusterwide Network Policies support
|
Cilium Network Policies provide additional functionality beyond what
|
||||||
configuring network traffic\n policiies across the entire cluster, including
|
is provided by standard Kubernetes NetworkPolicy such as the ability
|
||||||
applying node firewalls.\n- kind: CiliumExternalWorkload\n version: v2\n name:
|
to allow traffic based on FQDNs, or to filter at Layer 7.
|
||||||
ciliumexternalworkloads.cilium.io\n displayName: Cilium External Workload\n description:
|
- kind: CiliumClusterwideNetworkPolicy
|
||||||
|\n Cilium External Workload supports configuring the ability for external\n
|
version: v2
|
||||||
\ non-Kubernetes workloads to join the cluster.\n- kind: CiliumLocalRedirectPolicy\n
|
name: ciliumclusterwidenetworkpolicies.cilium.io
|
||||||
\ version: v2\n name: ciliumlocalredirectpolicies.cilium.io\n displayName: Cilium
|
displayName: Cilium Clusterwide Network Policy
|
||||||
Local Redirect Policy\n description: |\n Cilium Local Redirect Policy allows
|
description: |
|
||||||
local redirects to be configured\n within a node to support use cases like
|
Cilium Clusterwide Network Policies support configuring network traffic
|
||||||
Node-Local DNS or KIAM.\n- kind: CiliumNode\n version: v2\n name: ciliumnodes.cilium.io\n
|
policiies across the entire cluster, including applying node firewalls.
|
||||||
\ displayName: Cilium Node\n description: |\n Cilium Node represents a node
|
- kind: CiliumExternalWorkload
|
||||||
managed by Cilium. It contains a\n specification to control various node specific
|
version: v2
|
||||||
configuration aspects\n and a status section to represent the status of the
|
name: ciliumexternalworkloads.cilium.io
|
||||||
node.\n- kind: CiliumIdentity\n version: v2\n name: ciliumidentities.cilium.io\n
|
displayName: Cilium External Workload
|
||||||
\ displayName: Cilium Identity\n description: |\n Cilium Identity allows introspection
|
description: |
|
||||||
into security identities that\n Cilium allocates which identify sets of labels
|
Cilium External Workload supports configuring the ability for external
|
||||||
that are assigned to\n individual endpoints in the cluster.\n- kind: CiliumEndpoint\n
|
non-Kubernetes workloads to join the cluster.
|
||||||
\ version: v2\n name: ciliumendpoints.cilium.io\n displayName: Cilium Endpoint\n
|
- kind: CiliumLocalRedirectPolicy
|
||||||
\ description: |\n Cilium Endpoint represents the status of individual pods
|
version: v2
|
||||||
or nodes in\n the cluster which are managed by Cilium, including enforcement
|
name: ciliumlocalredirectpolicies.cilium.io
|
||||||
status,\n IP addressing and whether the networking is successfully operational.\n-
|
displayName: Cilium Local Redirect Policy
|
||||||
kind: CiliumEndpointSlice\n version: v2alpha1\n name: ciliumendpointslices.cilium.io\n
|
description: |
|
||||||
\ displayName: Cilium Endpoint Slice\n description: |\n Cilium Endpoint Slice
|
Cilium Local Redirect Policy allows local redirects to be configured
|
||||||
represents the status of groups of pods or nodes\n in the cluster which are
|
within a node to support use cases like Node-Local DNS or KIAM.
|
||||||
managed by Cilium, including enforcement status,\n IP addressing and whether
|
- kind: CiliumNode
|
||||||
the networking is successfully operational.\n- kind: CiliumEgressGatewayPolicy\n
|
version: v2
|
||||||
\ version: v2\n name: ciliumegressgatewaypolicies.cilium.io\n displayName: Cilium
|
name: ciliumnodes.cilium.io
|
||||||
Egress Gateway Policy\n description: |\n Cilium Egress Gateway Policy provides
|
displayName: Cilium Node
|
||||||
control over the way that traffic\n leaves the cluster and which source addresses
|
description: |
|
||||||
to use for that traffic.\n- kind: CiliumClusterwideEnvoyConfig\n version: v2\n
|
Cilium Node represents a node managed by Cilium. It contains a
|
||||||
\ name: ciliumclusterwideenvoyconfigs.cilium.io\n displayName: Cilium Clusterwide
|
specification to control various node specific configuration aspects
|
||||||
Envoy Config\n description: |\n Cilium Clusterwide Envoy Config specifies
|
and a status section to represent the status of the node.
|
||||||
Envoy resources and K8s service mappings\n to be provisioned into Cilium host
|
- kind: CiliumIdentity
|
||||||
proxy instances in cluster context.\n- kind: CiliumEnvoyConfig\n version: v2\n
|
version: v2
|
||||||
\ name: ciliumenvoyconfigs.cilium.io\n displayName: Cilium Envoy Config\n description:
|
name: ciliumidentities.cilium.io
|
||||||
|\n Cilium Envoy Config specifies Envoy resources and K8s service mappings\n
|
displayName: Cilium Identity
|
||||||
\ to be provisioned into Cilium host proxy instances in namespace context.\n-
|
description: |
|
||||||
kind: CiliumBGPPeeringPolicy\n version: v2alpha1\n name: ciliumbgppeeringpolicies.cilium.io\n
|
Cilium Identity allows introspection into security identities that
|
||||||
\ displayName: Cilium BGP Peering Policy\n description: |\n Cilium BGP Peering
|
Cilium allocates which identify sets of labels that are assigned to
|
||||||
Policy instructs Cilium to create specific BGP peering\n configurations.\n-
|
individual endpoints in the cluster.
|
||||||
kind: CiliumBGPClusterConfig\n version: v2alpha1\n name: ciliumbgpclusterconfigs.cilium.io\n
|
- kind: CiliumEndpoint
|
||||||
\ displayName: Cilium BGP Cluster Config\n description: |\n Cilium BGP Cluster
|
version: v2
|
||||||
Config instructs Cilium operator to create specific BGP cluster\n configurations.\n-
|
name: ciliumendpoints.cilium.io
|
||||||
kind: CiliumBGPPeerConfig\n version: v2alpha1\n name: ciliumbgppeerconfigs.cilium.io\n
|
displayName: Cilium Endpoint
|
||||||
\ displayName: Cilium BGP Peer Config\n description: |\n CiliumBGPPeerConfig
|
description: |
|
||||||
is a common set of BGP peer configurations. It can be referenced \n by multiple
|
Cilium Endpoint represents the status of individual pods or nodes in
|
||||||
peers from CiliumBGPClusterConfig.\n- kind: CiliumBGPAdvertisement\n version:
|
the cluster which are managed by Cilium, including enforcement status,
|
||||||
v2alpha1\n name: ciliumbgpadvertisements.cilium.io\n displayName: Cilium BGP
|
IP addressing and whether the networking is succesfully operational.
|
||||||
Advertisement\n description: |\n CiliumBGPAdvertisement is used to define
|
- kind: CiliumEndpointSlice
|
||||||
source of BGP advertisement as well as BGP attributes \n to be advertised with
|
version: v2alpha1
|
||||||
those prefixes.\n- kind: CiliumBGPNodeConfig\n version: v2alpha1\n name: ciliumbgpnodeconfigs.cilium.io\n
|
name: ciliumendpointslices.cilium.io
|
||||||
\ displayName: Cilium BGP Node Config\n description: |\n CiliumBGPNodeConfig
|
displayName: Cilium Endpoint Slice
|
||||||
is read only node specific BGP configuration. It is constructed by Cilium operator.\n
|
description: |
|
||||||
\ It will also contain node local BGP state information.\n- kind: CiliumBGPNodeConfigOverride\n
|
Cilium Endpoint Slice represents the status of groups of pods or nodes
|
||||||
\ version: v2alpha1\n name: ciliumbgpnodeconfigoverrides.cilium.io\n displayName:
|
in the cluster which are managed by Cilium, including enforcement status,
|
||||||
Cilium BGP Node Config Override\n description: |\n CiliumBGPNodeConfigOverride
|
IP addressing and whether the networking is succesfully operational.
|
||||||
can be used to override node specific BGP configuration.\n- kind: CiliumLoadBalancerIPPool\n
|
- kind: CiliumEgressGatewayPolicy
|
||||||
\ version: v2alpha1\n name: ciliumloadbalancerippools.cilium.io\n displayName:
|
version: v2
|
||||||
Cilium Load Balancer IP Pool\n description: |\n Defining a Cilium Load Balancer
|
name: ciliumegressgatewaypolicies.cilium.io
|
||||||
IP Pool instructs Cilium to assign IPs to LoadBalancer Services.\n- kind: CiliumNodeConfig\n
|
displayName: Cilium Egress Gateway Policy
|
||||||
\ version: v2alpha1\n name: ciliumnodeconfigs.cilium.io\n displayName: Cilium
|
description: |
|
||||||
Node Configuration\n description: |\n CiliumNodeConfig is a list of configuration
|
Cilium Egress Gateway Policy provides control over the way that traffic
|
||||||
key-value pairs. It is applied to\n nodes indicated by a label selector.\n-
|
leaves the cluster and which source addresses to use for that traffic.
|
||||||
kind: CiliumCIDRGroup\n version: v2alpha1\n name: ciliumcidrgroups.cilium.io\n
|
- kind: CiliumClusterwideEnvoyConfig
|
||||||
\ displayName: Cilium CIDR Group\n description: |\n CiliumCIDRGroup is a list
|
version: v2
|
||||||
of CIDRs that can be referenced as a single entity from CiliumNetworkPolicies.\n-
|
name: ciliumclusterwideenvoyconfigs.cilium.io
|
||||||
kind: CiliumL2AnnouncementPolicy\n version: v2alpha1\n name: ciliuml2announcementpolicies.cilium.io\n
|
displayName: Cilium Clusterwide Envoy Config
|
||||||
\ displayName: Cilium L2 Announcement Policy\n description: |\n CiliumL2AnnouncementPolicy
|
description: |
|
||||||
is a policy which determines which service IPs will be announced to\n the local
|
Cilium Clusterwide Envoy Config specifies Envoy resources and K8s service mappings
|
||||||
area network, by which nodes, and via which interfaces.\n- kind: CiliumPodIPPool\n
|
to be provisioned into Cilium host proxy instances in cluster context.
|
||||||
\ version: v2alpha1\n name: ciliumpodippools.cilium.io\n displayName: Cilium
|
- kind: CiliumEnvoyConfig
|
||||||
Pod IP Pool\n description: |\n CiliumPodIPPool defines an IP pool that can
|
version: v2
|
||||||
be used for pooled IPAM (i.e. the multi-pool IPAM mode).\n"
|
name: ciliumenvoyconfigs.cilium.io
|
||||||
|
displayName: Cilium Envoy Config
|
||||||
|
description: |
|
||||||
|
Cilium Envoy Config specifies Envoy resources and K8s service mappings
|
||||||
|
to be provisioned into Cilium host proxy instances in namespace context.
|
||||||
|
- kind: CiliumBGPPeeringPolicy
|
||||||
|
version: v2alpha1
|
||||||
|
name: ciliumbgppeeringpolicies.cilium.io
|
||||||
|
displayName: Cilium BGP Peering Policy
|
||||||
|
description: |
|
||||||
|
Cilium BGP Peering Policy instructs Cilium to create specific BGP peering
|
||||||
|
configurations.
|
||||||
|
- kind: CiliumLoadBalancerIPPool
|
||||||
|
version: v2alpha1
|
||||||
|
name: ciliumloadbalancerippools.cilium.io
|
||||||
|
displayName: Cilium Load Balancer IP Pool
|
||||||
|
description: |
|
||||||
|
Defining a Cilium Load Balancer IP Pool instructs Cilium to assign IPs to LoadBalancer Services.
|
||||||
|
- kind: CiliumNodeConfig
|
||||||
|
version: v2alpha1
|
||||||
|
name: ciliumnodeconfigs.cilium.io
|
||||||
|
displayName: Cilium Node Configuration
|
||||||
|
description: |
|
||||||
|
CiliumNodeConfig is a list of configuration key-value pairs. It is applied to
|
||||||
|
nodes indicated by a label selector.
|
||||||
|
- kind: CiliumCIDRGroup
|
||||||
|
version: v2alpha1
|
||||||
|
name: ciliumcidrgroups.cilium.io
|
||||||
|
displayName: Cilium CIDR Group
|
||||||
|
description: |
|
||||||
|
CiliumCIDRGroup is a list of CIDRs that can be referenced as a single entity from CiliumNetworkPolicies.
|
||||||
|
- kind: CiliumL2AnnouncementPolicy
|
||||||
|
version: v2alpha1
|
||||||
|
name: ciliuml2announcementpolicies.cilium.io
|
||||||
|
displayName: Cilium L2 Announcement Policy
|
||||||
|
description: |
|
||||||
|
CiliumL2AnnouncementPolicy is a policy which determines which service IPs will be announced to
|
||||||
|
the local area network, by which nodes, and via which interfaces.
|
||||||
|
- kind: CiliumPodIPPool
|
||||||
|
version: v2alpha1
|
||||||
|
name: ciliumpodippools.cilium.io
|
||||||
|
displayName: Cilium Pod IP Pool
|
||||||
|
description: |
|
||||||
|
CiliumPodIPPool defines an IP pool that can be used for pooled IPAM (i.e. the multi-pool IPAM mode).
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: 1.15.2
|
appVersion: 1.14.5
|
||||||
description: eBPF-based Networking, Security, and Observability
|
description: eBPF-based Networking, Security, and Observability
|
||||||
home: https://cilium.io/
|
home: https://cilium.io/
|
||||||
icon: https://cdn.jsdelivr.net/gh/cilium/cilium@v1.15/Documentation/images/logo-solo.svg
|
icon: https://cdn.jsdelivr.net/gh/cilium/cilium@v1.14/Documentation/images/logo-solo.svg
|
||||||
keywords:
|
keywords:
|
||||||
- BPF
|
- BPF
|
||||||
- eBPF
|
- eBPF
|
||||||
@@ -95,4 +138,4 @@ kubeVersion: '>= 1.16.0-0'
|
|||||||
name: cilium
|
name: cilium
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/cilium/cilium
|
- https://github.com/cilium/cilium
|
||||||
version: 1.15.2
|
version: 1.14.5
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# cilium
|
# cilium
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Cilium is open source software for providing and transparently securing
|
Cilium is open source software for providing and transparently securing
|
||||||
network connectivity and loadbalancing between application workloads such as
|
network connectivity and loadbalancing between application workloads such as
|
||||||
@@ -60,30 +60,24 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| aksbyocni.enabled | bool | `false` | Enable AKS BYOCNI integration. Note that this is incompatible with AKS clusters not created in BYOCNI mode: use Azure integration (`azure.enabled`) instead. |
|
| aksbyocni.enabled | bool | `false` | Enable AKS BYOCNI integration. Note that this is incompatible with AKS clusters not created in BYOCNI mode: use Azure integration (`azure.enabled`) instead. |
|
||||||
| alibabacloud.enabled | bool | `false` | Enable AlibabaCloud ENI integration |
|
| alibabacloud.enabled | bool | `false` | Enable AlibabaCloud ENI integration |
|
||||||
| annotateK8sNode | bool | `false` | Annotate k8s node upon initialization with Cilium's metadata. |
|
| annotateK8sNode | bool | `false` | Annotate k8s node upon initialization with Cilium's metadata. |
|
||||||
| annotations | object | `{}` | Annotations to be added to all top-level cilium-agent objects (resources under templates/cilium-agent) |
|
|
||||||
| apiRateLimit | string | `nil` | The api-rate-limit option can be used to overwrite individual settings of the default configuration for rate limiting calls to the Cilium Agent API |
|
|
||||||
| authentication.enabled | bool | `true` | Enable authentication processing and garbage collection. Note that if disabled, policy enforcement will still block requests that require authentication. But the resulting authentication requests for these requests will not be processed, therefore the requests not be allowed. |
|
| authentication.enabled | bool | `true` | Enable authentication processing and garbage collection. Note that if disabled, policy enforcement will still block requests that require authentication. But the resulting authentication requests for these requests will not be processed, therefore the requests not be allowed. |
|
||||||
| authentication.gcInterval | string | `"5m0s"` | Interval for garbage collection of auth map entries. |
|
| authentication.gcInterval | string | `"5m0s"` | Interval for garbage collection of auth map entries. |
|
||||||
| authentication.mutual.connectTimeout | string | `"5s"` | Timeout for connecting to the remote node TCP socket |
|
|
||||||
| authentication.mutual.port | int | `4250` | Port on the agent where mutual authentication handshakes between agents will be performed |
|
| authentication.mutual.port | int | `4250` | Port on the agent where mutual authentication handshakes between agents will be performed |
|
||||||
| authentication.mutual.spire.adminSocketPath | string | `"/run/spire/sockets/admin.sock"` | SPIRE socket path where the SPIRE delegated api agent is listening |
|
| authentication.mutual.spire.adminSocketPath | string | `"/run/spire/sockets/admin.sock"` | SPIRE socket path where the SPIRE delegated api agent is listening |
|
||||||
| authentication.mutual.spire.agentSocketPath | string | `"/run/spire/sockets/agent/agent.sock"` | SPIRE socket path where the SPIRE workload agent is listening. Applies to both the Cilium Agent and Operator |
|
| authentication.mutual.spire.agentSocketPath | string | `"/run/spire/sockets/agent/agent.sock"` | SPIRE socket path where the SPIRE workload agent is listening. Applies to both the Cilium Agent and Operator |
|
||||||
| authentication.mutual.spire.annotations | object | `{}` | Annotations to be added to all top-level spire objects (resources under templates/spire) |
|
|
||||||
| authentication.mutual.spire.connectionTimeout | string | `"30s"` | SPIRE connection timeout |
|
| authentication.mutual.spire.connectionTimeout | string | `"30s"` | SPIRE connection timeout |
|
||||||
| authentication.mutual.spire.enabled | bool | `false` | Enable SPIRE integration (beta) |
|
| authentication.mutual.spire.enabled | bool | `false` | Enable SPIRE integration (beta) |
|
||||||
| authentication.mutual.spire.install.agent.affinity | object | `{}` | SPIRE agent affinity configuration |
|
| authentication.mutual.spire.install.agent.affinity | object | `{}` | SPIRE agent affinity configuration |
|
||||||
| authentication.mutual.spire.install.agent.annotations | object | `{}` | SPIRE agent annotations |
|
| authentication.mutual.spire.install.agent.annotations | object | `{}` | SPIRE agent annotations |
|
||||||
| authentication.mutual.spire.install.agent.image | object | `{"digest":"sha256:99405637647968245ff9fe215f8bd2bd0ea9807be9725f8bf19fe1b21471e52b","override":null,"pullPolicy":"IfNotPresent","repository":"ghcr.io/spiffe/spire-agent","tag":"1.8.5","useDigest":true}` | SPIRE agent image |
|
| authentication.mutual.spire.install.agent.image | string | `"ghcr.io/spiffe/spire-agent:1.6.3@sha256:8eef9857bf223181ecef10d9bbcd2f7838f3689e9bd2445bede35066a732e823"` | SPIRE agent image |
|
||||||
| authentication.mutual.spire.install.agent.labels | object | `{}` | SPIRE agent labels |
|
| authentication.mutual.spire.install.agent.labels | object | `{}` | SPIRE agent labels |
|
||||||
| authentication.mutual.spire.install.agent.nodeSelector | object | `{}` | SPIRE agent nodeSelector configuration ref: ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector |
|
| authentication.mutual.spire.install.agent.nodeSelector | object | `{}` | SPIRE agent nodeSelector configuration ref: ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector |
|
||||||
| authentication.mutual.spire.install.agent.podSecurityContext | object | `{}` | Security context to be added to spire agent pods. SecurityContext holds pod-level security attributes and common container settings. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod |
|
| authentication.mutual.spire.install.agent.podSecurityContext | object | `{}` | Security context to be added to spire agent pods. SecurityContext holds pod-level security attributes and common container settings. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod |
|
||||||
| authentication.mutual.spire.install.agent.securityContext | object | `{}` | Security context to be added to spire agent containers. SecurityContext holds pod-level security attributes and common container settings. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container |
|
| authentication.mutual.spire.install.agent.securityContext | object | `{}` | Security context to be added to spire agent containers. SecurityContext holds pod-level security attributes and common container settings. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container |
|
||||||
| authentication.mutual.spire.install.agent.serviceAccount | object | `{"create":true,"name":"spire-agent"}` | SPIRE agent service account |
|
| authentication.mutual.spire.install.agent.serviceAccount | object | `{"create":true,"name":"spire-agent"}` | SPIRE agent service account |
|
||||||
| authentication.mutual.spire.install.agent.skipKubeletVerification | bool | `true` | SPIRE Workload Attestor kubelet verification. |
|
| authentication.mutual.spire.install.agent.skipKubeletVerification | bool | `true` | SPIRE Workload Attestor kubelet verification. |
|
||||||
| authentication.mutual.spire.install.agent.tolerations | list | `[{"effect":"NoSchedule","key":"node.kubernetes.io/not-ready"},{"effect":"NoSchedule","key":"node-role.kubernetes.io/master"},{"effect":"NoSchedule","key":"node-role.kubernetes.io/control-plane"},{"effect":"NoSchedule","key":"node.cloudprovider.kubernetes.io/uninitialized","value":"true"},{"key":"CriticalAddonsOnly","operator":"Exists"}]` | SPIRE agent tolerations configuration By default it follows the same tolerations as the agent itself to allow the Cilium agent on this node to connect to SPIRE. ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
|
| authentication.mutual.spire.install.agent.tolerations | list | `[]` | SPIRE agent tolerations configuration ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
|
||||||
| authentication.mutual.spire.install.enabled | bool | `true` | Enable SPIRE installation. This will only take effect only if authentication.mutual.spire.enabled is true |
|
| authentication.mutual.spire.install.enabled | bool | `true` | Enable SPIRE installation. This will only take effect only if authentication.mutual.spire.enabled is true |
|
||||||
| authentication.mutual.spire.install.existingNamespace | bool | `false` | SPIRE namespace already exists. Set to true if Helm should not create, manage, and import the SPIRE namespace. |
|
|
||||||
| authentication.mutual.spire.install.initImage | object | `{"digest":"sha256:223ae047b1065bd069aac01ae3ac8088b3ca4a527827e283b85112f29385fb1b","override":null,"pullPolicy":"IfNotPresent","repository":"docker.io/library/busybox","tag":"1.36.1","useDigest":true}` | init container image of SPIRE agent and server |
|
|
||||||
| authentication.mutual.spire.install.namespace | string | `"cilium-spire"` | SPIRE namespace to install into |
|
| authentication.mutual.spire.install.namespace | string | `"cilium-spire"` | SPIRE namespace to install into |
|
||||||
| authentication.mutual.spire.install.server.affinity | object | `{}` | SPIRE server affinity configuration |
|
| authentication.mutual.spire.install.server.affinity | object | `{}` | SPIRE server affinity configuration |
|
||||||
| authentication.mutual.spire.install.server.annotations | object | `{}` | SPIRE server annotations |
|
| authentication.mutual.spire.install.server.annotations | object | `{}` | SPIRE server annotations |
|
||||||
@@ -93,12 +87,10 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| authentication.mutual.spire.install.server.dataStorage.enabled | bool | `true` | Enable SPIRE server data storage |
|
| authentication.mutual.spire.install.server.dataStorage.enabled | bool | `true` | Enable SPIRE server data storage |
|
||||||
| authentication.mutual.spire.install.server.dataStorage.size | string | `"1Gi"` | Size of the SPIRE server data storage |
|
| authentication.mutual.spire.install.server.dataStorage.size | string | `"1Gi"` | Size of the SPIRE server data storage |
|
||||||
| authentication.mutual.spire.install.server.dataStorage.storageClass | string | `nil` | StorageClass of the SPIRE server data storage |
|
| authentication.mutual.spire.install.server.dataStorage.storageClass | string | `nil` | StorageClass of the SPIRE server data storage |
|
||||||
| authentication.mutual.spire.install.server.image | object | `{"digest":"sha256:28269265882048dcf0fed32fe47663cd98613727210b8d1a55618826f9bf5428","override":null,"pullPolicy":"IfNotPresent","repository":"ghcr.io/spiffe/spire-server","tag":"1.8.5","useDigest":true}` | SPIRE server image |
|
| authentication.mutual.spire.install.server.image | string | `"ghcr.io/spiffe/spire-server:1.6.3@sha256:f4bc49fb0bd1d817a6c46204cc7ce943c73fb0a5496a78e0e4dc20c9a816ad7f"` | SPIRE server image |
|
||||||
| authentication.mutual.spire.install.server.initContainers | list | `[]` | SPIRE server init containers |
|
| authentication.mutual.spire.install.server.initContainers | list | `[]` | SPIRE server init containers |
|
||||||
| authentication.mutual.spire.install.server.labels | object | `{}` | SPIRE server labels |
|
| authentication.mutual.spire.install.server.labels | object | `{}` | SPIRE server labels |
|
||||||
| authentication.mutual.spire.install.server.nodeSelector | object | `{}` | SPIRE server nodeSelector configuration ref: ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector |
|
| authentication.mutual.spire.install.server.nodeSelector | object | `{}` | SPIRE server nodeSelector configuration ref: ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector |
|
||||||
| authentication.mutual.spire.install.server.podSecurityContext | object | `{}` | Security context to be added to spire server pods. SecurityContext holds pod-level security attributes and common container settings. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod |
|
|
||||||
| authentication.mutual.spire.install.server.securityContext | object | `{}` | Security context to be added to spire server containers. SecurityContext holds pod-level security attributes and common container settings. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container |
|
|
||||||
| authentication.mutual.spire.install.server.service.annotations | object | `{}` | Annotations to be added to the SPIRE server service |
|
| authentication.mutual.spire.install.server.service.annotations | object | `{}` | Annotations to be added to the SPIRE server service |
|
||||||
| authentication.mutual.spire.install.server.service.labels | object | `{}` | Labels to be added to the SPIRE server service |
|
| authentication.mutual.spire.install.server.service.labels | object | `{}` | Labels to be added to the SPIRE server service |
|
||||||
| authentication.mutual.spire.install.server.service.type | string | `"ClusterIP"` | Service type for the SPIRE server service |
|
| authentication.mutual.spire.install.server.service.type | string | `"ClusterIP"` | Service type for the SPIRE server service |
|
||||||
@@ -117,11 +109,8 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| bgp.announce.loadbalancerIP | bool | `false` | Enable allocation and announcement of service LoadBalancer IPs |
|
| bgp.announce.loadbalancerIP | bool | `false` | Enable allocation and announcement of service LoadBalancer IPs |
|
||||||
| bgp.announce.podCIDR | bool | `false` | Enable announcement of node pod CIDR |
|
| bgp.announce.podCIDR | bool | `false` | Enable announcement of node pod CIDR |
|
||||||
| bgp.enabled | bool | `false` | Enable BGP support inside Cilium; embeds a new ConfigMap for BGP inside cilium-agent and cilium-operator |
|
| bgp.enabled | bool | `false` | Enable BGP support inside Cilium; embeds a new ConfigMap for BGP inside cilium-agent and cilium-operator |
|
||||||
| bgpControlPlane | object | `{"enabled":false,"secretsNamespace":{"create":false,"name":"kube-system"}}` | This feature set enables virtual BGP routers to be created via CiliumBGPPeeringPolicy CRDs. |
|
| bgpControlPlane | object | `{"enabled":false}` | This feature set enables virtual BGP routers to be created via CiliumBGPPeeringPolicy CRDs. |
|
||||||
| bgpControlPlane.enabled | bool | `false` | Enables the BGP control plane. |
|
| bgpControlPlane.enabled | bool | `false` | Enables the BGP control plane. |
|
||||||
| bgpControlPlane.secretsNamespace | object | `{"create":false,"name":"kube-system"}` | SecretsNamespace is the namespace which BGP support will retrieve secrets from. |
|
|
||||||
| bgpControlPlane.secretsNamespace.create | bool | `false` | Create secrets namespace for BGP secrets. |
|
|
||||||
| bgpControlPlane.secretsNamespace.name | string | `"kube-system"` | The name of the secret namespace to which Cilium agents are given read access |
|
|
||||||
| bpf.authMapMax | int | `524288` | Configure the maximum number of entries in auth map. |
|
| bpf.authMapMax | int | `524288` | Configure the maximum number of entries in auth map. |
|
||||||
| bpf.autoMount.enabled | bool | `true` | Enable automatic mount of BPF filesystem When `autoMount` is enabled, the BPF filesystem is mounted at `bpf.root` path on the underlying host and inside the cilium agent pod. If users disable `autoMount`, it's expected that users have mounted bpffs filesystem at the specified `bpf.root` volume, and then the volume will be mounted inside the cilium agent pod at the same path. |
|
| bpf.autoMount.enabled | bool | `true` | Enable automatic mount of BPF filesystem When `autoMount` is enabled, the BPF filesystem is mounted at `bpf.root` path on the underlying host and inside the cilium agent pod. If users disable `autoMount`, it's expected that users have mounted bpffs filesystem at the specified `bpf.root` volume, and then the volume will be mounted inside the cilium agent pod at the same path. |
|
||||||
| bpf.ctAnyMax | int | `262144` | Configure the maximum number of entries for the non-TCP connection tracking table. |
|
| bpf.ctAnyMax | int | `262144` | Configure the maximum number of entries for the non-TCP connection tracking table. |
|
||||||
@@ -142,8 +131,7 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| bpf.tproxy | bool | `false` | Configure the eBPF-based TPROXY to reduce reliance on iptables rules for implementing Layer 7 policy. |
|
| bpf.tproxy | bool | `false` | Configure the eBPF-based TPROXY to reduce reliance on iptables rules for implementing Layer 7 policy. |
|
||||||
| bpf.vlanBypass | list | `[]` | Configure explicitly allowed VLAN id's for bpf logic bypass. [0] will allow all VLAN id's without any filtering. |
|
| bpf.vlanBypass | list | `[]` | Configure explicitly allowed VLAN id's for bpf logic bypass. [0] will allow all VLAN id's without any filtering. |
|
||||||
| bpfClockProbe | bool | `false` | Enable BPF clock source probing for more efficient tick retrieval. |
|
| bpfClockProbe | bool | `false` | Enable BPF clock source probing for more efficient tick retrieval. |
|
||||||
| certgen | object | `{"affinity":{},"annotations":{"cronJob":{},"job":{}},"extraVolumeMounts":[],"extraVolumes":[],"image":{"digest":"sha256:89a0847753686444daabde9474b48340993bd19c7bea66a46e45b2974b82041f","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/certgen","tag":"v0.1.9","useDigest":true},"podLabels":{},"tolerations":[],"ttlSecondsAfterFinished":1800}` | Configure certificate generation for Hubble integration. If hubble.tls.auto.method=cronJob, these values are used for the Kubernetes CronJob which will be scheduled regularly to (re)generate any certificates not provided manually. |
|
| certgen | object | `{"annotations":{"cronJob":{},"job":{}},"extraVolumeMounts":[],"extraVolumes":[],"image":{"digest":"sha256:89a0847753686444daabde9474b48340993bd19c7bea66a46e45b2974b82041f","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/certgen","tag":"v0.1.9","useDigest":true},"podLabels":{},"tolerations":[],"ttlSecondsAfterFinished":1800}` | Configure certificate generation for Hubble integration. If hubble.tls.auto.method=cronJob, these values are used for the Kubernetes CronJob which will be scheduled regularly to (re)generate any certificates not provided manually. |
|
||||||
| certgen.affinity | object | `{}` | Affinity for certgen |
|
|
||||||
| certgen.annotations | object | `{"cronJob":{},"job":{}}` | Annotations to be added to the hubble-certgen initial Job and CronJob |
|
| certgen.annotations | object | `{"cronJob":{},"job":{}}` | Annotations to be added to the hubble-certgen initial Job and CronJob |
|
||||||
| certgen.extraVolumeMounts | list | `[]` | Additional certgen volumeMounts. |
|
| certgen.extraVolumeMounts | list | `[]` | Additional certgen volumeMounts. |
|
||||||
| certgen.extraVolumes | list | `[]` | Additional certgen volumes. |
|
| certgen.extraVolumes | list | `[]` | Additional certgen volumes. |
|
||||||
@@ -158,29 +146,25 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| cleanState | bool | `false` | Clean all local Cilium state from the initContainer of the cilium-agent DaemonSet. Implies cleanBpfState: true. WARNING: Use with care! |
|
| cleanState | bool | `false` | Clean all local Cilium state from the initContainer of the cilium-agent DaemonSet. Implies cleanBpfState: true. WARNING: Use with care! |
|
||||||
| cluster.id | int | `0` | Unique ID of the cluster. Must be unique across all connected clusters and in the range of 1 to 255. Only required for Cluster Mesh, may be 0 if Cluster Mesh is not used. |
|
| cluster.id | int | `0` | Unique ID of the cluster. Must be unique across all connected clusters and in the range of 1 to 255. Only required for Cluster Mesh, may be 0 if Cluster Mesh is not used. |
|
||||||
| cluster.name | string | `"default"` | Name of the cluster. Only required for Cluster Mesh and mutual authentication with SPIRE. |
|
| cluster.name | string | `"default"` | Name of the cluster. Only required for Cluster Mesh and mutual authentication with SPIRE. |
|
||||||
| clustermesh.annotations | object | `{}` | Annotations to be added to all top-level clustermesh objects (resources under templates/clustermesh-apiserver and templates/clustermesh-config) |
|
|
||||||
| clustermesh.apiserver.affinity | object | `{"podAntiAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchLabels":{"k8s-app":"clustermesh-apiserver"}},"topologyKey":"kubernetes.io/hostname"}]}}` | Affinity for clustermesh.apiserver |
|
| clustermesh.apiserver.affinity | object | `{"podAntiAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchLabels":{"k8s-app":"clustermesh-apiserver"}},"topologyKey":"kubernetes.io/hostname"}]}}` | Affinity for clustermesh.apiserver |
|
||||||
| clustermesh.apiserver.etcd.init.extraArgs | list | `[]` | Additional arguments to `clustermesh-apiserver etcdinit`. |
|
| clustermesh.apiserver.etcd.image | object | `{"digest":"sha256:795d8660c48c439a7c3764c2330ed9222ab5db5bb524d8d0607cac76f7ba82a3","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/coreos/etcd","tag":"v3.5.4","useDigest":true}` | Clustermesh API server etcd image. |
|
||||||
| clustermesh.apiserver.etcd.init.extraEnv | list | `[]` | Additional environment variables to `clustermesh-apiserver etcdinit`. |
|
|
||||||
| clustermesh.apiserver.etcd.init.resources | object | `{}` | Specifies the resources for etcd init container in the apiserver |
|
| clustermesh.apiserver.etcd.init.resources | object | `{}` | Specifies the resources for etcd init container in the apiserver |
|
||||||
| clustermesh.apiserver.etcd.lifecycle | object | `{}` | lifecycle setting for the etcd container |
|
|
||||||
| clustermesh.apiserver.etcd.resources | object | `{}` | Specifies the resources for etcd container in the apiserver |
|
| clustermesh.apiserver.etcd.resources | object | `{}` | Specifies the resources for etcd container in the apiserver |
|
||||||
| clustermesh.apiserver.etcd.securityContext | object | `{}` | Security context to be added to clustermesh-apiserver etcd containers |
|
| clustermesh.apiserver.etcd.securityContext | object | `{}` | Security context to be added to clustermesh-apiserver etcd containers |
|
||||||
| clustermesh.apiserver.extraArgs | list | `[]` | Additional clustermesh-apiserver arguments. |
|
| clustermesh.apiserver.extraArgs | list | `[]` | Additional clustermesh-apiserver arguments. |
|
||||||
| clustermesh.apiserver.extraEnv | list | `[]` | Additional clustermesh-apiserver environment variables. |
|
| clustermesh.apiserver.extraEnv | list | `[]` | Additional clustermesh-apiserver environment variables. |
|
||||||
| clustermesh.apiserver.extraVolumeMounts | list | `[]` | Additional clustermesh-apiserver volumeMounts. |
|
| clustermesh.apiserver.extraVolumeMounts | list | `[]` | Additional clustermesh-apiserver volumeMounts. |
|
||||||
| clustermesh.apiserver.extraVolumes | list | `[]` | Additional clustermesh-apiserver volumes. |
|
| clustermesh.apiserver.extraVolumes | list | `[]` | Additional clustermesh-apiserver volumes. |
|
||||||
| clustermesh.apiserver.image | object | `{"digest":"sha256:478c77371f34d6fe5251427ff90c3912567c69b2bdc87d72377e42a42054f1c2","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/clustermesh-apiserver","tag":"v1.15.2","useDigest":true}` | Clustermesh API server image. |
|
| clustermesh.apiserver.image | object | `{"digest":"sha256:7eaa35cf5452c43b1f7d0cde0d707823ae7e49965bcb54c053e31ea4e04c3d96","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/clustermesh-apiserver","tag":"v1.14.5","useDigest":true}` | Clustermesh API server image. |
|
||||||
| clustermesh.apiserver.kvstoremesh.enabled | bool | `false` | Enable KVStoreMesh. KVStoreMesh caches the information retrieved from the remote clusters in the local etcd instance. |
|
| clustermesh.apiserver.kvstoremesh.enabled | bool | `false` | Enable KVStoreMesh. KVStoreMesh caches the information retrieved from the remote clusters in the local etcd instance. |
|
||||||
| clustermesh.apiserver.kvstoremesh.extraArgs | list | `[]` | Additional KVStoreMesh arguments. |
|
| clustermesh.apiserver.kvstoremesh.extraArgs | list | `[]` | Additional KVStoreMesh arguments. |
|
||||||
| clustermesh.apiserver.kvstoremesh.extraEnv | list | `[]` | Additional KVStoreMesh environment variables. |
|
| clustermesh.apiserver.kvstoremesh.extraEnv | list | `[]` | Additional KVStoreMesh environment variables. |
|
||||||
| clustermesh.apiserver.kvstoremesh.extraVolumeMounts | list | `[]` | Additional KVStoreMesh volumeMounts. |
|
| clustermesh.apiserver.kvstoremesh.extraVolumeMounts | list | `[]` | Additional KVStoreMesh volumeMounts. |
|
||||||
| clustermesh.apiserver.kvstoremesh.lifecycle | object | `{}` | lifecycle setting for the KVStoreMesh container |
|
| clustermesh.apiserver.kvstoremesh.image | object | `{"digest":"sha256:d7137edd0efa2b1407b20088af3980a9993bb616d85bf9b55ea2891d1b99023a","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/kvstoremesh","tag":"v1.14.5","useDigest":true}` | KVStoreMesh image. |
|
||||||
| clustermesh.apiserver.kvstoremesh.resources | object | `{}` | Resource requests and limits for the KVStoreMesh container |
|
| clustermesh.apiserver.kvstoremesh.resources | object | `{}` | Resource requests and limits for the KVStoreMesh container |
|
||||||
| clustermesh.apiserver.kvstoremesh.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]}}` | KVStoreMesh Security context |
|
| clustermesh.apiserver.kvstoremesh.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]}}` | KVStoreMesh Security context |
|
||||||
| clustermesh.apiserver.lifecycle | object | `{}` | lifecycle setting for the apiserver container |
|
|
||||||
| clustermesh.apiserver.metrics.enabled | bool | `true` | Enables exporting apiserver metrics in OpenMetrics format. |
|
| clustermesh.apiserver.metrics.enabled | bool | `true` | Enables exporting apiserver metrics in OpenMetrics format. |
|
||||||
| clustermesh.apiserver.metrics.etcd.enabled | bool | `true` | Enables exporting etcd metrics in OpenMetrics format. |
|
| clustermesh.apiserver.metrics.etcd.enabled | bool | `false` | Enables exporting etcd metrics in OpenMetrics format. |
|
||||||
| clustermesh.apiserver.metrics.etcd.mode | string | `"basic"` | Set level of detail for etcd metrics; specify 'extensive' to include server side gRPC histogram metrics. |
|
| clustermesh.apiserver.metrics.etcd.mode | string | `"basic"` | Set level of detail for etcd metrics; specify 'extensive' to include server side gRPC histogram metrics. |
|
||||||
| clustermesh.apiserver.metrics.etcd.port | int | `9963` | Configure the port the etcd metric server listens on. |
|
| clustermesh.apiserver.metrics.etcd.port | int | `9963` | Configure the port the etcd metric server listens on. |
|
||||||
| clustermesh.apiserver.metrics.kvstoremesh.enabled | bool | `true` | Enables exporting KVStoreMesh metrics in OpenMetrics format. |
|
| clustermesh.apiserver.metrics.kvstoremesh.enabled | bool | `true` | Enables exporting KVStoreMesh metrics in OpenMetrics format. |
|
||||||
@@ -214,13 +198,15 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| clustermesh.apiserver.service.internalTrafficPolicy | string | `nil` | The internalTrafficPolicy of service used for apiserver access. |
|
| clustermesh.apiserver.service.internalTrafficPolicy | string | `nil` | The internalTrafficPolicy of service used for apiserver access. |
|
||||||
| clustermesh.apiserver.service.nodePort | int | `32379` | Optional port to use as the node port for apiserver access. WARNING: make sure to configure a different NodePort in each cluster if kube-proxy replacement is enabled, as Cilium is currently affected by a known bug (#24692) when NodePorts are handled by the KPR implementation. If a service with the same NodePort exists both in the local and the remote cluster, all traffic originating from inside the cluster and targeting the corresponding NodePort will be redirected to a local backend, regardless of whether the destination node belongs to the local or the remote cluster. |
|
| clustermesh.apiserver.service.nodePort | int | `32379` | Optional port to use as the node port for apiserver access. WARNING: make sure to configure a different NodePort in each cluster if kube-proxy replacement is enabled, as Cilium is currently affected by a known bug (#24692) when NodePorts are handled by the KPR implementation. If a service with the same NodePort exists both in the local and the remote cluster, all traffic originating from inside the cluster and targeting the corresponding NodePort will be redirected to a local backend, regardless of whether the destination node belongs to the local or the remote cluster. |
|
||||||
| clustermesh.apiserver.service.type | string | `"NodePort"` | The type of service used for apiserver access. |
|
| clustermesh.apiserver.service.type | string | `"NodePort"` | The type of service used for apiserver access. |
|
||||||
| clustermesh.apiserver.terminationGracePeriodSeconds | int | `30` | terminationGracePeriodSeconds for the clustermesh-apiserver deployment |
|
|
||||||
| clustermesh.apiserver.tls.admin | object | `{"cert":"","key":""}` | base64 encoded PEM values for the clustermesh-apiserver admin certificate and private key. Used if 'auto' is not enabled. |
|
| clustermesh.apiserver.tls.admin | object | `{"cert":"","key":""}` | base64 encoded PEM values for the clustermesh-apiserver admin certificate and private key. Used if 'auto' is not enabled. |
|
||||||
| clustermesh.apiserver.tls.authMode | string | `"legacy"` | Configure the clustermesh authentication mode. Supported values: - legacy: All clusters access remote clustermesh instances with the same username (i.e., remote). The "remote" certificate must be generated with CN=remote if provided manually. - migration: Intermediate mode required to upgrade from legacy to cluster (and vice versa) with no disruption. Specifically, it enables the creation of the per-cluster usernames, while still using the common one for authentication. The "remote" certificate must be generated with CN=remote if provided manually (same as legacy). - cluster: Each cluster accesses remote etcd instances with a username depending on the local cluster name (i.e., remote-<cluster-name>). The "remote" certificate must be generated with CN=remote-<cluster-name> if provided manually. Cluster mode is meaningful only when the same CA is shared across all clusters part of the mesh. |
|
| clustermesh.apiserver.tls.authMode | string | `"legacy"` | Configure the clustermesh authentication mode. Supported values: - legacy: All clusters access remote clustermesh instances with the same username (i.e., remote). The "remote" certificate must be generated with CN=remote if provided manually. - migration: Intermediate mode required to upgrade from legacy to cluster (and vice versa) with no disruption. Specifically, it enables the creation of the per-cluster usernames, while still using the common one for authentication. The "remote" certificate must be generated with CN=remote if provided manually (same as legacy). - cluster: Each cluster accesses remote etcd instances with a username depending on the local cluster name (i.e., remote-<cluster-name>). The "remote" certificate must be generated with CN=remote-<cluster-name> if provided manually. Cluster mode is meaningful only when the same CA is shared across all clusters part of the mesh. |
|
||||||
| clustermesh.apiserver.tls.auto | object | `{"certManagerIssuerRef":{},"certValidityDuration":1095,"enabled":true,"method":"helm"}` | Configure automatic TLS certificates generation. A Kubernetes CronJob is used the generate any certificates not provided by the user at installation time. |
|
| clustermesh.apiserver.tls.auto | object | `{"certManagerIssuerRef":{},"certValidityDuration":1095,"enabled":true,"method":"helm"}` | Configure automatic TLS certificates generation. A Kubernetes CronJob is used the generate any certificates not provided by the user at installation time. |
|
||||||
| clustermesh.apiserver.tls.auto.certManagerIssuerRef | object | `{}` | certmanager issuer used when clustermesh.apiserver.tls.auto.method=certmanager. |
|
| clustermesh.apiserver.tls.auto.certManagerIssuerRef | object | `{}` | certmanager issuer used when clustermesh.apiserver.tls.auto.method=certmanager. |
|
||||||
| clustermesh.apiserver.tls.auto.certValidityDuration | int | `1095` | Generated certificates validity duration in days. |
|
| clustermesh.apiserver.tls.auto.certValidityDuration | int | `1095` | Generated certificates validity duration in days. |
|
||||||
| clustermesh.apiserver.tls.auto.enabled | bool | `true` | When set to true, automatically generate a CA and certificates to enable mTLS between clustermesh-apiserver and external workload instances. If set to false, the certs to be provided by setting appropriate values below. |
|
| clustermesh.apiserver.tls.auto.enabled | bool | `true` | When set to true, automatically generate a CA and certificates to enable mTLS between clustermesh-apiserver and external workload instances. If set to false, the certs to be provided by setting appropriate values below. |
|
||||||
|
| clustermesh.apiserver.tls.ca | object | `{"cert":"","key":""}` | Deprecated in favor of tls.ca. To be removed in 1.15. base64 encoded PEM values for the ExternalWorkload CA certificate and private key. |
|
||||||
|
| clustermesh.apiserver.tls.ca.cert | string | `""` | Deprecated in favor of tls.ca.cert. To be removed in 1.15. Optional CA cert. If it is provided, it will be used by the 'cronJob' method to generate all other certificates. Otherwise, an ephemeral CA is generated. |
|
||||||
|
| clustermesh.apiserver.tls.ca.key | string | `""` | Deprecated in favor of tls.ca.key. To be removed in 1.15. Optional CA private key. If it is provided, it will be used by the 'cronJob' method to generate all other certificates. Otherwise, an ephemeral CA is generated. |
|
||||||
| clustermesh.apiserver.tls.client | object | `{"cert":"","key":""}` | base64 encoded PEM values for the clustermesh-apiserver client certificate and private key. Used if 'auto' is not enabled. |
|
| clustermesh.apiserver.tls.client | object | `{"cert":"","key":""}` | base64 encoded PEM values for the clustermesh-apiserver client certificate and private key. Used if 'auto' is not enabled. |
|
||||||
| clustermesh.apiserver.tls.remote | object | `{"cert":"","key":""}` | base64 encoded PEM values for the clustermesh-apiserver remote cluster certificate and private key. Used if 'auto' is not enabled. |
|
| clustermesh.apiserver.tls.remote | object | `{"cert":"","key":""}` | base64 encoded PEM values for the clustermesh-apiserver remote cluster certificate and private key. Used if 'auto' is not enabled. |
|
||||||
| clustermesh.apiserver.tls.server | object | `{"cert":"","extraDnsNames":[],"extraIpAddresses":[],"key":""}` | base64 encoded PEM values for the clustermesh-apiserver server certificate and private key. Used if 'auto' is not enabled. |
|
| clustermesh.apiserver.tls.server | object | `{"cert":"","extraDnsNames":[],"extraIpAddresses":[],"key":""}` | base64 encoded PEM values for the clustermesh-apiserver server certificate and private key. Used if 'auto' is not enabled. |
|
||||||
@@ -233,7 +219,6 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| clustermesh.config.clusters | list | `[]` | List of clusters to be peered in the mesh. |
|
| clustermesh.config.clusters | list | `[]` | List of clusters to be peered in the mesh. |
|
||||||
| clustermesh.config.domain | string | `"mesh.cilium.io"` | Default dns domain for the Clustermesh API servers This is used in the case cluster addresses are not provided and IPs are used. |
|
| clustermesh.config.domain | string | `"mesh.cilium.io"` | Default dns domain for the Clustermesh API servers This is used in the case cluster addresses are not provided and IPs are used. |
|
||||||
| clustermesh.config.enabled | bool | `false` | Enable the Clustermesh explicit configuration. |
|
| clustermesh.config.enabled | bool | `false` | Enable the Clustermesh explicit configuration. |
|
||||||
| clustermesh.maxConnectedClusters | int | `255` | The maximum number of clusters to support in a ClusterMesh. This value cannot be changed on running clusters, and all clusters in a ClusterMesh must be configured with the same value. Values > 255 will decrease the maximum allocatable cluster-local identities. Supported values are 255 and 511. |
|
|
||||||
| clustermesh.useAPIServer | bool | `false` | Deploy clustermesh-apiserver for clustermesh |
|
| clustermesh.useAPIServer | bool | `false` | Deploy clustermesh-apiserver for clustermesh |
|
||||||
| cni.binPath | string | `"/opt/cni/bin"` | Configure the path to the CNI binary directory on the host. |
|
| cni.binPath | string | `"/opt/cni/bin"` | Configure the path to the CNI binary directory on the host. |
|
||||||
| cni.chainingMode | string | `nil` | Configure chaining on top of other CNI plugins. Possible values: - none - aws-cni - flannel - generic-veth - portmap |
|
| cni.chainingMode | string | `nil` | Configure chaining on top of other CNI plugins. Possible values: - none - aws-cni - flannel - generic-veth - portmap |
|
||||||
@@ -246,7 +231,6 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| cni.hostConfDirMountPath | string | `"/host/etc/cni/net.d"` | Configure the path to where the CNI configuration directory is mounted inside the agent pod. |
|
| cni.hostConfDirMountPath | string | `"/host/etc/cni/net.d"` | Configure the path to where the CNI configuration directory is mounted inside the agent pod. |
|
||||||
| cni.install | bool | `true` | Install the CNI configuration and binary files into the filesystem. |
|
| cni.install | bool | `true` | Install the CNI configuration and binary files into the filesystem. |
|
||||||
| cni.logFile | string | `"/var/run/cilium/cilium-cni.log"` | Configure the log file for CNI logging with retention policy of 7 days. Disable CNI file logging by setting this field to empty explicitly. |
|
| cni.logFile | string | `"/var/run/cilium/cilium-cni.log"` | Configure the log file for CNI logging with retention policy of 7 days. Disable CNI file logging by setting this field to empty explicitly. |
|
||||||
| cni.resources | object | `{"requests":{"cpu":"100m","memory":"10Mi"}}` | Specifies the resources for the cni initContainer |
|
|
||||||
| cni.uninstall | bool | `false` | Remove the CNI configuration and binary files on agent shutdown. Enable this if you're removing Cilium from the cluster. Disable this to prevent the CNI configuration file from being removed during agent upgrade, which can cause nodes to go unmanageable. |
|
| cni.uninstall | bool | `false` | Remove the CNI configuration and binary files on agent shutdown. Enable this if you're removing Cilium from the cluster. Disable this to prevent the CNI configuration file from being removed during agent upgrade, which can cause nodes to go unmanageable. |
|
||||||
| conntrackGCInterval | string | `"0s"` | Configure how frequently garbage collection should occur for the datapath connection tracking table. |
|
| conntrackGCInterval | string | `"0s"` | Configure how frequently garbage collection should occur for the datapath connection tracking table. |
|
||||||
| conntrackGCMaxInterval | string | `""` | Configure the maximum frequency for the garbage collection of the connection tracking table. Only affects the automatic computation for the frequency and has no effect when 'conntrackGCInterval' is set. This can be set to more frequently clean up unused identities created from ToFQDN policies. |
|
| conntrackGCMaxInterval | string | `""` | Configure the maximum frequency for the garbage collection of the connection tracking table. Only affects the automatic computation for the frequency and has no effect when 'conntrackGCInterval' is set. This can be set to more frequently clean up unused identities created from ToFQDN policies. |
|
||||||
@@ -261,7 +245,7 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| daemon.runPath | string | `"/var/run/cilium"` | Configure where Cilium runtime state should be stored. |
|
| daemon.runPath | string | `"/var/run/cilium"` | Configure where Cilium runtime state should be stored. |
|
||||||
| dashboards | object | `{"annotations":{},"enabled":false,"label":"grafana_dashboard","labelValue":"1","namespace":null}` | Grafana dashboards for cilium-agent grafana can import dashboards based on the label and value ref: https://github.com/grafana/helm-charts/tree/main/charts/grafana#sidecar-for-dashboards |
|
| dashboards | object | `{"annotations":{},"enabled":false,"label":"grafana_dashboard","labelValue":"1","namespace":null}` | Grafana dashboards for cilium-agent grafana can import dashboards based on the label and value ref: https://github.com/grafana/helm-charts/tree/main/charts/grafana#sidecar-for-dashboards |
|
||||||
| debug.enabled | bool | `false` | Enable debug logging |
|
| debug.enabled | bool | `false` | Enable debug logging |
|
||||||
| debug.verbose | string | `nil` | Configure verbosity levels for debug logging This option is used to enable debug messages for operations related to such sub-system such as (e.g. kvstore, envoy, datapath or policy), and flow is for enabling debug messages emitted per request, message and connection. Multiple values can be set via a space-separated string (e.g. "datapath envoy"). Applicable values: - flow - kvstore - envoy - datapath - policy |
|
| debug.verbose | string | `nil` | Configure verbosity levels for debug logging This option is used to enable debug messages for operations related to such sub-system such as (e.g. kvstore, envoy, datapath or policy), and flow is for enabling debug messages emitted per request, message and connection. Applicable values: - flow - kvstore - envoy - datapath - policy |
|
||||||
| disableEndpointCRD | bool | `false` | Disable the usage of CiliumEndpoint CRD. |
|
| disableEndpointCRD | bool | `false` | Disable the usage of CiliumEndpoint CRD. |
|
||||||
| dnsPolicy | string | `""` | DNS policy for Cilium agent pods. Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy |
|
| dnsPolicy | string | `""` | DNS policy for Cilium agent pods. Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy |
|
||||||
| dnsProxy.dnsRejectResponseCode | string | `"refused"` | DNS response code for rejecting DNS requests, available options are '[nameError refused]'. |
|
| dnsProxy.dnsRejectResponseCode | string | `"refused"` | DNS response code for rejecting DNS requests, available options are '[nameError refused]'. |
|
||||||
@@ -273,17 +257,18 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| dnsProxy.preCache | string | `""` | DNS cache data at this path is preloaded on agent startup. |
|
| dnsProxy.preCache | string | `""` | DNS cache data at this path is preloaded on agent startup. |
|
||||||
| dnsProxy.proxyPort | int | `0` | Global port on which the in-agent DNS proxy should listen. Default 0 is a OS-assigned port. |
|
| dnsProxy.proxyPort | int | `0` | Global port on which the in-agent DNS proxy should listen. Default 0 is a OS-assigned port. |
|
||||||
| dnsProxy.proxyResponseMaxDelay | string | `"100ms"` | The maximum time the DNS proxy holds an allowed DNS response before sending it along. Responses are sent as soon as the datapath is updated with the new IP information. |
|
| dnsProxy.proxyResponseMaxDelay | string | `"100ms"` | The maximum time the DNS proxy holds an allowed DNS response before sending it along. Responses are sent as soon as the datapath is updated with the new IP information. |
|
||||||
| egressGateway.enabled | bool | `false` | Enables egress gateway to redirect and SNAT the traffic that leaves the cluster. |
|
| egressGateway | object | `{"enabled":false,"installRoutes":false,"reconciliationTriggerInterval":"1s"}` | Enables egress gateway to redirect and SNAT the traffic that leaves the cluster. |
|
||||||
| egressGateway.installRoutes | bool | `false` | Deprecated without a replacement necessary. |
|
| egressGateway.installRoutes | bool | `false` | Install egress gateway IP rules and routes in order to properly steer egress gateway traffic to the correct ENI interface |
|
||||||
| egressGateway.reconciliationTriggerInterval | string | `"1s"` | Time between triggers of egress gateway state reconciliations |
|
| egressGateway.reconciliationTriggerInterval | string | `"1s"` | Time between triggers of egress gateway state reconciliations |
|
||||||
| enableCiliumEndpointSlice | bool | `false` | Enable CiliumEndpointSlice feature. |
|
| enableCiliumEndpointSlice | bool | `false` | Enable CiliumEndpointSlice feature. |
|
||||||
|
| enableCnpStatusUpdates | bool | `false` | Whether to enable CNP status updates. |
|
||||||
| enableCriticalPriorityClass | bool | `true` | Explicitly enable or disable priority class. .Capabilities.KubeVersion is unsettable in `helm template` calls, it depends on k8s libraries version that Helm was compiled against. This option allows to explicitly disable setting the priority class, which is useful for rendering charts for gke clusters in advance. |
|
| enableCriticalPriorityClass | bool | `true` | Explicitly enable or disable priority class. .Capabilities.KubeVersion is unsettable in `helm template` calls, it depends on k8s libraries version that Helm was compiled against. This option allows to explicitly disable setting the priority class, which is useful for rendering charts for gke clusters in advance. |
|
||||||
| enableIPv4BIGTCP | bool | `false` | Enables IPv4 BIG TCP support which increases maximum IPv4 GSO/GRO limits for nodes and pods |
|
| enableIPv4BIGTCP | bool | `false` | Enables IPv4 BIG TCP support which increases maximum IPv4 GSO/GRO limits for nodes and pods |
|
||||||
| enableIPv4Masquerade | bool | `true` | Enables masquerading of IPv4 traffic leaving the node from endpoints. |
|
| enableIPv4Masquerade | bool | `true` | Enables masquerading of IPv4 traffic leaving the node from endpoints. |
|
||||||
| enableIPv6BIGTCP | bool | `false` | Enables IPv6 BIG TCP support which increases maximum IPv6 GSO/GRO limits for nodes and pods |
|
| enableIPv6BIGTCP | bool | `false` | Enables IPv6 BIG TCP support which increases maximum IPv6 GSO/GRO limits for nodes and pods |
|
||||||
| enableIPv6Masquerade | bool | `true` | Enables masquerading of IPv6 traffic leaving the node from endpoints. |
|
| enableIPv6Masquerade | bool | `true` | Enables masquerading of IPv6 traffic leaving the node from endpoints. |
|
||||||
|
| enableK8sEventHandover | bool | `false` | Configures the use of the KVStore to optimize Kubernetes event handling by mirroring it into the KVstore for reduced overhead in large clusters. |
|
||||||
| enableK8sTerminatingEndpoint | bool | `true` | Configure whether to enable auto detect of terminating state for endpoints in order to support graceful termination. |
|
| enableK8sTerminatingEndpoint | bool | `true` | Configure whether to enable auto detect of terminating state for endpoints in order to support graceful termination. |
|
||||||
| enableMasqueradeRouteSource | bool | `false` | Enables masquerading to the source of the route for traffic leaving the node from endpoints. |
|
|
||||||
| enableRuntimeDeviceDetection | bool | `false` | Enables experimental support for the detection of new and removed datapath devices. When devices change the eBPF datapath is reloaded and services updated. If "devices" is set then only those devices, or devices matching a wildcard will be considered. |
|
| enableRuntimeDeviceDetection | bool | `false` | Enables experimental support for the detection of new and removed datapath devices. When devices change the eBPF datapath is reloaded and services updated. If "devices" is set then only those devices, or devices matching a wildcard will be considered. |
|
||||||
| enableXTSocketFallback | bool | `true` | Enables the fallback compatibility solution for when the xt_socket kernel module is missing and it is needed for the datapath L7 redirection to work properly. See documentation for details on when this can be disabled: https://docs.cilium.io/en/stable/operations/system_requirements/#linux-kernel. |
|
| enableXTSocketFallback | bool | `true` | Enables the fallback compatibility solution for when the xt_socket kernel module is missing and it is needed for the datapath L7 redirection to work properly. See documentation for details on when this can be disabled: https://docs.cilium.io/en/stable/operations/system_requirements/#linux-kernel. |
|
||||||
| encryption.enabled | bool | `false` | Enable transparent network encryption. |
|
| encryption.enabled | bool | `false` | Enable transparent network encryption. |
|
||||||
@@ -298,12 +283,7 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| encryption.mountPath | string | `"/etc/ipsec"` | Deprecated in favor of encryption.ipsec.mountPath. To be removed in 1.15. Path to mount the secret inside the Cilium pod. This option is only effective when encryption.type is set to ipsec. |
|
| encryption.mountPath | string | `"/etc/ipsec"` | Deprecated in favor of encryption.ipsec.mountPath. To be removed in 1.15. Path to mount the secret inside the Cilium pod. This option is only effective when encryption.type is set to ipsec. |
|
||||||
| encryption.nodeEncryption | bool | `false` | Enable encryption for pure node to node traffic. This option is only effective when encryption.type is set to "wireguard". |
|
| encryption.nodeEncryption | bool | `false` | Enable encryption for pure node to node traffic. This option is only effective when encryption.type is set to "wireguard". |
|
||||||
| encryption.secretName | string | `"cilium-ipsec-keys"` | Deprecated in favor of encryption.ipsec.secretName. To be removed in 1.15. Name of the Kubernetes secret containing the encryption keys. This option is only effective when encryption.type is set to ipsec. |
|
| encryption.secretName | string | `"cilium-ipsec-keys"` | Deprecated in favor of encryption.ipsec.secretName. To be removed in 1.15. Name of the Kubernetes secret containing the encryption keys. This option is only effective when encryption.type is set to ipsec. |
|
||||||
| encryption.strictMode | object | `{"allowRemoteNodeIdentities":false,"cidr":"","enabled":false}` | Configure the WireGuard Pod2Pod strict mode. |
|
|
||||||
| encryption.strictMode.allowRemoteNodeIdentities | bool | `false` | Allow dynamic lookup of remote node identities. This is required when tunneling is used or direct routing is used and the node CIDR and pod CIDR overlap. |
|
|
||||||
| encryption.strictMode.cidr | string | `""` | CIDR for the WireGuard Pod2Pod strict mode. |
|
|
||||||
| encryption.strictMode.enabled | bool | `false` | Enable WireGuard Pod2Pod strict mode. |
|
|
||||||
| encryption.type | string | `"ipsec"` | Encryption method. Can be either ipsec or wireguard. |
|
| encryption.type | string | `"ipsec"` | Encryption method. Can be either ipsec or wireguard. |
|
||||||
| encryption.wireguard.persistentKeepalive | string | `"0s"` | Controls Wireguard PersistentKeepalive option. Set 0s to disable. |
|
|
||||||
| encryption.wireguard.userspaceFallback | bool | `false` | Enables the fallback to the user-space implementation. |
|
| encryption.wireguard.userspaceFallback | bool | `false` | Enables the fallback to the user-space implementation. |
|
||||||
| endpointHealthChecking.enabled | bool | `true` | Enable connectivity health checking between virtual endpoints. |
|
| endpointHealthChecking.enabled | bool | `true` | Enable connectivity health checking between virtual endpoints. |
|
||||||
| endpointRoutes.enabled | bool | `false` | Enable use of per endpoint routes instead of routing via the cilium_host interface. |
|
| endpointRoutes.enabled | bool | `false` | Enable use of per endpoint routes instead of routing via the cilium_host interface. |
|
||||||
@@ -321,7 +301,6 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| eni.subnetTagsFilter | list | `[]` | Filter via tags (k=v) which will dictate which subnets are going to be used to create new ENIs Important note: This requires that each instance has an ENI with a matching subnet attached when Cilium is deployed. If you only want to control subnets for ENIs attached by Cilium, use the CNI configuration file settings (cni.customConf) instead. |
|
| eni.subnetTagsFilter | list | `[]` | Filter via tags (k=v) which will dictate which subnets are going to be used to create new ENIs Important note: This requires that each instance has an ENI with a matching subnet attached when Cilium is deployed. If you only want to control subnets for ENIs attached by Cilium, use the CNI configuration file settings (cni.customConf) instead. |
|
||||||
| eni.updateEC2AdapterLimitViaAPI | bool | `true` | Update ENI Adapter limits from the EC2 API |
|
| eni.updateEC2AdapterLimitViaAPI | bool | `true` | Update ENI Adapter limits from the EC2 API |
|
||||||
| envoy.affinity | object | `{"podAntiAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchLabels":{"k8s-app":"cilium-envoy"}},"topologyKey":"kubernetes.io/hostname"}]}}` | Affinity for cilium-envoy. |
|
| envoy.affinity | object | `{"podAntiAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchLabels":{"k8s-app":"cilium-envoy"}},"topologyKey":"kubernetes.io/hostname"}]}}` | Affinity for cilium-envoy. |
|
||||||
| envoy.annotations | object | `{}` | Annotations to be added to all top-level cilium-envoy objects (resources under templates/cilium-envoy) |
|
|
||||||
| envoy.connectTimeoutSeconds | int | `2` | Time in seconds after which a TCP connection attempt times out |
|
| envoy.connectTimeoutSeconds | int | `2` | Time in seconds after which a TCP connection attempt times out |
|
||||||
| envoy.dnsPolicy | string | `nil` | DNS policy for Cilium envoy pods. Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy |
|
| envoy.dnsPolicy | string | `nil` | DNS policy for Cilium envoy pods. Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy |
|
||||||
| envoy.enabled | bool | `false` | Enable Envoy Proxy in standalone DaemonSet. |
|
| envoy.enabled | bool | `false` | Enable Envoy Proxy in standalone DaemonSet. |
|
||||||
@@ -333,7 +312,7 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| envoy.extraVolumes | list | `[]` | Additional envoy volumes. |
|
| envoy.extraVolumes | list | `[]` | Additional envoy volumes. |
|
||||||
| envoy.healthPort | int | `9878` | TCP port for the health API. |
|
| envoy.healthPort | int | `9878` | TCP port for the health API. |
|
||||||
| envoy.idleTimeoutDurationSeconds | int | `60` | Set Envoy upstream HTTP idle connection timeout seconds. Does not apply to connections with pending requests. Default 60s |
|
| envoy.idleTimeoutDurationSeconds | int | `60` | Set Envoy upstream HTTP idle connection timeout seconds. Does not apply to connections with pending requests. Default 60s |
|
||||||
| envoy.image | object | `{"digest":"sha256:877ead12d08d4c04a9f67f86d3c6e542aeb7bf97e1e401aee74de456f496ac30","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/cilium-envoy","tag":"v1.27.3-99c1c8f42c8de70fc8f6dd594f4a425cd38b6688","useDigest":true}` | Envoy container image. |
|
| envoy.image | object | `{"digest":"sha256:992998398dadfff7117bfa9fdb7c9474fefab7f0237263f7c8114e106c67baca","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/cilium-envoy","tag":"v1.26.6-ad82c7c56e88989992fd25d8d67747de865c823b","useDigest":true}` | Envoy container image. |
|
||||||
| envoy.livenessProbe.failureThreshold | int | `10` | failure threshold of liveness probe |
|
| envoy.livenessProbe.failureThreshold | int | `10` | failure threshold of liveness probe |
|
||||||
| envoy.livenessProbe.periodSeconds | int | `30` | interval between checks of the liveness probe |
|
| envoy.livenessProbe.periodSeconds | int | `30` | interval between checks of the liveness probe |
|
||||||
| envoy.log.format | string | `"[%Y-%m-%d %T.%e][%t][%l][%n] [%g:%#] %v"` | The format string to use for laying out the log message metadata of Envoy. |
|
| envoy.log.format | string | `"[%Y-%m-%d %T.%e][%t][%l][%n] [%g:%#] %v"` | The format string to use for laying out the log message metadata of Envoy. |
|
||||||
@@ -345,15 +324,14 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| envoy.podLabels | object | `{}` | Labels to be added to envoy pods |
|
| envoy.podLabels | object | `{}` | Labels to be added to envoy pods |
|
||||||
| envoy.podSecurityContext | object | `{}` | Security Context for cilium-envoy pods. |
|
| envoy.podSecurityContext | object | `{}` | Security Context for cilium-envoy pods. |
|
||||||
| envoy.priorityClassName | string | `nil` | The priority class to use for cilium-envoy. |
|
| envoy.priorityClassName | string | `nil` | The priority class to use for cilium-envoy. |
|
||||||
| envoy.prometheus | object | `{"enabled":true,"port":"9964","serviceMonitor":{"annotations":{},"enabled":false,"interval":"10s","labels":{},"metricRelabelings":null,"relabelings":[{"replacement":"${1}","sourceLabels":["__meta_kubernetes_pod_node_name"],"targetLabel":"node"}]}}` | Configure Cilium Envoy Prometheus options. Note that some of these apply to either cilium-agent or cilium-envoy. |
|
|
||||||
| envoy.prometheus.enabled | bool | `true` | Enable prometheus metrics for cilium-envoy |
|
| envoy.prometheus.enabled | bool | `true` | Enable prometheus metrics for cilium-envoy |
|
||||||
| envoy.prometheus.port | string | `"9964"` | Serve prometheus metrics for cilium-envoy on the configured port |
|
| envoy.prometheus.port | string | `"9964"` | Serve prometheus metrics for cilium-envoy on the configured port |
|
||||||
| envoy.prometheus.serviceMonitor.annotations | object | `{}` | Annotations to add to ServiceMonitor cilium-envoy |
|
| envoy.prometheus.serviceMonitor.annotations | object | `{}` | Annotations to add to ServiceMonitor cilium-envoy |
|
||||||
| envoy.prometheus.serviceMonitor.enabled | bool | `false` | Enable service monitors. This requires the prometheus CRDs to be available (see https://github.com/prometheus-operator/prometheus-operator/blob/main/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml) Note that this setting applies to both cilium-envoy _and_ cilium-agent with Envoy enabled. |
|
| envoy.prometheus.serviceMonitor.enabled | bool | `false` | Enable service monitors. This requires the prometheus CRDs to be available (see https://github.com/prometheus-operator/prometheus-operator/blob/main/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml) |
|
||||||
| envoy.prometheus.serviceMonitor.interval | string | `"10s"` | Interval for scrape metrics. |
|
| envoy.prometheus.serviceMonitor.interval | string | `"10s"` | Interval for scrape metrics. |
|
||||||
| envoy.prometheus.serviceMonitor.labels | object | `{}` | Labels to add to ServiceMonitor cilium-envoy |
|
| envoy.prometheus.serviceMonitor.labels | object | `{}` | Labels to add to ServiceMonitor cilium-envoy |
|
||||||
| envoy.prometheus.serviceMonitor.metricRelabelings | string | `nil` | Metrics relabeling configs for the ServiceMonitor cilium-envoy or for cilium-agent with Envoy configured. |
|
| envoy.prometheus.serviceMonitor.metricRelabelings | string | `nil` | Metrics relabeling configs for the ServiceMonitor cilium-envoy |
|
||||||
| envoy.prometheus.serviceMonitor.relabelings | list | `[{"replacement":"${1}","sourceLabels":["__meta_kubernetes_pod_node_name"],"targetLabel":"node"}]` | Relabeling configs for the ServiceMonitor cilium-envoy or for cilium-agent with Envoy configured. |
|
| envoy.prometheus.serviceMonitor.relabelings | list | `[{"replacement":"${1}","sourceLabels":["__meta_kubernetes_pod_node_name"],"targetLabel":"node"}]` | Relabeling configs for the ServiceMonitor cilium-envoy |
|
||||||
| envoy.readinessProbe.failureThreshold | int | `3` | failure threshold of readiness probe |
|
| envoy.readinessProbe.failureThreshold | int | `3` | failure threshold of readiness probe |
|
||||||
| envoy.readinessProbe.periodSeconds | int | `30` | interval between checks of the readiness probe |
|
| envoy.readinessProbe.periodSeconds | int | `30` | interval between checks of the readiness probe |
|
||||||
| envoy.resources | object | `{}` | Envoy resource limits & requests ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ |
|
| envoy.resources | object | `{}` | Envoy resource limits & requests ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ |
|
||||||
@@ -370,7 +348,6 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| envoyConfig.secretsNamespace | object | `{"create":true,"name":"cilium-secrets"}` | SecretsNamespace is the namespace in which envoy SDS will retrieve secrets from. |
|
| envoyConfig.secretsNamespace | object | `{"create":true,"name":"cilium-secrets"}` | SecretsNamespace is the namespace in which envoy SDS will retrieve secrets from. |
|
||||||
| envoyConfig.secretsNamespace.create | bool | `true` | Create secrets namespace for CiliumEnvoyConfig CRDs. |
|
| envoyConfig.secretsNamespace.create | bool | `true` | Create secrets namespace for CiliumEnvoyConfig CRDs. |
|
||||||
| envoyConfig.secretsNamespace.name | string | `"cilium-secrets"` | The name of the secret namespace to which Cilium agents are given read access. |
|
| envoyConfig.secretsNamespace.name | string | `"cilium-secrets"` | The name of the secret namespace to which Cilium agents are given read access. |
|
||||||
| etcd.annotations | object | `{}` | Annotations to be added to all top-level etcd-operator objects (resources under templates/etcd-operator) |
|
|
||||||
| etcd.clusterDomain | string | `"cluster.local"` | Cluster domain for cilium-etcd-operator. |
|
| etcd.clusterDomain | string | `"cluster.local"` | Cluster domain for cilium-etcd-operator. |
|
||||||
| etcd.enabled | bool | `false` | Enable etcd mode for the agent. |
|
| etcd.enabled | bool | `false` | Enable etcd mode for the agent. |
|
||||||
| etcd.endpoints | list | `["https://CHANGE-ME:2379"]` | List of etcd endpoints (not needed when using managed=true). |
|
| etcd.endpoints | list | `["https://CHANGE-ME:2379"]` | List of etcd endpoints (not needed when using managed=true). |
|
||||||
@@ -416,41 +393,24 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| hostFirewall | object | `{"enabled":false}` | Configure the host firewall. |
|
| hostFirewall | object | `{"enabled":false}` | Configure the host firewall. |
|
||||||
| hostFirewall.enabled | bool | `false` | Enables the enforcement of host policies in the eBPF datapath. |
|
| hostFirewall.enabled | bool | `false` | Enables the enforcement of host policies in the eBPF datapath. |
|
||||||
| hostPort.enabled | bool | `false` | Enable hostPort service support. |
|
| hostPort.enabled | bool | `false` | Enable hostPort service support. |
|
||||||
| hubble.annotations | object | `{}` | Annotations to be added to all top-level hubble objects (resources under templates/hubble) |
|
|
||||||
| hubble.enabled | bool | `true` | Enable Hubble (true by default). |
|
| hubble.enabled | bool | `true` | Enable Hubble (true by default). |
|
||||||
| hubble.export | object | `{"dynamic":{"config":{"configMapName":"cilium-flowlog-config","content":[{"excludeFilters":[],"fieldMask":[],"filePath":"/var/run/cilium/hubble/events.log","includeFilters":[],"name":"all"}],"createConfigMap":true},"enabled":false},"fileMaxBackups":5,"fileMaxSizeMb":10,"static":{"allowList":[],"denyList":[],"enabled":false,"fieldMask":[],"filePath":"/var/run/cilium/hubble/events.log"}}` | Hubble flows export. |
|
|
||||||
| hubble.export.dynamic | object | `{"config":{"configMapName":"cilium-flowlog-config","content":[{"excludeFilters":[],"fieldMask":[],"filePath":"/var/run/cilium/hubble/events.log","includeFilters":[],"name":"all"}],"createConfigMap":true},"enabled":false}` | - Dynamic exporters configuration. Dynamic exporters may be reconfigured without a need of agent restarts. |
|
|
||||||
| hubble.export.dynamic.config.configMapName | string | `"cilium-flowlog-config"` | -- Name of configmap with configuration that may be altered to reconfigure exporters within a running agents. |
|
|
||||||
| hubble.export.dynamic.config.content | list | `[{"excludeFilters":[],"fieldMask":[],"filePath":"/var/run/cilium/hubble/events.log","includeFilters":[],"name":"all"}]` | -- Exporters configuration in YAML format. |
|
|
||||||
| hubble.export.dynamic.config.createConfigMap | bool | `true` | -- True if helm installer should create config map. Switch to false if you want to self maintain the file content. |
|
|
||||||
| hubble.export.fileMaxBackups | int | `5` | - Defines max number of backup/rotated files. |
|
|
||||||
| hubble.export.fileMaxSizeMb | int | `10` | - Defines max file size of output file before it gets rotated. |
|
|
||||||
| hubble.export.static | object | `{"allowList":[],"denyList":[],"enabled":false,"fieldMask":[],"filePath":"/var/run/cilium/hubble/events.log"}` | - Static exporter configuration. Static exporter is bound to agent lifecycle. |
|
|
||||||
| hubble.listenAddress | string | `":4244"` | An additional address for Hubble to listen to. Set this field ":4244" if you are enabling Hubble Relay, as it assumes that Hubble is listening on port 4244. |
|
| hubble.listenAddress | string | `":4244"` | An additional address for Hubble to listen to. Set this field ":4244" if you are enabling Hubble Relay, as it assumes that Hubble is listening on port 4244. |
|
||||||
| hubble.metrics | object | `{"dashboards":{"annotations":{},"enabled":false,"label":"grafana_dashboard","labelValue":"1","namespace":null},"enableOpenMetrics":false,"enabled":null,"port":9965,"serviceAnnotations":{},"serviceMonitor":{"annotations":{},"enabled":false,"interval":"10s","jobLabel":"","labels":{},"metricRelabelings":null,"relabelings":[{"replacement":"${1}","sourceLabels":["__meta_kubernetes_pod_node_name"],"targetLabel":"node"}]}}` | Hubble metrics configuration. See https://docs.cilium.io/en/stable/observability/metrics/#hubble-metrics for more comprehensive documentation about Hubble metrics. |
|
| hubble.metrics | object | `{"dashboards":{"annotations":{},"enabled":false,"label":"grafana_dashboard","labelValue":"1","namespace":null},"enableOpenMetrics":false,"enabled":null,"port":9965,"serviceAnnotations":{},"serviceMonitor":{"annotations":{},"enabled":false,"interval":"10s","labels":{},"metricRelabelings":null,"relabelings":[{"replacement":"${1}","sourceLabels":["__meta_kubernetes_pod_node_name"],"targetLabel":"node"}]}}` | Hubble metrics configuration. See https://docs.cilium.io/en/stable/observability/metrics/#hubble-metrics for more comprehensive documentation about Hubble metrics. |
|
||||||
| hubble.metrics.dashboards | object | `{"annotations":{},"enabled":false,"label":"grafana_dashboard","labelValue":"1","namespace":null}` | Grafana dashboards for hubble grafana can import dashboards based on the label and value ref: https://github.com/grafana/helm-charts/tree/main/charts/grafana#sidecar-for-dashboards |
|
| hubble.metrics.dashboards | object | `{"annotations":{},"enabled":false,"label":"grafana_dashboard","labelValue":"1","namespace":null}` | Grafana dashboards for hubble grafana can import dashboards based on the label and value ref: https://github.com/grafana/helm-charts/tree/main/charts/grafana#sidecar-for-dashboards |
|
||||||
| hubble.metrics.enableOpenMetrics | bool | `false` | Enables exporting hubble metrics in OpenMetrics format. |
|
| hubble.metrics.enableOpenMetrics | bool | `false` | Enables exporting hubble metrics in OpenMetrics format. |
|
||||||
| hubble.metrics.enabled | string | `nil` | Configures the list of metrics to collect. If empty or null, metrics are disabled. Example: enabled: - dns:query;ignoreAAAA - drop - tcp - flow - icmp - http You can specify the list of metrics from the helm CLI: --set hubble.metrics.enabled="{dns:query;ignoreAAAA,drop,tcp,flow,icmp,http}" |
|
| hubble.metrics.enabled | string | `nil` | Configures the list of metrics to collect. If empty or null, metrics are disabled. Example: enabled: - dns:query;ignoreAAAA - drop - tcp - flow - icmp - http You can specify the list of metrics from the helm CLI: --set metrics.enabled="{dns:query;ignoreAAAA,drop,tcp,flow,icmp,http}" |
|
||||||
| hubble.metrics.port | int | `9965` | Configure the port the hubble metric server listens on. |
|
| hubble.metrics.port | int | `9965` | Configure the port the hubble metric server listens on. |
|
||||||
| hubble.metrics.serviceAnnotations | object | `{}` | Annotations to be added to hubble-metrics service. |
|
| hubble.metrics.serviceAnnotations | object | `{}` | Annotations to be added to hubble-metrics service. |
|
||||||
| hubble.metrics.serviceMonitor.annotations | object | `{}` | Annotations to add to ServiceMonitor hubble |
|
| hubble.metrics.serviceMonitor.annotations | object | `{}` | Annotations to add to ServiceMonitor hubble |
|
||||||
| hubble.metrics.serviceMonitor.enabled | bool | `false` | Create ServiceMonitor resources for Prometheus Operator. This requires the prometheus CRDs to be available. ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml) |
|
| hubble.metrics.serviceMonitor.enabled | bool | `false` | Create ServiceMonitor resources for Prometheus Operator. This requires the prometheus CRDs to be available. ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml) |
|
||||||
| hubble.metrics.serviceMonitor.interval | string | `"10s"` | Interval for scrape metrics. |
|
| hubble.metrics.serviceMonitor.interval | string | `"10s"` | Interval for scrape metrics. |
|
||||||
| hubble.metrics.serviceMonitor.jobLabel | string | `""` | jobLabel to add for ServiceMonitor hubble |
|
|
||||||
| hubble.metrics.serviceMonitor.labels | object | `{}` | Labels to add to ServiceMonitor hubble |
|
| hubble.metrics.serviceMonitor.labels | object | `{}` | Labels to add to ServiceMonitor hubble |
|
||||||
| hubble.metrics.serviceMonitor.metricRelabelings | string | `nil` | Metrics relabeling configs for the ServiceMonitor hubble |
|
| hubble.metrics.serviceMonitor.metricRelabelings | string | `nil` | Metrics relabeling configs for the ServiceMonitor hubble |
|
||||||
| hubble.metrics.serviceMonitor.relabelings | list | `[{"replacement":"${1}","sourceLabels":["__meta_kubernetes_pod_node_name"],"targetLabel":"node"}]` | Relabeling configs for the ServiceMonitor hubble |
|
| hubble.metrics.serviceMonitor.relabelings | list | `[{"replacement":"${1}","sourceLabels":["__meta_kubernetes_pod_node_name"],"targetLabel":"node"}]` | Relabeling configs for the ServiceMonitor hubble |
|
||||||
| hubble.peerService.clusterDomain | string | `"cluster.local"` | The cluster domain to use to query the Hubble Peer service. It should be the local cluster. |
|
| hubble.peerService.clusterDomain | string | `"cluster.local"` | The cluster domain to use to query the Hubble Peer service. It should be the local cluster. |
|
||||||
| hubble.peerService.targetPort | int | `4244` | Target Port for the Peer service, must match the hubble.listenAddress' port. |
|
| hubble.peerService.targetPort | int | `4244` | Target Port for the Peer service, must match the hubble.listenAddress' port. |
|
||||||
| hubble.preferIpv6 | bool | `false` | Whether Hubble should prefer to announce IPv6 or IPv4 addresses if both are available. |
|
| hubble.preferIpv6 | bool | `false` | Whether Hubble should prefer to announce IPv6 or IPv4 addresses if both are available. |
|
||||||
| hubble.redact | object | `{"enabled":false,"http":{"headers":{"allow":[],"deny":[]},"urlQuery":false,"userInfo":true},"kafka":{"apiKey":false}}` | Enables redacting sensitive information present in Layer 7 flows. |
|
|
||||||
| hubble.redact.http.headers.allow | list | `[]` | List of HTTP headers to allow: headers not matching will be redacted. Note: `allow` and `deny` lists cannot be used both at the same time, only one can be present. Example: redact: enabled: true http: headers: allow: - traceparent - tracestate - Cache-Control You can specify the options from the helm CLI: --set hubble.redact.enabled="true" --set hubble.redact.http.headers.allow="traceparent,tracestate,Cache-Control" |
|
|
||||||
| hubble.redact.http.headers.deny | list | `[]` | List of HTTP headers to deny: matching headers will be redacted. Note: `allow` and `deny` lists cannot be used both at the same time, only one can be present. Example: redact: enabled: true http: headers: deny: - Authorization - Proxy-Authorization You can specify the options from the helm CLI: --set hubble.redact.enabled="true" --set hubble.redact.http.headers.deny="Authorization,Proxy-Authorization" |
|
|
||||||
| hubble.redact.http.urlQuery | bool | `false` | Enables redacting URL query (GET) parameters. Example: redact: enabled: true http: urlQuery: true You can specify the options from the helm CLI: --set hubble.redact.enabled="true" --set hubble.redact.http.urlQuery="true" |
|
|
||||||
| hubble.redact.http.userInfo | bool | `true` | Enables redacting user info, e.g., password when basic auth is used. Example: redact: enabled: true http: userInfo: true You can specify the options from the helm CLI: --set hubble.redact.enabled="true" --set hubble.redact.http.userInfo="true" |
|
|
||||||
| hubble.redact.kafka.apiKey | bool | `false` | Enables redacting Kafka's API key. Example: redact: enabled: true kafka: apiKey: true You can specify the options from the helm CLI: --set hubble.redact.enabled="true" --set hubble.redact.kafka.apiKey="true" |
|
|
||||||
| hubble.relay.affinity | object | `{"podAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchLabels":{"k8s-app":"cilium"}},"topologyKey":"kubernetes.io/hostname"}]}}` | Affinity for hubble-replay |
|
| hubble.relay.affinity | object | `{"podAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchLabels":{"k8s-app":"cilium"}},"topologyKey":"kubernetes.io/hostname"}]}}` | Affinity for hubble-replay |
|
||||||
| hubble.relay.annotations | object | `{}` | Annotations to be added to all top-level hubble-relay objects (resources under templates/hubble-relay) |
|
|
||||||
| hubble.relay.dialTimeout | string | `nil` | Dial timeout to connect to the local hubble instance to receive peer information (e.g. "30s"). |
|
| hubble.relay.dialTimeout | string | `nil` | Dial timeout to connect to the local hubble instance to receive peer information (e.g. "30s"). |
|
||||||
| hubble.relay.enabled | bool | `false` | Enable Hubble Relay (requires hubble.enabled=true) |
|
| hubble.relay.enabled | bool | `false` | Enable Hubble Relay (requires hubble.enabled=true) |
|
||||||
| hubble.relay.extraEnv | list | `[]` | Additional hubble-relay environment variables. |
|
| hubble.relay.extraEnv | list | `[]` | Additional hubble-relay environment variables. |
|
||||||
@@ -458,7 +418,7 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| hubble.relay.extraVolumes | list | `[]` | Additional hubble-relay volumes. |
|
| hubble.relay.extraVolumes | list | `[]` | Additional hubble-relay volumes. |
|
||||||
| hubble.relay.gops.enabled | bool | `true` | Enable gops for hubble-relay |
|
| hubble.relay.gops.enabled | bool | `true` | Enable gops for hubble-relay |
|
||||||
| hubble.relay.gops.port | int | `9893` | Configure gops listen port for hubble-relay |
|
| hubble.relay.gops.port | int | `9893` | Configure gops listen port for hubble-relay |
|
||||||
| hubble.relay.image | object | `{"digest":"sha256:48480053930e884adaeb4141259ff1893a22eb59707906c6d38de2fe01916cb0","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/hubble-relay","tag":"v1.15.2","useDigest":true}` | Hubble-relay container image. |
|
| hubble.relay.image | object | `{"digest":"sha256:dbef89f924a927043d02b40c18e417c1ea0e8f58b44523b80fef7e3652db24d4","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/hubble-relay","tag":"v1.14.5","useDigest":true}` | Hubble-relay container image. |
|
||||||
| hubble.relay.listenHost | string | `""` | Host to listen to. Specify an empty string to bind to all the interfaces. |
|
| hubble.relay.listenHost | string | `""` | Host to listen to. Specify an empty string to bind to all the interfaces. |
|
||||||
| hubble.relay.listenPort | string | `"4245"` | Port to listen to. |
|
| hubble.relay.listenPort | string | `"4245"` | Port to listen to. |
|
||||||
| hubble.relay.nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Node labels for pod assignment ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector |
|
| hubble.relay.nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Node labels for pod assignment ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector |
|
||||||
@@ -490,9 +450,9 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| hubble.relay.sortBufferDrainTimeout | string | `nil` | When the per-request flows sort buffer is not full, a flow is drained every time this timeout is reached (only affects requests in follow-mode) (e.g. "1s"). |
|
| hubble.relay.sortBufferDrainTimeout | string | `nil` | When the per-request flows sort buffer is not full, a flow is drained every time this timeout is reached (only affects requests in follow-mode) (e.g. "1s"). |
|
||||||
| hubble.relay.sortBufferLenMax | string | `nil` | Max number of flows that can be buffered for sorting before being sent to the client (per request) (e.g. 100). |
|
| hubble.relay.sortBufferLenMax | string | `nil` | Max number of flows that can be buffered for sorting before being sent to the client (per request) (e.g. 100). |
|
||||||
| hubble.relay.terminationGracePeriodSeconds | int | `1` | Configure termination grace period for hubble relay Deployment. |
|
| hubble.relay.terminationGracePeriodSeconds | int | `1` | Configure termination grace period for hubble relay Deployment. |
|
||||||
| hubble.relay.tls | object | `{"client":{"cert":"","key":""},"server":{"cert":"","enabled":false,"extraDnsNames":[],"extraIpAddresses":[],"key":"","mtls":false,"relayName":"ui.hubble-relay.cilium.io"}}` | TLS configuration for Hubble Relay |
|
| hubble.relay.tls | object | `{"client":{"cert":"","key":""},"server":{"cert":"","enabled":false,"extraDnsNames":[],"extraIpAddresses":[],"key":"","mtls":false}}` | TLS configuration for Hubble Relay |
|
||||||
| hubble.relay.tls.client | object | `{"cert":"","key":""}` | base64 encoded PEM values for the hubble-relay client certificate and private key This keypair is presented to Hubble server instances for mTLS authentication and is required when hubble.tls.enabled is true. These values need to be set manually if hubble.tls.auto.enabled is false. |
|
| hubble.relay.tls.client | object | `{"cert":"","key":""}` | base64 encoded PEM values for the hubble-relay client certificate and private key This keypair is presented to Hubble server instances for mTLS authentication and is required when hubble.tls.enabled is true. These values need to be set manually if hubble.tls.auto.enabled is false. |
|
||||||
| hubble.relay.tls.server | object | `{"cert":"","enabled":false,"extraDnsNames":[],"extraIpAddresses":[],"key":"","mtls":false,"relayName":"ui.hubble-relay.cilium.io"}` | base64 encoded PEM values for the hubble-relay server certificate and private key |
|
| hubble.relay.tls.server | object | `{"cert":"","enabled":false,"extraDnsNames":[],"extraIpAddresses":[],"key":"","mtls":false}` | base64 encoded PEM values for the hubble-relay server certificate and private key |
|
||||||
| hubble.relay.tls.server.extraDnsNames | list | `[]` | extra DNS names added to certificate when its auto gen |
|
| hubble.relay.tls.server.extraDnsNames | list | `[]` | extra DNS names added to certificate when its auto gen |
|
||||||
| hubble.relay.tls.server.extraIpAddresses | list | `[]` | extra IP addresses added to certificate when its auto gen |
|
| hubble.relay.tls.server.extraIpAddresses | list | `[]` | extra IP addresses added to certificate when its auto gen |
|
||||||
| hubble.relay.tolerations | list | `[]` | Node tolerations for pod assignment on nodes with taints ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
|
| hubble.relay.tolerations | list | `[]` | Node tolerations for pod assignment on nodes with taints ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
|
||||||
@@ -512,13 +472,10 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| hubble.tls.server.extraDnsNames | list | `[]` | Extra DNS names added to certificate when it's auto generated |
|
| hubble.tls.server.extraDnsNames | list | `[]` | Extra DNS names added to certificate when it's auto generated |
|
||||||
| hubble.tls.server.extraIpAddresses | list | `[]` | Extra IP addresses added to certificate when it's auto generated |
|
| hubble.tls.server.extraIpAddresses | list | `[]` | Extra IP addresses added to certificate when it's auto generated |
|
||||||
| hubble.ui.affinity | object | `{}` | Affinity for hubble-ui |
|
| hubble.ui.affinity | object | `{}` | Affinity for hubble-ui |
|
||||||
| hubble.ui.annotations | object | `{}` | Annotations to be added to all top-level hubble-ui objects (resources under templates/hubble-ui) |
|
|
||||||
| hubble.ui.backend.extraEnv | list | `[]` | Additional hubble-ui backend environment variables. |
|
| hubble.ui.backend.extraEnv | list | `[]` | Additional hubble-ui backend environment variables. |
|
||||||
| hubble.ui.backend.extraVolumeMounts | list | `[]` | Additional hubble-ui backend volumeMounts. |
|
| hubble.ui.backend.extraVolumeMounts | list | `[]` | Additional hubble-ui backend volumeMounts. |
|
||||||
| hubble.ui.backend.extraVolumes | list | `[]` | Additional hubble-ui backend volumes. |
|
| hubble.ui.backend.extraVolumes | list | `[]` | Additional hubble-ui backend volumes. |
|
||||||
| hubble.ui.backend.image | object | `{"digest":"sha256:1e7657d997c5a48253bb8dc91ecee75b63018d16ff5e5797e5af367336bc8803","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/hubble-ui-backend","tag":"v0.13.0","useDigest":true}` | Hubble-ui backend image. |
|
| hubble.ui.backend.image | object | `{"digest":"sha256:1f86f3400827a0451e6332262467f894eeb7caf0eb8779bd951e2caa9d027cbe","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/hubble-ui-backend","tag":"v0.12.1","useDigest":true}` | Hubble-ui backend image. |
|
||||||
| hubble.ui.backend.livenessProbe.enabled | bool | `false` | Enable liveness probe for Hubble-ui backend (requires Hubble-ui 0.12+) |
|
|
||||||
| hubble.ui.backend.readinessProbe.enabled | bool | `false` | Enable readiness probe for Hubble-ui backend (requires Hubble-ui 0.12+) |
|
|
||||||
| hubble.ui.backend.resources | object | `{}` | Resource requests and limits for the 'backend' container of the 'hubble-ui' deployment. |
|
| hubble.ui.backend.resources | object | `{}` | Resource requests and limits for the 'backend' container of the 'hubble-ui' deployment. |
|
||||||
| hubble.ui.backend.securityContext | object | `{}` | Hubble-ui backend security context. |
|
| hubble.ui.backend.securityContext | object | `{}` | Hubble-ui backend security context. |
|
||||||
| hubble.ui.baseUrl | string | `"/"` | Defines base url prefix for all hubble-ui http requests. It needs to be changed in case if ingress for hubble-ui is configured under some sub-path. Trailing `/` is required for custom path, ex. `/service-map/` |
|
| hubble.ui.baseUrl | string | `"/"` | Defines base url prefix for all hubble-ui http requests. It needs to be changed in case if ingress for hubble-ui is configured under some sub-path. Trailing `/` is required for custom path, ex. `/service-map/` |
|
||||||
@@ -526,7 +483,7 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| hubble.ui.frontend.extraEnv | list | `[]` | Additional hubble-ui frontend environment variables. |
|
| hubble.ui.frontend.extraEnv | list | `[]` | Additional hubble-ui frontend environment variables. |
|
||||||
| hubble.ui.frontend.extraVolumeMounts | list | `[]` | Additional hubble-ui frontend volumeMounts. |
|
| hubble.ui.frontend.extraVolumeMounts | list | `[]` | Additional hubble-ui frontend volumeMounts. |
|
||||||
| hubble.ui.frontend.extraVolumes | list | `[]` | Additional hubble-ui frontend volumes. |
|
| hubble.ui.frontend.extraVolumes | list | `[]` | Additional hubble-ui frontend volumes. |
|
||||||
| hubble.ui.frontend.image | object | `{"digest":"sha256:7d663dc16538dd6e29061abd1047013a645e6e69c115e008bee9ea9fef9a6666","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/hubble-ui","tag":"v0.13.0","useDigest":true}` | Hubble-ui frontend image. |
|
| hubble.ui.frontend.image | object | `{"digest":"sha256:9e5f81ee747866480ea1ac4630eb6975ff9227f9782b7c93919c081c33f38267","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/hubble-ui","tag":"v0.12.1","useDigest":true}` | Hubble-ui frontend image. |
|
||||||
| hubble.ui.frontend.resources | object | `{}` | Resource requests and limits for the 'frontend' container of the 'hubble-ui' deployment. |
|
| hubble.ui.frontend.resources | object | `{}` | Resource requests and limits for the 'frontend' container of the 'hubble-ui' deployment. |
|
||||||
| hubble.ui.frontend.securityContext | object | `{}` | Hubble-ui frontend security context. |
|
| hubble.ui.frontend.securityContext | object | `{}` | Hubble-ui frontend security context. |
|
||||||
| hubble.ui.frontend.server.ipv6 | object | `{"enabled":true}` | Controls server listener for ipv6 |
|
| hubble.ui.frontend.server.ipv6 | object | `{"enabled":true}` | Controls server listener for ipv6 |
|
||||||
@@ -553,15 +510,14 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| hubble.ui.updateStrategy | object | `{"rollingUpdate":{"maxUnavailable":1},"type":"RollingUpdate"}` | hubble-ui update strategy. |
|
| hubble.ui.updateStrategy | object | `{"rollingUpdate":{"maxUnavailable":1},"type":"RollingUpdate"}` | hubble-ui update strategy. |
|
||||||
| identityAllocationMode | string | `"crd"` | Method to use for identity allocation (`crd` or `kvstore`). |
|
| identityAllocationMode | string | `"crd"` | Method to use for identity allocation (`crd` or `kvstore`). |
|
||||||
| identityChangeGracePeriod | string | `"5s"` | Time to wait before using new identity on endpoint identity change. |
|
| identityChangeGracePeriod | string | `"5s"` | Time to wait before using new identity on endpoint identity change. |
|
||||||
| image | object | `{"digest":"sha256:bfeb3f1034282444ae8c498dca94044df2b9c9c8e7ac678e0b43c849f0b31746","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/cilium","tag":"v1.15.2","useDigest":true}` | Agent container image. |
|
| image | object | `{"digest":"sha256:d3b287029755b6a47dee01420e2ea469469f1b174a2089c10af7e5e9289ef05b","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/cilium","tag":"v1.14.5","useDigest":true}` | Agent container image. |
|
||||||
| imagePullSecrets | string | `nil` | Configure image pull secrets for pulling container images |
|
| imagePullSecrets | string | `nil` | Configure image pull secrets for pulling container images |
|
||||||
| ingressController.default | bool | `false` | Set cilium ingress controller to be the default ingress controller This will let cilium ingress controller route entries without ingress class set |
|
| ingressController.default | bool | `false` | Set cilium ingress controller to be the default ingress controller This will let cilium ingress controller route entries without ingress class set |
|
||||||
| ingressController.defaultSecretName | string | `nil` | Default secret name for ingresses without .spec.tls[].secretName set. |
|
| ingressController.defaultSecretName | string | `nil` | Default secret name for ingresses without .spec.tls[].secretName set. |
|
||||||
| ingressController.defaultSecretNamespace | string | `nil` | Default secret namespace for ingresses without .spec.tls[].secretName set. |
|
| ingressController.defaultSecretNamespace | string | `nil` | Default secret namespace for ingresses without .spec.tls[].secretName set. |
|
||||||
| ingressController.enableProxyProtocol | bool | `false` | Enable proxy protocol for all Ingress listeners. Note that _only_ Proxy protocol traffic will be accepted once this is enabled. |
|
|
||||||
| ingressController.enabled | bool | `false` | Enable cilium ingress controller This will automatically set enable-envoy-config as well. |
|
| ingressController.enabled | bool | `false` | Enable cilium ingress controller This will automatically set enable-envoy-config as well. |
|
||||||
| ingressController.enforceHttps | bool | `true` | Enforce https for host having matching TLS host in Ingress. Incoming traffic to http listener will return 308 http error code with respective location in header. |
|
| ingressController.enforceHttps | bool | `true` | Enforce https for host having matching TLS host in Ingress. Incoming traffic to http listener will return 308 http error code with respective location in header. |
|
||||||
| ingressController.ingressLBAnnotationPrefixes | list | `["service.beta.kubernetes.io","service.kubernetes.io","cloud.google.com"]` | IngressLBAnnotations are the annotation and label prefixes, which are used to filter annotations and/or labels to propagate from Ingress to the Load Balancer service |
|
| ingressController.ingressLBAnnotationPrefixes | list | `["service.beta.kubernetes.io","service.kubernetes.io","cloud.google.com"]` | IngressLBAnnotations are the annotation prefixes, which are used to filter annotations to propagate from Ingress to the Load Balancer service |
|
||||||
| ingressController.loadbalancerMode | string | `"dedicated"` | Default ingress load balancer mode Supported values: shared, dedicated For granular control, use the following annotations on the ingress resource ingress.cilium.io/loadbalancer-mode: shared|dedicated, |
|
| ingressController.loadbalancerMode | string | `"dedicated"` | Default ingress load balancer mode Supported values: shared, dedicated For granular control, use the following annotations on the ingress resource ingress.cilium.io/loadbalancer-mode: shared|dedicated, |
|
||||||
| ingressController.secretsNamespace | object | `{"create":true,"name":"cilium-secrets","sync":true}` | SecretsNamespace is the namespace in which envoy SDS will retrieve TLS secrets from. |
|
| ingressController.secretsNamespace | object | `{"create":true,"name":"cilium-secrets","sync":true}` | SecretsNamespace is the namespace in which envoy SDS will retrieve TLS secrets from. |
|
||||||
| ingressController.secretsNamespace.create | bool | `true` | Create secrets namespace for Ingress. |
|
| ingressController.secretsNamespace.create | bool | `true` | Create secrets namespace for Ingress. |
|
||||||
@@ -594,9 +550,9 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| ipv6.enabled | bool | `false` | Enable IPv6 support. |
|
| ipv6.enabled | bool | `false` | Enable IPv6 support. |
|
||||||
| ipv6NativeRoutingCIDR | string | `""` | Allows to explicitly specify the IPv6 CIDR for native routing. When specified, Cilium assumes networking for this CIDR is preconfigured and hands traffic destined for that range to the Linux network stack without applying any SNAT. Generally speaking, specifying a native routing CIDR implies that Cilium can depend on the underlying networking stack to route packets to their destination. To offer a concrete example, if Cilium is configured to use direct routing and the Kubernetes CIDR is included in the native routing CIDR, the user must configure the routes to reach pods, either manually or by setting the auto-direct-node-routes flag. |
|
| ipv6NativeRoutingCIDR | string | `""` | Allows to explicitly specify the IPv6 CIDR for native routing. When specified, Cilium assumes networking for this CIDR is preconfigured and hands traffic destined for that range to the Linux network stack without applying any SNAT. Generally speaking, specifying a native routing CIDR implies that Cilium can depend on the underlying networking stack to route packets to their destination. To offer a concrete example, if Cilium is configured to use direct routing and the Kubernetes CIDR is included in the native routing CIDR, the user must configure the routes to reach pods, either manually or by setting the auto-direct-node-routes flag. |
|
||||||
| k8s | object | `{}` | Configure Kubernetes specific configuration |
|
| k8s | object | `{}` | Configure Kubernetes specific configuration |
|
||||||
| k8sClientRateLimit | object | `{"burst":null,"qps":null}` | Configure the client side rate limit for the agent and operator If the amount of requests to the Kubernetes API server exceeds the configured rate limit, the agent and operator will start to throttle requests by delaying them until there is budget or the request times out. |
|
| k8sClientRateLimit | object | `{"burst":10,"qps":5}` | Configure the client side rate limit for the agent and operator If the amount of requests to the Kubernetes API server exceeds the configured rate limit, the agent and operator will start to throttle requests by delaying them until there is budget or the request times out. |
|
||||||
| k8sClientRateLimit.burst | int | 10 for k8s up to 1.26. 20 for k8s version 1.27+ | The burst request rate in requests per second. The rate limiter will allow short bursts with a higher rate. |
|
| k8sClientRateLimit.burst | int | `10` | The burst request rate in requests per second. The rate limiter will allow short bursts with a higher rate. |
|
||||||
| k8sClientRateLimit.qps | int | 5 for k8s up to 1.26. 10 for k8s version 1.27+ | The sustained request rate in requests per second. |
|
| k8sClientRateLimit.qps | int | `5` | The sustained request rate in requests per second. |
|
||||||
| k8sNetworkPolicy.enabled | bool | `true` | Enable support for K8s NetworkPolicy |
|
| k8sNetworkPolicy.enabled | bool | `true` | Enable support for K8s NetworkPolicy |
|
||||||
| k8sServiceHost | string | `""` | Kubernetes service host |
|
| k8sServiceHost | string | `""` | Kubernetes service host |
|
||||||
| k8sServicePort | string | `""` | Kubernetes service port |
|
| k8sServicePort | string | `""` | Kubernetes service port |
|
||||||
@@ -614,8 +570,7 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| l7Proxy | bool | `true` | Enable Layer 7 network policy. |
|
| l7Proxy | bool | `true` | Enable Layer 7 network policy. |
|
||||||
| livenessProbe.failureThreshold | int | `10` | failure threshold of liveness probe |
|
| livenessProbe.failureThreshold | int | `10` | failure threshold of liveness probe |
|
||||||
| livenessProbe.periodSeconds | int | `30` | interval between checks of the liveness probe |
|
| livenessProbe.periodSeconds | int | `30` | interval between checks of the liveness probe |
|
||||||
| loadBalancer | object | `{"acceleration":"disabled","l7":{"algorithm":"round_robin","backend":"disabled","ports":[]}}` | Configure service load balancing |
|
| loadBalancer | object | `{"l7":{"algorithm":"round_robin","backend":"disabled","ports":[]}}` | Configure service load balancing |
|
||||||
| loadBalancer.acceleration | string | `"disabled"` | acceleration is the option to accelerate service handling via XDP Applicable values can be: disabled (do not use XDP), native (XDP BPF program is run directly out of the networking driver's early receive path), or best-effort (use native mode XDP acceleration on devices that support it). |
|
|
||||||
| loadBalancer.l7 | object | `{"algorithm":"round_robin","backend":"disabled","ports":[]}` | L7 LoadBalancer |
|
| loadBalancer.l7 | object | `{"algorithm":"round_robin","backend":"disabled","ports":[]}` | L7 LoadBalancer |
|
||||||
| loadBalancer.l7.algorithm | string | `"round_robin"` | Default LB algorithm The default LB algorithm to be used for services, which can be overridden by the service annotation (e.g. service.cilium.io/lb-l7-algorithm) Applicable values: round_robin, least_request, random |
|
| loadBalancer.l7.algorithm | string | `"round_robin"` | Default LB algorithm The default LB algorithm to be used for services, which can be overridden by the service annotation (e.g. service.cilium.io/lb-l7-algorithm) Applicable values: round_robin, least_request, random |
|
||||||
| loadBalancer.l7.backend | string | `"disabled"` | Enable L7 service load balancing via envoy proxy. The request to a k8s service, which has specific annotation e.g. service.cilium.io/lb-l7, will be forwarded to the local backend proxy to be load balanced to the service endpoints. Please refer to docs for supported annotations for more configuration. Applicable values: - envoy: Enable L7 load balancing via envoy proxy. This will automatically set enable-envoy-config as well. - disabled: Disable L7 load balancing by way of service annotation. |
|
| loadBalancer.l7.backend | string | `"disabled"` | Enable L7 service load balancing via envoy proxy. The request to a k8s service, which has specific annotation e.g. service.cilium.io/lb-l7, will be forwarded to the local backend proxy to be load balanced to the service endpoints. Please refer to docs for supported annotations for more configuration. Applicable values: - envoy: Enable L7 load balancing via envoy proxy. This will automatically set enable-envoy-config as well. - disabled: Disable L7 load balancing by way of service annotation. |
|
||||||
@@ -628,15 +583,13 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| name | string | `"cilium"` | Agent container name. |
|
| name | string | `"cilium"` | Agent container name. |
|
||||||
| nat46x64Gateway | object | `{"enabled":false}` | Configure standalone NAT46/NAT64 gateway |
|
| nat46x64Gateway | object | `{"enabled":false}` | Configure standalone NAT46/NAT64 gateway |
|
||||||
| nat46x64Gateway.enabled | bool | `false` | Enable RFC8215-prefixed translation |
|
| nat46x64Gateway.enabled | bool | `false` | Enable RFC8215-prefixed translation |
|
||||||
| nodePort | object | `{"autoProtectPortRange":true,"bindProtection":true,"enableHealthCheck":true,"enableHealthCheckLoadBalancerIP":false,"enabled":false}` | Configure N-S k8s service loadbalancing |
|
| nodePort | object | `{"autoProtectPortRange":true,"bindProtection":true,"enableHealthCheck":true,"enabled":false}` | Configure N-S k8s service loadbalancing |
|
||||||
| nodePort.autoProtectPortRange | bool | `true` | Append NodePort range to ip_local_reserved_ports if clash with ephemeral ports is detected. |
|
| nodePort.autoProtectPortRange | bool | `true` | Append NodePort range to ip_local_reserved_ports if clash with ephemeral ports is detected. |
|
||||||
| nodePort.bindProtection | bool | `true` | Set to true to prevent applications binding to service ports. |
|
| nodePort.bindProtection | bool | `true` | Set to true to prevent applications binding to service ports. |
|
||||||
| nodePort.enableHealthCheck | bool | `true` | Enable healthcheck nodePort server for NodePort services |
|
| nodePort.enableHealthCheck | bool | `true` | Enable healthcheck nodePort server for NodePort services |
|
||||||
| nodePort.enableHealthCheckLoadBalancerIP | bool | `false` | Enable access of the healthcheck nodePort on the LoadBalancerIP. Needs EnableHealthCheck to be enabled |
|
|
||||||
| nodePort.enabled | bool | `false` | Enable the Cilium NodePort service implementation. |
|
| nodePort.enabled | bool | `false` | Enable the Cilium NodePort service implementation. |
|
||||||
| nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Node selector for cilium-agent. |
|
| nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Node selector for cilium-agent. |
|
||||||
| nodeinit.affinity | object | `{}` | Affinity for cilium-nodeinit |
|
| nodeinit.affinity | object | `{}` | Affinity for cilium-nodeinit |
|
||||||
| nodeinit.annotations | object | `{}` | Annotations to be added to all top-level nodeinit objects (resources under templates/cilium-nodeinit) |
|
|
||||||
| nodeinit.bootstrapFile | string | `"/tmp/cilium-bootstrap.d/cilium-bootstrap-time"` | bootstrapFile is the location of the file where the bootstrap timestamp is written by the node-init DaemonSet |
|
| nodeinit.bootstrapFile | string | `"/tmp/cilium-bootstrap.d/cilium-bootstrap-time"` | bootstrapFile is the location of the file where the bootstrap timestamp is written by the node-init DaemonSet |
|
||||||
| nodeinit.enabled | bool | `false` | Enable the node initialization DaemonSet |
|
| nodeinit.enabled | bool | `false` | Enable the node initialization DaemonSet |
|
||||||
| nodeinit.extraEnv | list | `[]` | Additional nodeinit environment variables. |
|
| nodeinit.extraEnv | list | `[]` | Additional nodeinit environment variables. |
|
||||||
@@ -654,7 +607,6 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| nodeinit.tolerations | list | `[{"operator":"Exists"}]` | Node tolerations for nodeinit scheduling to nodes with taints ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
|
| nodeinit.tolerations | list | `[{"operator":"Exists"}]` | Node tolerations for nodeinit scheduling to nodes with taints ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
|
||||||
| nodeinit.updateStrategy | object | `{"type":"RollingUpdate"}` | node-init update strategy |
|
| nodeinit.updateStrategy | object | `{"type":"RollingUpdate"}` | node-init update strategy |
|
||||||
| operator.affinity | object | `{"podAntiAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchLabels":{"io.cilium/app":"operator"}},"topologyKey":"kubernetes.io/hostname"}]}}` | Affinity for cilium-operator |
|
| operator.affinity | object | `{"podAntiAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchLabels":{"io.cilium/app":"operator"}},"topologyKey":"kubernetes.io/hostname"}]}}` | Affinity for cilium-operator |
|
||||||
| operator.annotations | object | `{}` | Annotations to be added to all top-level cilium-operator objects (resources under templates/cilium-operator) |
|
|
||||||
| operator.dashboards | object | `{"annotations":{},"enabled":false,"label":"grafana_dashboard","labelValue":"1","namespace":null}` | Grafana dashboards for cilium-operator grafana can import dashboards based on the label and value ref: https://github.com/grafana/helm-charts/tree/main/charts/grafana#sidecar-for-dashboards |
|
| operator.dashboards | object | `{"annotations":{},"enabled":false,"label":"grafana_dashboard","labelValue":"1","namespace":null}` | Grafana dashboards for cilium-operator grafana can import dashboards based on the label and value ref: https://github.com/grafana/helm-charts/tree/main/charts/grafana#sidecar-for-dashboards |
|
||||||
| operator.dnsPolicy | string | `""` | DNS policy for Cilium operator pods. Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy |
|
| operator.dnsPolicy | string | `""` | DNS policy for Cilium operator pods. Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy |
|
||||||
| operator.enabled | bool | `true` | Enable the cilium-operator component (required). |
|
| operator.enabled | bool | `true` | Enable the cilium-operator component (required). |
|
||||||
@@ -666,7 +618,7 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| operator.extraVolumes | list | `[]` | Additional cilium-operator volumes. |
|
| operator.extraVolumes | list | `[]` | Additional cilium-operator volumes. |
|
||||||
| operator.identityGCInterval | string | `"15m0s"` | Interval for identity garbage collection. |
|
| operator.identityGCInterval | string | `"15m0s"` | Interval for identity garbage collection. |
|
||||||
| operator.identityHeartbeatTimeout | string | `"30m0s"` | Timeout for identity heartbeats. |
|
| operator.identityHeartbeatTimeout | string | `"30m0s"` | Timeout for identity heartbeats. |
|
||||||
| operator.image | object | `{"alibabacloudDigest":"sha256:e2dafa4c04ab05392a28561ab003c2894ec1fcc3214a4dfe2efd6b7d58a66650","awsDigest":"sha256:3f459999b753bfd8626f8effdf66720a996b2c15c70f4e418011d00de33552eb","azureDigest":"sha256:568293cebc27c01a39a9341b1b2578ebf445228df437f8b318adbbb2c4db842a","genericDigest":"sha256:4dd8f67630f45fcaf58145eb81780b677ef62d57632d7e4442905ad3226a9088","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/operator","suffix":"","tag":"v1.15.2","useDigest":true}` | cilium-operator image. |
|
| operator.image | object | `{"alibabacloudDigest":"sha256:e0152c498ba73c56a82eee2a706c8f400e9a6999c665af31a935bdf08e659bc3","awsDigest":"sha256:785ccf1267d0ed3ba9e4bd8166577cb4f9e4ce996af26b27c9d5c554a0d5b09a","azureDigest":"sha256:9203f5583aa34e716d7a6588ebd144e43ce3b77873f578fc12b2679e33591353","genericDigest":"sha256:303f9076bdc73b3fc32aaedee64a14f6f44c8bb08ee9e3956d443021103ebe7a","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/operator","suffix":"","tag":"v1.14.5","useDigest":true}` | cilium-operator image. |
|
||||||
| operator.nodeGCInterval | string | `"5m0s"` | Interval for cilium node garbage collection. |
|
| operator.nodeGCInterval | string | `"5m0s"` | Interval for cilium node garbage collection. |
|
||||||
| operator.nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Node labels for cilium-operator pod assignment ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector |
|
| operator.nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Node labels for cilium-operator pod assignment ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector |
|
||||||
| operator.podAnnotations | object | `{}` | Annotations to be added to cilium-operator pods |
|
| operator.podAnnotations | object | `{}` | Annotations to be added to cilium-operator pods |
|
||||||
@@ -679,11 +631,10 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| operator.pprof.enabled | bool | `false` | Enable pprof for cilium-operator |
|
| operator.pprof.enabled | bool | `false` | Enable pprof for cilium-operator |
|
||||||
| operator.pprof.port | int | `6061` | Configure pprof listen port for cilium-operator |
|
| operator.pprof.port | int | `6061` | Configure pprof listen port for cilium-operator |
|
||||||
| operator.priorityClassName | string | `""` | The priority class to use for cilium-operator |
|
| operator.priorityClassName | string | `""` | The priority class to use for cilium-operator |
|
||||||
| operator.prometheus | object | `{"enabled":true,"port":9963,"serviceMonitor":{"annotations":{},"enabled":false,"interval":"10s","jobLabel":"","labels":{},"metricRelabelings":null,"relabelings":null}}` | Enable prometheus metrics for cilium-operator on the configured port at /metrics |
|
| operator.prometheus | object | `{"enabled":false,"port":9963,"serviceMonitor":{"annotations":{},"enabled":false,"interval":"10s","labels":{},"metricRelabelings":null,"relabelings":null}}` | Enable prometheus metrics for cilium-operator on the configured port at /metrics |
|
||||||
| operator.prometheus.serviceMonitor.annotations | object | `{}` | Annotations to add to ServiceMonitor cilium-operator |
|
| operator.prometheus.serviceMonitor.annotations | object | `{}` | Annotations to add to ServiceMonitor cilium-operator |
|
||||||
| operator.prometheus.serviceMonitor.enabled | bool | `false` | Enable service monitors. This requires the prometheus CRDs to be available (see https://github.com/prometheus-operator/prometheus-operator/blob/main/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml) |
|
| operator.prometheus.serviceMonitor.enabled | bool | `false` | Enable service monitors. This requires the prometheus CRDs to be available (see https://github.com/prometheus-operator/prometheus-operator/blob/main/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml) |
|
||||||
| operator.prometheus.serviceMonitor.interval | string | `"10s"` | Interval for scrape metrics. |
|
| operator.prometheus.serviceMonitor.interval | string | `"10s"` | Interval for scrape metrics. |
|
||||||
| operator.prometheus.serviceMonitor.jobLabel | string | `""` | jobLabel to add for ServiceMonitor cilium-operator |
|
|
||||||
| operator.prometheus.serviceMonitor.labels | object | `{}` | Labels to add to ServiceMonitor cilium-operator |
|
| operator.prometheus.serviceMonitor.labels | object | `{}` | Labels to add to ServiceMonitor cilium-operator |
|
||||||
| operator.prometheus.serviceMonitor.metricRelabelings | string | `nil` | Metrics relabeling configs for the ServiceMonitor cilium-operator |
|
| operator.prometheus.serviceMonitor.metricRelabelings | string | `nil` | Metrics relabeling configs for the ServiceMonitor cilium-operator |
|
||||||
| operator.prometheus.serviceMonitor.relabelings | string | `nil` | Relabeling configs for the ServiceMonitor cilium-operator |
|
| operator.prometheus.serviceMonitor.relabelings | string | `nil` | Relabeling configs for the ServiceMonitor cilium-operator |
|
||||||
@@ -705,18 +656,16 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| podAnnotations | object | `{}` | Annotations to be added to agent pods |
|
| podAnnotations | object | `{}` | Annotations to be added to agent pods |
|
||||||
| podLabels | object | `{}` | Labels to be added to agent pods |
|
| podLabels | object | `{}` | Labels to be added to agent pods |
|
||||||
| podSecurityContext | object | `{}` | Security Context for cilium-agent pods. |
|
| podSecurityContext | object | `{}` | Security Context for cilium-agent pods. |
|
||||||
| policyCIDRMatchMode | string | `nil` | policyCIDRMatchMode is a list of entities that may be selected by CIDR selector. The possible value is "nodes". |
|
|
||||||
| policyEnforcementMode | string | `"default"` | The agent can be put into one of the three policy enforcement modes: default, always and never. ref: https://docs.cilium.io/en/stable/security/policy/intro/#policy-enforcement-modes |
|
| policyEnforcementMode | string | `"default"` | The agent can be put into one of the three policy enforcement modes: default, always and never. ref: https://docs.cilium.io/en/stable/security/policy/intro/#policy-enforcement-modes |
|
||||||
| pprof.address | string | `"localhost"` | Configure pprof listen address for cilium-agent |
|
| pprof.address | string | `"localhost"` | Configure pprof listen address for cilium-agent |
|
||||||
| pprof.enabled | bool | `false` | Enable pprof for cilium-agent |
|
| pprof.enabled | bool | `false` | Enable pprof for cilium-agent |
|
||||||
| pprof.port | int | `6060` | Configure pprof listen port for cilium-agent |
|
| pprof.port | int | `6060` | Configure pprof listen port for cilium-agent |
|
||||||
| preflight.affinity | object | `{"podAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchLabels":{"k8s-app":"cilium"}},"topologyKey":"kubernetes.io/hostname"}]}}` | Affinity for cilium-preflight |
|
| preflight.affinity | object | `{"podAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchLabels":{"k8s-app":"cilium"}},"topologyKey":"kubernetes.io/hostname"}]}}` | Affinity for cilium-preflight |
|
||||||
| preflight.annotations | object | `{}` | Annotations to be added to all top-level preflight objects (resources under templates/cilium-preflight) |
|
|
||||||
| preflight.enabled | bool | `false` | Enable Cilium pre-flight resources (required for upgrade) |
|
| preflight.enabled | bool | `false` | Enable Cilium pre-flight resources (required for upgrade) |
|
||||||
| preflight.extraEnv | list | `[]` | Additional preflight environment variables. |
|
| preflight.extraEnv | list | `[]` | Additional preflight environment variables. |
|
||||||
| preflight.extraVolumeMounts | list | `[]` | Additional preflight volumeMounts. |
|
| preflight.extraVolumeMounts | list | `[]` | Additional preflight volumeMounts. |
|
||||||
| preflight.extraVolumes | list | `[]` | Additional preflight volumes. |
|
| preflight.extraVolumes | list | `[]` | Additional preflight volumes. |
|
||||||
| preflight.image | object | `{"digest":"sha256:bfeb3f1034282444ae8c498dca94044df2b9c9c8e7ac678e0b43c849f0b31746","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/cilium","tag":"v1.15.2","useDigest":true}` | Cilium pre-flight image. |
|
| preflight.image | object | `{"digest":"sha256:d3b287029755b6a47dee01420e2ea469469f1b174a2089c10af7e5e9289ef05b","override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/cilium","tag":"v1.14.5","useDigest":true}` | Cilium pre-flight image. |
|
||||||
| preflight.nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Node labels for preflight pod assignment ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector |
|
| preflight.nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Node labels for preflight pod assignment ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector |
|
||||||
| preflight.podAnnotations | object | `{}` | Annotations to be added to preflight pods |
|
| preflight.podAnnotations | object | `{}` | Annotations to be added to preflight pods |
|
||||||
| preflight.podDisruptionBudget.enabled | bool | `false` | enable PodDisruptionBudget ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/ |
|
| preflight.podDisruptionBudget.enabled | bool | `false` | enable PodDisruptionBudget ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/ |
|
||||||
@@ -733,13 +682,11 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| preflight.updateStrategy | object | `{"type":"RollingUpdate"}` | preflight update strategy |
|
| preflight.updateStrategy | object | `{"type":"RollingUpdate"}` | preflight update strategy |
|
||||||
| preflight.validateCNPs | bool | `true` | By default we should always validate the installed CNPs before upgrading Cilium. This will make sure the user will have the policies deployed in the cluster with the right schema. |
|
| preflight.validateCNPs | bool | `true` | By default we should always validate the installed CNPs before upgrading Cilium. This will make sure the user will have the policies deployed in the cluster with the right schema. |
|
||||||
| priorityClassName | string | `""` | The priority class to use for cilium-agent. |
|
| priorityClassName | string | `""` | The priority class to use for cilium-agent. |
|
||||||
| prometheus | object | `{"controllerGroupMetrics":["write-cni-file","sync-host-ips","sync-lb-maps-with-k8s-services"],"enabled":false,"metrics":null,"port":9962,"serviceMonitor":{"annotations":{},"enabled":false,"interval":"10s","jobLabel":"","labels":{},"metricRelabelings":null,"relabelings":[{"replacement":"${1}","sourceLabels":["__meta_kubernetes_pod_node_name"],"targetLabel":"node"}],"trustCRDsExist":false}}` | Configure prometheus metrics on the configured port at /metrics |
|
| prometheus | object | `{"enabled":false,"metrics":null,"port":9962,"serviceMonitor":{"annotations":{},"enabled":false,"interval":"10s","labels":{},"metricRelabelings":null,"relabelings":[{"replacement":"${1}","sourceLabels":["__meta_kubernetes_pod_node_name"],"targetLabel":"node"}],"trustCRDsExist":false}}` | Configure prometheus metrics on the configured port at /metrics |
|
||||||
| prometheus.controllerGroupMetrics | list | `["write-cni-file","sync-host-ips","sync-lb-maps-with-k8s-services"]` | - Enable controller group metrics for monitoring specific Cilium subsystems. The list is a list of controller group names. The special values of "all" and "none" are supported. The set of controller group names is not guaranteed to be stable between Cilium versions. |
|
|
||||||
| prometheus.metrics | string | `nil` | Metrics that should be enabled or disabled from the default metric list. The list is expected to be separated by a space. (+metric_foo to enable metric_foo , -metric_bar to disable metric_bar). ref: https://docs.cilium.io/en/stable/observability/metrics/ |
|
| prometheus.metrics | string | `nil` | Metrics that should be enabled or disabled from the default metric list. The list is expected to be separated by a space. (+metric_foo to enable metric_foo , -metric_bar to disable metric_bar). ref: https://docs.cilium.io/en/stable/observability/metrics/ |
|
||||||
| prometheus.serviceMonitor.annotations | object | `{}` | Annotations to add to ServiceMonitor cilium-agent |
|
| prometheus.serviceMonitor.annotations | object | `{}` | Annotations to add to ServiceMonitor cilium-agent |
|
||||||
| prometheus.serviceMonitor.enabled | bool | `false` | Enable service monitors. This requires the prometheus CRDs to be available (see https://github.com/prometheus-operator/prometheus-operator/blob/main/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml) |
|
| prometheus.serviceMonitor.enabled | bool | `false` | Enable service monitors. This requires the prometheus CRDs to be available (see https://github.com/prometheus-operator/prometheus-operator/blob/main/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml) |
|
||||||
| prometheus.serviceMonitor.interval | string | `"10s"` | Interval for scrape metrics. |
|
| prometheus.serviceMonitor.interval | string | `"10s"` | Interval for scrape metrics. |
|
||||||
| prometheus.serviceMonitor.jobLabel | string | `""` | jobLabel to add for ServiceMonitor cilium-agent |
|
|
||||||
| prometheus.serviceMonitor.labels | object | `{}` | Labels to add to ServiceMonitor cilium-agent |
|
| prometheus.serviceMonitor.labels | object | `{}` | Labels to add to ServiceMonitor cilium-agent |
|
||||||
| prometheus.serviceMonitor.metricRelabelings | string | `nil` | Metrics relabeling configs for the ServiceMonitor cilium-agent |
|
| prometheus.serviceMonitor.metricRelabelings | string | `nil` | Metrics relabeling configs for the ServiceMonitor cilium-agent |
|
||||||
| prometheus.serviceMonitor.relabelings | list | `[{"replacement":"${1}","sourceLabels":["__meta_kubernetes_pod_node_name"],"targetLabel":"node"}]` | Relabeling configs for the ServiceMonitor cilium-agent |
|
| prometheus.serviceMonitor.relabelings | list | `[{"replacement":"${1}","sourceLabels":["__meta_kubernetes_pod_node_name"],"targetLabel":"node"}]` | Relabeling configs for the ServiceMonitor cilium-agent |
|
||||||
@@ -751,7 +698,7 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| rbac.create | bool | `true` | Enable creation of Resource-Based Access Control configuration. |
|
| rbac.create | bool | `true` | Enable creation of Resource-Based Access Control configuration. |
|
||||||
| readinessProbe.failureThreshold | int | `3` | failure threshold of readiness probe |
|
| readinessProbe.failureThreshold | int | `3` | failure threshold of readiness probe |
|
||||||
| readinessProbe.periodSeconds | int | `30` | interval between checks of the readiness probe |
|
| readinessProbe.periodSeconds | int | `30` | interval between checks of the readiness probe |
|
||||||
| remoteNodeIdentity | bool | `true` | Enable use of the remote node identity. ref: https://docs.cilium.io/en/v1.7/install/upgrade/#configmap-remote-node-identity Deprecated without replacement in 1.15. To be removed in 1.16. |
|
| remoteNodeIdentity | bool | `true` | Enable use of the remote node identity. ref: https://docs.cilium.io/en/v1.7/install/upgrade/#configmap-remote-node-identity |
|
||||||
| resourceQuotas | object | `{"cilium":{"hard":{"pods":"10k"}},"enabled":false,"operator":{"hard":{"pods":"15"}}}` | Enable resource quotas for priority classes used in the cluster. |
|
| resourceQuotas | object | `{"cilium":{"hard":{"pods":"10k"}},"enabled":false,"operator":{"hard":{"pods":"15"}}}` | Enable resource quotas for priority classes used in the cluster. |
|
||||||
| resources | object | `{}` | Agent resource limits & requests ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ |
|
| resources | object | `{}` | Agent resource limits & requests ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ |
|
||||||
| rollOutCiliumPods | bool | `false` | Roll out cilium agent pods automatically when configmap is updated. |
|
| rollOutCiliumPods | bool | `false` | Roll out cilium agent pods automatically when configmap is updated. |
|
||||||
@@ -768,7 +715,6 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| serviceAccounts.clustermeshcertgen | object | `{"annotations":{},"automount":true,"create":true,"name":"clustermesh-apiserver-generate-certs"}` | Clustermeshcertgen is used if clustermesh.apiserver.tls.auto.method=cronJob |
|
| serviceAccounts.clustermeshcertgen | object | `{"annotations":{},"automount":true,"create":true,"name":"clustermesh-apiserver-generate-certs"}` | Clustermeshcertgen is used if clustermesh.apiserver.tls.auto.method=cronJob |
|
||||||
| serviceAccounts.hubblecertgen | object | `{"annotations":{},"automount":true,"create":true,"name":"hubble-generate-certs"}` | Hubblecertgen is used if hubble.tls.auto.method=cronJob |
|
| serviceAccounts.hubblecertgen | object | `{"annotations":{},"automount":true,"create":true,"name":"hubble-generate-certs"}` | Hubblecertgen is used if hubble.tls.auto.method=cronJob |
|
||||||
| serviceAccounts.nodeinit.enabled | bool | `false` | Enabled is temporary until https://github.com/cilium/cilium-cli/issues/1396 is implemented. Cilium CLI doesn't create the SAs for node-init, thus the workaround. Helm is not affected by this issue. Name and automount can be configured, if enabled is set to true. Otherwise, they are ignored. Enabled can be removed once the issue is fixed. Cilium-nodeinit DS must also be fixed. |
|
| serviceAccounts.nodeinit.enabled | bool | `false` | Enabled is temporary until https://github.com/cilium/cilium-cli/issues/1396 is implemented. Cilium CLI doesn't create the SAs for node-init, thus the workaround. Helm is not affected by this issue. Name and automount can be configured, if enabled is set to true. Otherwise, they are ignored. Enabled can be removed once the issue is fixed. Cilium-nodeinit DS must also be fixed. |
|
||||||
| serviceNoBackendResponse | string | `"reject"` | Configure what the response should be to traffic for a service without backends. "reject" only works on kernels >= 5.10, on lower kernels we fallback to "drop". Possible values: - reject (default) - drop |
|
|
||||||
| sleepAfterInit | bool | `false` | Do not run Cilium agent when running with clean mode. Useful to completely uninstall Cilium as it will stop Cilium from starting and create artifacts in the node. |
|
| sleepAfterInit | bool | `false` | Do not run Cilium agent when running with clean mode. Useful to completely uninstall Cilium as it will stop Cilium from starting and create artifacts in the node. |
|
||||||
| socketLB | object | `{"enabled":false}` | Configure socket LB |
|
| socketLB | object | `{"enabled":false}` | Configure socket LB |
|
||||||
| socketLB.enabled | bool | `false` | Enable socket LB |
|
| socketLB.enabled | bool | `false` | Enable socket LB |
|
||||||
@@ -789,6 +735,7 @@ contributors across the globe, there is almost always someone available to help.
|
|||||||
| tls.caBundle.useSecret | bool | `false` | Use a Secret instead of a ConfigMap. |
|
| tls.caBundle.useSecret | bool | `false` | Use a Secret instead of a ConfigMap. |
|
||||||
| tls.secretsBackend | string | `"local"` | This configures how the Cilium agent loads the secrets used TLS-aware CiliumNetworkPolicies (namely the secrets referenced by terminatingTLS and originatingTLS). Possible values: - local - k8s |
|
| tls.secretsBackend | string | `"local"` | This configures how the Cilium agent loads the secrets used TLS-aware CiliumNetworkPolicies (namely the secrets referenced by terminatingTLS and originatingTLS). Possible values: - local - k8s |
|
||||||
| tolerations | list | `[{"operator":"Exists"}]` | Node tolerations for agent scheduling to nodes with taints ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
|
| tolerations | list | `[{"operator":"Exists"}]` | Node tolerations for agent scheduling to nodes with taints ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
|
||||||
|
| tunnel | string | `"vxlan"` | Configure the encapsulation configuration for communication between nodes. Deprecated in favor of tunnelProtocol and routingMode. To be removed in 1.15. Possible values: - disabled - vxlan - geneve |
|
||||||
| tunnelPort | int | Port 8472 for VXLAN, Port 6081 for Geneve | Configure VXLAN and Geneve tunnel port. |
|
| tunnelPort | int | Port 8472 for VXLAN, Port 6081 for Geneve | Configure VXLAN and Geneve tunnel port. |
|
||||||
| tunnelProtocol | string | `"vxlan"` | Tunneling protocol to use in tunneling mode and for ad-hoc tunnels. Possible values: - "" - vxlan - geneve |
|
| tunnelProtocol | string | `"vxlan"` | Tunneling protocol to use in tunneling mode and for ad-hoc tunnels. Possible values: - "" - vxlan - geneve |
|
||||||
| updateStrategy | object | `{"rollingUpdate":{"maxUnavailable":2},"type":"RollingUpdate"}` | Cilium agent update strategy |
|
| updateStrategy | object | `{"rollingUpdate":{"maxUnavailable":2},"type":"RollingUpdate"}` | Cilium agent update strategy |
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ set -o nounset
|
|||||||
# dependencies on anything that is part of the startup script
|
# dependencies on anything that is part of the startup script
|
||||||
# itself, and can be safely run multiple times per node (e.g. in
|
# itself, and can be safely run multiple times per node (e.g. in
|
||||||
# case of a restart).
|
# case of a restart).
|
||||||
if [[ "$(iptables-save | grep -E -c 'AWS-SNAT-CHAIN|AWS-CONNMARK-CHAIN')" != "0" ]];
|
if [[ "$(iptables-save | grep -c 'AWS-SNAT-CHAIN|AWS-CONNMARK-CHAIN')" != "0" ]];
|
||||||
then
|
then
|
||||||
echo 'Deleting iptables rules created by the AWS CNI VPC plugin'
|
echo 'Deleting iptables rules created by the AWS CNI VPC plugin'
|
||||||
iptables-save | grep -E -v 'AWS-SNAT-CHAIN|AWS-CONNMARK-CHAIN' | iptables-restore
|
iptables-save | grep -v 'AWS-SNAT-CHAIN|AWS-CONNMARK-CHAIN' | iptables-restore
|
||||||
fi
|
fi
|
||||||
echo 'Done!'
|
echo 'Done!'
|
||||||
|
|||||||
@@ -27,10 +27,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -134,10 +131,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -277,10 +271,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -403,10 +394,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -523,10 +511,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -651,10 +636,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"description": "BPF memory usage in the entire system including components not managed by Cilium.",
|
"description": "BPF memory usage in the entire system including components not managed by Cilium.",
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
@@ -777,10 +759,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"description": "Fill percentage of BPF maps, tagged by map name",
|
"description": "Fill percentage of BPF maps, tagged by map name",
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
@@ -891,10 +870,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -995,10 +971,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -1099,10 +1072,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -1203,10 +1173,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -1307,10 +1274,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -1411,10 +1375,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -1550,10 +1511,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -1654,10 +1612,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"decimals": 2,
|
"decimals": 2,
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
@@ -1760,10 +1715,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -1864,10 +1816,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -1966,10 +1915,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -2070,10 +2016,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -2174,10 +2117,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -2299,10 +2239,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"decimals": 2,
|
"decimals": 2,
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
@@ -2405,10 +2342,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"decimals": 2,
|
"decimals": 2,
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
@@ -2511,10 +2445,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -2615,10 +2546,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -2719,10 +2647,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -2842,10 +2767,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -2942,10 +2864,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -3065,10 +2984,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -3234,10 +3150,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -3403,10 +3316,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -3572,10 +3482,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -3726,10 +3633,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"decimals": null,
|
"decimals": null,
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
@@ -3836,10 +3740,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -3936,10 +3837,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -4036,10 +3934,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -4152,10 +4047,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -4255,10 +4147,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -4381,10 +4270,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -4484,10 +4370,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -4635,10 +4518,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -4758,10 +4638,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -4863,10 +4740,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -4990,10 +4864,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -5095,10 +4966,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -5234,10 +5102,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -5353,10 +5218,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -5465,10 +5327,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -5596,10 +5455,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -5735,10 +5591,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -5823,7 +5676,7 @@
|
|||||||
"refId": "C"
|
"refId": "C"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "sum(cilium_policy_change_total{k8s_app=\"cilium\", pod=~\"$pod\", outcome=\"fail\"}) by (pod)",
|
"expr": "sum(cilium_policy_change_total{k8s_app=\"cilium\", pod=~\"$pod\"}, outcome=\"fail\") by (pod)",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "policy change errors",
|
"legendFormat": "policy change errors",
|
||||||
@@ -5880,10 +5733,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -5991,10 +5841,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -6136,10 +5983,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"decimals": null,
|
"decimals": null,
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
@@ -6239,10 +6083,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"decimals": null,
|
"decimals": null,
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
@@ -6347,10 +6188,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -6460,10 +6298,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -6586,10 +6421,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -6710,10 +6542,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -6845,10 +6674,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -6949,10 +6775,7 @@
|
|||||||
"bars": false,
|
"bars": false,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -7053,10 +6876,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -7157,10 +6977,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -7261,10 +7078,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -7364,10 +7178,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -7466,10 +7277,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -7568,10 +7376,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -7670,10 +7475,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -7776,10 +7578,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -7882,10 +7681,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -7988,10 +7784,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -8090,10 +7883,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -8192,10 +7982,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -8294,10 +8081,7 @@
|
|||||||
"bars": true,
|
"bars": true,
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
"dashes": false,
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": {}
|
"custom": {}
|
||||||
@@ -8398,21 +8182,6 @@
|
|||||||
"tags": [],
|
"tags": [],
|
||||||
"templating": {
|
"templating": {
|
||||||
"list": [
|
"list": [
|
||||||
{
|
|
||||||
"current": {},
|
|
||||||
"hide": 0,
|
|
||||||
"includeAll": false,
|
|
||||||
"label": "Prometheus",
|
|
||||||
"multi": false,
|
|
||||||
"name": "DS_PROMETHEUS",
|
|
||||||
"options": [],
|
|
||||||
"query": "prometheus",
|
|
||||||
"queryValue": "",
|
|
||||||
"refresh": 1,
|
|
||||||
"regex": "",
|
|
||||||
"skipUrlSync": false,
|
|
||||||
"type": "datasource"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"allValue": "cilium.*",
|
"allValue": "cilium.*",
|
||||||
"current": {
|
"current": {
|
||||||
@@ -8420,10 +8189,7 @@
|
|||||||
"text": "All",
|
"text": "All",
|
||||||
"value": "$__all"
|
"value": "$__all"
|
||||||
},
|
},
|
||||||
"datasource": {
|
"datasource": "prometheus",
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"definition": "label_values(cilium_version, pod)",
|
"definition": "label_values(cilium_version, pod)",
|
||||||
"hide": 0,
|
"hide": 0,
|
||||||
"includeAll": true,
|
"includeAll": true,
|
||||||
|
|||||||
@@ -301,14 +301,6 @@
|
|||||||
"resourceApiVersion": "V3"
|
"resourceApiVersion": "V3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bootstrapExtensions": [
|
|
||||||
{
|
|
||||||
"name": "envoy.bootstrap.internal_listener",
|
|
||||||
"typed_config": {
|
|
||||||
"@type": "type.googleapis.com/envoy.extensions.bootstrap.internal_listener.v3.InternalListener"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"layeredRuntime": {
|
"layeredRuntime": {
|
||||||
"layers": [
|
"layers": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3226,7 +3226,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"timezone": "",
|
"timezone": "",
|
||||||
"title": "Hubble Metrics and Monitoring",
|
"title": "Hubble",
|
||||||
"uid": "5HftnJAWz",
|
"uid": "5HftnJAWz",
|
||||||
"version": 24
|
"version": 24
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,602 +0,0 @@
|
|||||||
{
|
|
||||||
"__inputs": [
|
|
||||||
{
|
|
||||||
"name": "DS_PROMETHEUS",
|
|
||||||
"label": "Prometheus",
|
|
||||||
"description": "",
|
|
||||||
"type": "datasource",
|
|
||||||
"pluginId": "prometheus",
|
|
||||||
"pluginName": "Prometheus"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"__elements": {},
|
|
||||||
"__requires": [
|
|
||||||
{
|
|
||||||
"type": "panel",
|
|
||||||
"id": "bargauge",
|
|
||||||
"name": "Bar gauge",
|
|
||||||
"version": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "grafana",
|
|
||||||
"id": "grafana",
|
|
||||||
"name": "Grafana",
|
|
||||||
"version": "9.4.7"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "datasource",
|
|
||||||
"id": "prometheus",
|
|
||||||
"name": "Prometheus",
|
|
||||||
"version": "1.0.0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "panel",
|
|
||||||
"id": "timeseries",
|
|
||||||
"name": "Time series",
|
|
||||||
"version": ""
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"annotations": {
|
|
||||||
"list": [
|
|
||||||
{
|
|
||||||
"builtIn": 1,
|
|
||||||
"datasource": {
|
|
||||||
"type": "datasource",
|
|
||||||
"uid": "grafana"
|
|
||||||
},
|
|
||||||
"enable": true,
|
|
||||||
"hide": true,
|
|
||||||
"iconColor": "rgba(0, 211, 255, 1)",
|
|
||||||
"name": "Annotations & Alerts",
|
|
||||||
"target": {
|
|
||||||
"limit": 100,
|
|
||||||
"matchAny": false,
|
|
||||||
"tags": [],
|
|
||||||
"type": "dashboard"
|
|
||||||
},
|
|
||||||
"type": "dashboard"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"description": "",
|
|
||||||
"editable": true,
|
|
||||||
"fiscalYearStartMonth": 0,
|
|
||||||
"gnetId": 16612,
|
|
||||||
"graphTooltip": 0,
|
|
||||||
"id": null,
|
|
||||||
"links": [
|
|
||||||
{
|
|
||||||
"asDropdown": true,
|
|
||||||
"icon": "external link",
|
|
||||||
"includeVars": true,
|
|
||||||
"keepTime": true,
|
|
||||||
"tags": [
|
|
||||||
"cilium-overview"
|
|
||||||
],
|
|
||||||
"targetBlank": false,
|
|
||||||
"title": "Cilium Overviews",
|
|
||||||
"tooltip": "",
|
|
||||||
"type": "dashboards",
|
|
||||||
"url": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"asDropdown": true,
|
|
||||||
"icon": "external link",
|
|
||||||
"includeVars": false,
|
|
||||||
"keepTime": true,
|
|
||||||
"tags": [
|
|
||||||
"hubble"
|
|
||||||
],
|
|
||||||
"targetBlank": false,
|
|
||||||
"title": "Hubble",
|
|
||||||
"tooltip": "",
|
|
||||||
"type": "dashboards",
|
|
||||||
"url": ""
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"liveNow": false,
|
|
||||||
"panels": [
|
|
||||||
{
|
|
||||||
"collapsed": false,
|
|
||||||
"gridPos": {
|
|
||||||
"h": 1,
|
|
||||||
"w": 24,
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"id": 2,
|
|
||||||
"panels": [],
|
|
||||||
"title": "DNS",
|
|
||||||
"type": "row"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"description": "",
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {
|
|
||||||
"color": {
|
|
||||||
"mode": "palette-classic"
|
|
||||||
},
|
|
||||||
"custom": {
|
|
||||||
"axisCenteredZero": false,
|
|
||||||
"axisColorMode": "text",
|
|
||||||
"axisLabel": "",
|
|
||||||
"axisPlacement": "auto",
|
|
||||||
"barAlignment": 0,
|
|
||||||
"drawStyle": "line",
|
|
||||||
"fillOpacity": 10,
|
|
||||||
"gradientMode": "none",
|
|
||||||
"hideFrom": {
|
|
||||||
"legend": false,
|
|
||||||
"tooltip": false,
|
|
||||||
"viz": false
|
|
||||||
},
|
|
||||||
"lineInterpolation": "linear",
|
|
||||||
"lineWidth": 1,
|
|
||||||
"pointSize": 5,
|
|
||||||
"scaleDistribution": {
|
|
||||||
"type": "linear"
|
|
||||||
},
|
|
||||||
"showPoints": "auto",
|
|
||||||
"spanNulls": false,
|
|
||||||
"stacking": {
|
|
||||||
"group": "A",
|
|
||||||
"mode": "normal"
|
|
||||||
},
|
|
||||||
"thresholdsStyle": {
|
|
||||||
"mode": "off"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mappings": [],
|
|
||||||
"min": 0,
|
|
||||||
"thresholds": {
|
|
||||||
"mode": "absolute",
|
|
||||||
"steps": [
|
|
||||||
{
|
|
||||||
"color": "green",
|
|
||||||
"value": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"color": "red",
|
|
||||||
"value": 80
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"unit": "reqps"
|
|
||||||
},
|
|
||||||
"overrides": []
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"h": 9,
|
|
||||||
"w": 12,
|
|
||||||
"x": 0,
|
|
||||||
"y": 1
|
|
||||||
},
|
|
||||||
"id": 37,
|
|
||||||
"options": {
|
|
||||||
"legend": {
|
|
||||||
"calcs": [
|
|
||||||
"mean",
|
|
||||||
"lastNotNull"
|
|
||||||
],
|
|
||||||
"displayMode": "table",
|
|
||||||
"placement": "bottom",
|
|
||||||
"showLegend": true
|
|
||||||
},
|
|
||||||
"tooltip": {
|
|
||||||
"mode": "single",
|
|
||||||
"sort": "none"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"editorMode": "code",
|
|
||||||
"expr": "sum(rate(hubble_dns_queries_total{cluster=~\"$cluster\", source_namespace=~\"$source_namespace\", destination_namespace=~\"$destination_namespace\"}[$__rate_interval])) by (source) > 0",
|
|
||||||
"legendFormat": "{{source}}",
|
|
||||||
"range": true,
|
|
||||||
"refId": "A"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"title": "DNS queries",
|
|
||||||
"type": "timeseries"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {
|
|
||||||
"color": {
|
|
||||||
"mode": "thresholds"
|
|
||||||
},
|
|
||||||
"mappings": [],
|
|
||||||
"min": 0,
|
|
||||||
"thresholds": {
|
|
||||||
"mode": "absolute",
|
|
||||||
"steps": [
|
|
||||||
{
|
|
||||||
"color": "green",
|
|
||||||
"value": null
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"unit": "reqps"
|
|
||||||
},
|
|
||||||
"overrides": []
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"h": 9,
|
|
||||||
"w": 12,
|
|
||||||
"x": 12,
|
|
||||||
"y": 1
|
|
||||||
},
|
|
||||||
"id": 41,
|
|
||||||
"options": {
|
|
||||||
"displayMode": "gradient",
|
|
||||||
"minVizHeight": 10,
|
|
||||||
"minVizWidth": 0,
|
|
||||||
"orientation": "horizontal",
|
|
||||||
"reduceOptions": {
|
|
||||||
"calcs": [
|
|
||||||
"lastNotNull"
|
|
||||||
],
|
|
||||||
"fields": "",
|
|
||||||
"values": false
|
|
||||||
},
|
|
||||||
"showUnfilled": true
|
|
||||||
},
|
|
||||||
"pluginVersion": "9.4.7",
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"editorMode": "code",
|
|
||||||
"expr": "topk(10, sum(rate(hubble_dns_queries_total{cluster=~\"$cluster\", source_namespace=~\"$source_namespace\", destination_namespace=~\"$destination_namespace\"}[$__rate_interval])*60) by (query))",
|
|
||||||
"legendFormat": "{{query}}",
|
|
||||||
"range": true,
|
|
||||||
"refId": "A"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"title": "Top 10 DNS queries",
|
|
||||||
"type": "bargauge"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {
|
|
||||||
"color": {
|
|
||||||
"mode": "palette-classic"
|
|
||||||
},
|
|
||||||
"custom": {
|
|
||||||
"axisCenteredZero": false,
|
|
||||||
"axisColorMode": "text",
|
|
||||||
"axisLabel": "",
|
|
||||||
"axisPlacement": "auto",
|
|
||||||
"barAlignment": 0,
|
|
||||||
"drawStyle": "line",
|
|
||||||
"fillOpacity": 10,
|
|
||||||
"gradientMode": "none",
|
|
||||||
"hideFrom": {
|
|
||||||
"legend": false,
|
|
||||||
"tooltip": false,
|
|
||||||
"viz": false
|
|
||||||
},
|
|
||||||
"lineInterpolation": "linear",
|
|
||||||
"lineWidth": 1,
|
|
||||||
"pointSize": 5,
|
|
||||||
"scaleDistribution": {
|
|
||||||
"type": "linear"
|
|
||||||
},
|
|
||||||
"showPoints": "auto",
|
|
||||||
"spanNulls": false,
|
|
||||||
"stacking": {
|
|
||||||
"group": "A",
|
|
||||||
"mode": "normal"
|
|
||||||
},
|
|
||||||
"thresholdsStyle": {
|
|
||||||
"mode": "off"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mappings": [],
|
|
||||||
"min": 0,
|
|
||||||
"thresholds": {
|
|
||||||
"mode": "absolute",
|
|
||||||
"steps": [
|
|
||||||
{
|
|
||||||
"color": "green",
|
|
||||||
"value": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"color": "red",
|
|
||||||
"value": 80
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"unit": "reqps"
|
|
||||||
},
|
|
||||||
"overrides": []
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"h": 9,
|
|
||||||
"w": 12,
|
|
||||||
"x": 0,
|
|
||||||
"y": 10
|
|
||||||
},
|
|
||||||
"id": 39,
|
|
||||||
"options": {
|
|
||||||
"legend": {
|
|
||||||
"calcs": [
|
|
||||||
"mean",
|
|
||||||
"lastNotNull"
|
|
||||||
],
|
|
||||||
"displayMode": "table",
|
|
||||||
"placement": "bottom",
|
|
||||||
"showLegend": true
|
|
||||||
},
|
|
||||||
"tooltip": {
|
|
||||||
"mode": "single",
|
|
||||||
"sort": "none"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"editorMode": "code",
|
|
||||||
"expr": "round(sum(rate(hubble_dns_queries_total{cluster=~\"$cluster\", source_namespace=~\"$source_namespace\", destination_namespace=~\"$destination_namespace\"}[$__rate_interval])) by (source) - sum(label_replace(sum(rate(hubble_dns_responses_total{cluster=~\"$cluster\", source_namespace=~\"$destination_namespace\", destination_namespace=~\"$source_namespace\"}[$__rate_interval])) by (destination), \"source\", \"$1\", \"destination\", \"(.*)\")) without (destination), 0.001) > 0",
|
|
||||||
"legendFormat": "{{source}}",
|
|
||||||
"range": true,
|
|
||||||
"refId": "A"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"title": "Missing DNS responses",
|
|
||||||
"type": "timeseries"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {
|
|
||||||
"color": {
|
|
||||||
"mode": "palette-classic"
|
|
||||||
},
|
|
||||||
"custom": {
|
|
||||||
"axisCenteredZero": false,
|
|
||||||
"axisColorMode": "text",
|
|
||||||
"axisLabel": "",
|
|
||||||
"axisPlacement": "auto",
|
|
||||||
"barAlignment": 0,
|
|
||||||
"drawStyle": "line",
|
|
||||||
"fillOpacity": 10,
|
|
||||||
"gradientMode": "none",
|
|
||||||
"hideFrom": {
|
|
||||||
"legend": false,
|
|
||||||
"tooltip": false,
|
|
||||||
"viz": false
|
|
||||||
},
|
|
||||||
"lineInterpolation": "linear",
|
|
||||||
"lineWidth": 1,
|
|
||||||
"pointSize": 5,
|
|
||||||
"scaleDistribution": {
|
|
||||||
"type": "linear"
|
|
||||||
},
|
|
||||||
"showPoints": "auto",
|
|
||||||
"spanNulls": false,
|
|
||||||
"stacking": {
|
|
||||||
"group": "A",
|
|
||||||
"mode": "normal"
|
|
||||||
},
|
|
||||||
"thresholdsStyle": {
|
|
||||||
"mode": "off"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mappings": [],
|
|
||||||
"min": 0,
|
|
||||||
"thresholds": {
|
|
||||||
"mode": "absolute",
|
|
||||||
"steps": [
|
|
||||||
{
|
|
||||||
"color": "green",
|
|
||||||
"value": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"color": "red",
|
|
||||||
"value": 80
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"unit": "reqps"
|
|
||||||
},
|
|
||||||
"overrides": []
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"h": 9,
|
|
||||||
"w": 12,
|
|
||||||
"x": 12,
|
|
||||||
"y": 10
|
|
||||||
},
|
|
||||||
"id": 43,
|
|
||||||
"options": {
|
|
||||||
"legend": {
|
|
||||||
"calcs": [
|
|
||||||
"mean",
|
|
||||||
"lastNotNull"
|
|
||||||
],
|
|
||||||
"displayMode": "table",
|
|
||||||
"placement": "bottom",
|
|
||||||
"showLegend": true
|
|
||||||
},
|
|
||||||
"tooltip": {
|
|
||||||
"mode": "single",
|
|
||||||
"sort": "none"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"editorMode": "code",
|
|
||||||
"expr": "sum(rate(hubble_dns_responses_total{cluster=~\"$cluster\", source_namespace=~\"$destination_namespace\", destination_namespace=~\"$source_namespace\", rcode!=\"No Error\"}[$__rate_interval])) by (destination, rcode) > 0",
|
|
||||||
"legendFormat": "{{destination}}: {{rcode}}",
|
|
||||||
"range": true,
|
|
||||||
"refId": "A"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"title": "DNS errors",
|
|
||||||
"type": "timeseries"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"refresh": "",
|
|
||||||
"revision": 1,
|
|
||||||
"schemaVersion": 38,
|
|
||||||
"style": "dark",
|
|
||||||
"tags": [
|
|
||||||
"kubecon-demo"
|
|
||||||
],
|
|
||||||
"templating": {
|
|
||||||
"list": [
|
|
||||||
{
|
|
||||||
"current": {
|
|
||||||
"selected": false,
|
|
||||||
"text": "default",
|
|
||||||
"value": "default"
|
|
||||||
},
|
|
||||||
"hide": 0,
|
|
||||||
"includeAll": false,
|
|
||||||
"label": "Data Source",
|
|
||||||
"multi": false,
|
|
||||||
"name": "prometheus_datasource",
|
|
||||||
"options": [],
|
|
||||||
"query": "prometheus",
|
|
||||||
"queryValue": "",
|
|
||||||
"refresh": 1,
|
|
||||||
"regex": "(?!grafanacloud-usage|grafanacloud-ml-metrics).+",
|
|
||||||
"skipUrlSync": false,
|
|
||||||
"type": "datasource"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"current": {},
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"definition": "label_values(cilium_version, cluster)",
|
|
||||||
"hide": 0,
|
|
||||||
"includeAll": true,
|
|
||||||
"multi": true,
|
|
||||||
"name": "cluster",
|
|
||||||
"options": [],
|
|
||||||
"query": {
|
|
||||||
"query": "label_values(cilium_version, cluster)",
|
|
||||||
"refId": "StandardVariableQuery"
|
|
||||||
},
|
|
||||||
"refresh": 1,
|
|
||||||
"regex": "",
|
|
||||||
"skipUrlSync": false,
|
|
||||||
"sort": 0,
|
|
||||||
"type": "query"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"allValue": ".*",
|
|
||||||
"current": {},
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"definition": "label_values(source_namespace)",
|
|
||||||
"hide": 0,
|
|
||||||
"includeAll": true,
|
|
||||||
"label": "Source Namespace",
|
|
||||||
"multi": true,
|
|
||||||
"name": "source_namespace",
|
|
||||||
"options": [],
|
|
||||||
"query": {
|
|
||||||
"query": "label_values(source_namespace)",
|
|
||||||
"refId": "StandardVariableQuery"
|
|
||||||
},
|
|
||||||
"refresh": 1,
|
|
||||||
"regex": "",
|
|
||||||
"skipUrlSync": false,
|
|
||||||
"sort": 0,
|
|
||||||
"type": "query"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"allValue": ".*",
|
|
||||||
"current": {},
|
|
||||||
"datasource": {
|
|
||||||
"type": "prometheus",
|
|
||||||
"uid": "${DS_PROMETHEUS}"
|
|
||||||
},
|
|
||||||
"definition": "label_values(destination_namespace)",
|
|
||||||
"hide": 0,
|
|
||||||
"includeAll": true,
|
|
||||||
"label": "Destination Namespace",
|
|
||||||
"multi": true,
|
|
||||||
"name": "destination_namespace",
|
|
||||||
"options": [],
|
|
||||||
"query": {
|
|
||||||
"query": "label_values(destination_namespace)",
|
|
||||||
"refId": "StandardVariableQuery"
|
|
||||||
},
|
|
||||||
"refresh": 1,
|
|
||||||
"regex": "",
|
|
||||||
"skipUrlSync": false,
|
|
||||||
"sort": 0,
|
|
||||||
"type": "query"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"time": {
|
|
||||||
"from": "now-1h",
|
|
||||||
"to": "now"
|
|
||||||
},
|
|
||||||
"timepicker": {
|
|
||||||
"refresh_intervals": [
|
|
||||||
"10s",
|
|
||||||
"30s",
|
|
||||||
"1m",
|
|
||||||
"5m",
|
|
||||||
"15m",
|
|
||||||
"30m",
|
|
||||||
"1h",
|
|
||||||
"2h",
|
|
||||||
"1d"
|
|
||||||
],
|
|
||||||
"time_options": [
|
|
||||||
"5m",
|
|
||||||
"15m",
|
|
||||||
"1h",
|
|
||||||
"6h",
|
|
||||||
"12h",
|
|
||||||
"24h",
|
|
||||||
"2d",
|
|
||||||
"7d",
|
|
||||||
"30d"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"timezone": "",
|
|
||||||
"title": "Hubble / DNS Overview (Namespace)",
|
|
||||||
"uid": "_f0DUpY4k",
|
|
||||||
"version": 26,
|
|
||||||
"weekStart": ""
|
|
||||||
}
|
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -100,7 +100,7 @@ then
|
|||||||
# Since that version containerd no longer allows missing configuration for the CNI,
|
# Since that version containerd no longer allows missing configuration for the CNI,
|
||||||
# not even for pods with hostNetwork set to true. Thus, we add a temporary one.
|
# not even for pods with hostNetwork set to true. Thus, we add a temporary one.
|
||||||
# This will be replaced with the real config by the agent pod.
|
# This will be replaced with the real config by the agent pod.
|
||||||
echo -e '{\n\t"cniVersion": "0.3.1",\n\t"name": "cilium",\n\t"type": "cilium-cni"\n}' > /etc/cni/net.d/05-cilium.conf
|
echo -e "{\n\t"cniVersion": "0.3.1",\n\t"name": "cilium",\n\t"type": "cilium-cni"\n}" > /etc/cni/net.d/05-cilium.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start containerd. It won't create it's CNI configuration file anymore.
|
# Start containerd. It won't create it's CNI configuration file anymore.
|
||||||
|
|||||||
@@ -6,10 +6,6 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: cilium
|
name: cilium
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
rules:
|
rules:
|
||||||
@@ -86,9 +82,6 @@ rules:
|
|||||||
resources:
|
resources:
|
||||||
- ciliumloadbalancerippools
|
- ciliumloadbalancerippools
|
||||||
- ciliumbgppeeringpolicies
|
- ciliumbgppeeringpolicies
|
||||||
- ciliumbgpnodeconfigs
|
|
||||||
- ciliumbgpadvertisements
|
|
||||||
- ciliumbgppeerconfigs
|
|
||||||
- ciliumclusterwideenvoyconfigs
|
- ciliumclusterwideenvoyconfigs
|
||||||
- ciliumclusterwidenetworkpolicies
|
- ciliumclusterwidenetworkpolicies
|
||||||
- ciliumegressgatewaypolicies
|
- ciliumegressgatewaypolicies
|
||||||
@@ -144,7 +137,6 @@ rules:
|
|||||||
- ciliumendpoints/status
|
- ciliumendpoints/status
|
||||||
- ciliumendpoints
|
- ciliumendpoints
|
||||||
- ciliuml2announcementpolicies/status
|
- ciliuml2announcementpolicies/status
|
||||||
- ciliumbgpnodeconfigs/status
|
|
||||||
verbs:
|
verbs:
|
||||||
- patch
|
- patch
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -3,10 +3,6 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: cilium
|
name: cilium
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
roleRef:
|
roleRef:
|
||||||
|
|||||||
@@ -16,10 +16,6 @@ kind: DaemonSet
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium
|
name: cilium
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
k8s-app: cilium
|
k8s-app: cilium
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
@@ -132,7 +128,6 @@ spec:
|
|||||||
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
|
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
|
||||||
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
|
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
initialDelaySeconds: 5
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
{{- if or .Values.keepDeprecatedProbes $defaultKeepDeprecatedProbes }}
|
{{- if or .Values.keepDeprecatedProbes $defaultKeepDeprecatedProbes }}
|
||||||
@@ -201,11 +196,6 @@ spec:
|
|||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: CILIUM_CLUSTERMESH_CONFIG
|
- name: CILIUM_CLUSTERMESH_CONFIG
|
||||||
value: /var/lib/cilium/clustermesh/
|
value: /var/lib/cilium/clustermesh/
|
||||||
- name: GOMEMLIMIT
|
|
||||||
valueFrom:
|
|
||||||
resourceFieldRef:
|
|
||||||
resource: limits.memory
|
|
||||||
divisor: '1'
|
|
||||||
{{- if .Values.k8sServiceHost }}
|
{{- if .Values.k8sServiceHost }}
|
||||||
- name: KUBERNETES_SERVICE_HOST
|
- name: KUBERNETES_SERVICE_HOST
|
||||||
value: {{ .Values.k8sServiceHost | quote }}
|
value: {{ .Values.k8sServiceHost | quote }}
|
||||||
@@ -381,11 +371,6 @@ spec:
|
|||||||
mountPropagation: {{ .mountPropagation }}
|
mountPropagation: {{ .mountPropagation }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.hubble.export.dynamic.enabled }}
|
|
||||||
- name: hubble-flowlog-config
|
|
||||||
mountPath: /flowlog-config
|
|
||||||
readOnly: true
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.extraVolumeMounts }}
|
{{- with .Values.extraVolumeMounts }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -402,7 +387,7 @@ spec:
|
|||||||
for i in {1..5}; do \
|
for i in {1..5}; do \
|
||||||
[ -S /var/run/cilium/monitor1_2.sock ] && break || sleep 10;\
|
[ -S /var/run/cilium/monitor1_2.sock ] && break || sleep 10;\
|
||||||
done; \
|
done; \
|
||||||
cilium-dbg monitor
|
cilium monitor
|
||||||
{{- range $type := .Values.monitor.eventTypes -}}
|
{{- range $type := .Values.monitor.eventTypes -}}
|
||||||
{{ " " }}--type={{ $type }}
|
{{ " " }}--type={{ $type }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -426,7 +411,7 @@ spec:
|
|||||||
image: {{ include "cilium.image" .Values.image | quote }}
|
image: {{ include "cilium.image" .Values.image | quote }}
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- cilium-dbg
|
- cilium
|
||||||
- build-config
|
- build-config
|
||||||
{{- if (not (kindIs "invalid" .Values.daemon.configSources)) }}
|
{{- if (not (kindIs "invalid" .Values.daemon.configSources)) }}
|
||||||
- "--source={{.Values.daemon.configSources}}"
|
- "--source={{.Values.daemon.configSources}}"
|
||||||
@@ -462,9 +447,6 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: tmp
|
- name: tmp
|
||||||
mountPath: /tmp
|
mountPath: /tmp
|
||||||
{{- with .Values.extraVolumeMounts }}
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
terminationMessagePolicy: FallbackToLogsOnError
|
terminationMessagePolicy: FallbackToLogsOnError
|
||||||
{{- if .Values.cgroup.autoMount.enabled }}
|
{{- if .Values.cgroup.autoMount.enabled }}
|
||||||
# Required to mount cgroup2 filesystem on the underlying Kubernetes node.
|
# Required to mount cgroup2 filesystem on the underlying Kubernetes node.
|
||||||
@@ -627,12 +609,6 @@ spec:
|
|||||||
name: cilium-config
|
name: cilium-config
|
||||||
key: clean-cilium-bpf-state
|
key: clean-cilium-bpf-state
|
||||||
optional: true
|
optional: true
|
||||||
- name: WRITE_CNI_CONF_WHEN_READY
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: cilium-config
|
|
||||||
key: write-cni-conf-when-ready
|
|
||||||
optional: true
|
|
||||||
{{- if .Values.k8sServiceHost }}
|
{{- if .Values.k8sServiceHost }}
|
||||||
- name: KUBERNETES_SERVICE_HOST
|
- name: KUBERNETES_SERVICE_HOST
|
||||||
value: {{ .Values.k8sServiceHost | quote }}
|
value: {{ .Values.k8sServiceHost | quote }}
|
||||||
@@ -680,7 +656,7 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
{{- toYaml . | trim | nindent 10 }}
|
{{- toYaml . | trim | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and .Values.waitForKubeProxy (and (ne $kubeProxyReplacement "strict") (ne $kubeProxyReplacement "true")) }}
|
{{- if and .Values.waitForKubeProxy (ne $kubeProxyReplacement "strict") }}
|
||||||
- name: wait-for-kube-proxy
|
- name: wait-for-kube-proxy
|
||||||
image: {{ include "cilium.image" .Values.image | quote }}
|
image: {{ include "cilium.image" .Values.image | quote }}
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
@@ -724,10 +700,10 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- "/install-plugin.sh"
|
- "/install-plugin.sh"
|
||||||
{{- with .Values.cni.resources }}
|
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml . | trim | nindent 10 }}
|
requests:
|
||||||
{{- end }}
|
cpu: 100m
|
||||||
|
memory: 10Mi
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- if .Values.securityContext.privileged }}
|
{{- if .Values.securityContext.privileged }}
|
||||||
privileged: true
|
privileged: true
|
||||||
@@ -771,7 +747,7 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | trim | nindent 8 }}
|
{{- toYaml . | trim | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and .Values.clustermesh.config.enabled (not (and .Values.clustermesh.useAPIServer .Values.clustermesh.apiserver.kvstoremesh.enabled )) }}
|
{{- if and .Values.clustermesh.useAPIServer .Values.clustermesh.config.enabled (not .Values.clustermesh.apiserver.kvstoremesh.enabled) }}
|
||||||
hostAliases:
|
hostAliases:
|
||||||
{{- range $cluster := .Values.clustermesh.config.clusters }}
|
{{- range $cluster := .Values.clustermesh.config.clusters }}
|
||||||
{{- range $ip := $cluster.ips }}
|
{{- range $ip := $cluster.ips }}
|
||||||
@@ -965,12 +941,6 @@ spec:
|
|||||||
path: client-ca.crt
|
path: client-ca.crt
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.hubble.export.dynamic.enabled }}
|
|
||||||
- name: hubble-flowlog-config
|
|
||||||
configMap:
|
|
||||||
name: {{ .Values.hubble.export.dynamic.config.configMapName }}
|
|
||||||
optional: true
|
|
||||||
{{- end }}
|
|
||||||
{{- range .Values.extraHostPathMounts }}
|
{{- range .Values.extraHostPathMounts }}
|
||||||
- name: {{ .name }}
|
- name: {{ .name }}
|
||||||
hostPath:
|
hostPath:
|
||||||
|
|||||||
@@ -1,981 +0,0 @@
|
|||||||
{{- if and .Values.agent (not .Values.preflight.enabled) }}
|
|
||||||
|
|
||||||
{{- /* Default values with backwards compatibility */ -}}
|
|
||||||
{{- $defaultKeepDeprecatedProbes := true -}}
|
|
||||||
|
|
||||||
{{- /* Default values when 1.8 was initially deployed */ -}}
|
|
||||||
{{- if semverCompare ">=1.8" (default "1.8" .Values.upgradeCompatibility) -}}
|
|
||||||
{{- $defaultKeepDeprecatedProbes = false -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{- $kubeProxyReplacement := (coalesce .Values.kubeProxyReplacement "false") -}}
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: DaemonSet
|
|
||||||
metadata:
|
|
||||||
name: cilium
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
|
||||||
k8s-app: cilium
|
|
||||||
app.kubernetes.io/part-of: cilium
|
|
||||||
app.kubernetes.io/name: cilium-agent
|
|
||||||
{{- if .Values.keepDeprecatedLabels }}
|
|
||||||
kubernetes.io/cluster-service: "true"
|
|
||||||
{{- if and .Values.gke.enabled (eq .Release.Namespace "kube-system" ) }}
|
|
||||||
{{- fail "Invalid configuration: Installing Cilium on GKE with 'kubernetes.io/cluster-service' labels on 'kube-system' namespace causes Cilium DaemonSet to be removed by GKE. Either install Cilium on a different Namespace or install with '--set keepDeprecatedLabels=false'" }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
k8s-app: cilium
|
|
||||||
{{- if .Values.keepDeprecatedLabels }}
|
|
||||||
kubernetes.io/cluster-service: "true"
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.updateStrategy }}
|
|
||||||
updateStrategy:
|
|
||||||
{{- toYaml . | trim | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
{{- if and .Values.prometheus.enabled (not .Values.prometheus.serviceMonitor.enabled) }}
|
|
||||||
prometheus.io/port: "{{ .Values.prometheus.port }}"
|
|
||||||
prometheus.io/scrape: "true"
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.rollOutCiliumPods }}
|
|
||||||
# ensure pods roll when configmap updates
|
|
||||||
cilium.io/cilium-configmap-checksum: {{ include (print $.Template.BasePath "/cilium-configmap.yaml") . | sha256sum | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if not .Values.securityContext.privileged }}
|
|
||||||
# Set app AppArmor's profile to "unconfined". The value of this annotation
|
|
||||||
# can be modified as long users know which profiles they have available
|
|
||||||
# in AppArmor.
|
|
||||||
container.apparmor.security.beta.kubernetes.io/cilium-agent: "unconfined"
|
|
||||||
container.apparmor.security.beta.kubernetes.io/clean-cilium-state: "unconfined"
|
|
||||||
{{- if .Values.cgroup.autoMount.enabled }}
|
|
||||||
container.apparmor.security.beta.kubernetes.io/mount-cgroup: "unconfined"
|
|
||||||
container.apparmor.security.beta.kubernetes.io/apply-sysctl-overwrites: "unconfined"
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.podAnnotations }}
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
|
||||||
k8s-app: cilium
|
|
||||||
app.kubernetes.io/name: cilium-agent
|
|
||||||
app.kubernetes.io/part-of: cilium
|
|
||||||
{{- if .Values.keepDeprecatedLabels }}
|
|
||||||
kubernetes.io/cluster-service: "true"
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.podLabels }}
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
|
||||||
{{- with .Values.imagePullSecrets }}
|
|
||||||
imagePullSecrets:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.podSecurityContext }}
|
|
||||||
securityContext:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
containers:
|
|
||||||
- name: cilium-agent
|
|
||||||
image: {{ include "cilium.image" .Values.image | quote }}
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
{{- if .Values.sleepAfterInit }}
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
- -c
|
|
||||||
- --
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
while true; do
|
|
||||||
sleep 30;
|
|
||||||
done
|
|
||||||
livenessProbe:
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- "true"
|
|
||||||
readinessProbe:
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- "true"
|
|
||||||
{{- else }}
|
|
||||||
command:
|
|
||||||
- cilium-agent
|
|
||||||
args:
|
|
||||||
- --config-dir=/tmp/cilium/config-map
|
|
||||||
{{- with .Values.extraArgs }}
|
|
||||||
{{- toYaml . | trim | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if semverCompare ">=1.20-0" .Capabilities.KubeVersion.Version }}
|
|
||||||
startupProbe:
|
|
||||||
httpGet:
|
|
||||||
host: {{ .Values.ipv4.enabled | ternary "127.0.0.1" "::1" | quote }}
|
|
||||||
path: /healthz
|
|
||||||
port: {{ .Values.healthPort }}
|
|
||||||
scheme: HTTP
|
|
||||||
httpHeaders:
|
|
||||||
- name: "brief"
|
|
||||||
value: "true"
|
|
||||||
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
|
|
||||||
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
|
|
||||||
successThreshold: 1
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
{{- end }}
|
|
||||||
livenessProbe:
|
|
||||||
{{- if or .Values.keepDeprecatedProbes $defaultKeepDeprecatedProbes }}
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- cilium
|
|
||||||
- status
|
|
||||||
- --brief
|
|
||||||
{{- else }}
|
|
||||||
httpGet:
|
|
||||||
host: {{ .Values.ipv4.enabled | ternary "127.0.0.1" "::1" | quote }}
|
|
||||||
path: /healthz
|
|
||||||
port: {{ .Values.healthPort }}
|
|
||||||
scheme: HTTP
|
|
||||||
httpHeaders:
|
|
||||||
- name: "brief"
|
|
||||||
value: "true"
|
|
||||||
{{- end }}
|
|
||||||
{{- if semverCompare "<1.20-0" .Capabilities.KubeVersion.Version }}
|
|
||||||
# The initial delay for the liveness probe is intentionally large to
|
|
||||||
# avoid an endless kill & restart cycle if in the event that the initial
|
|
||||||
# bootstrapping takes longer than expected.
|
|
||||||
# Starting from Kubernetes 1.20, we are using startupProbe instead
|
|
||||||
# of this field.
|
|
||||||
initialDelaySeconds: 120
|
|
||||||
{{- end }}
|
|
||||||
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
|
|
||||||
timeoutSeconds: 5
|
|
||||||
readinessProbe:
|
|
||||||
{{- if or .Values.keepDeprecatedProbes $defaultKeepDeprecatedProbes }}
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- cilium
|
|
||||||
- status
|
|
||||||
- --brief
|
|
||||||
{{- else }}
|
|
||||||
httpGet:
|
|
||||||
host: {{ .Values.ipv4.enabled | ternary "127.0.0.1" "::1" | quote }}
|
|
||||||
path: /healthz
|
|
||||||
port: {{ .Values.healthPort }}
|
|
||||||
scheme: HTTP
|
|
||||||
httpHeaders:
|
|
||||||
- name: "brief"
|
|
||||||
value: "true"
|
|
||||||
{{- end }}
|
|
||||||
{{- if semverCompare "<1.20-0" .Capabilities.KubeVersion.Version }}
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
{{- end }}
|
|
||||||
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
|
|
||||||
timeoutSeconds: 5
|
|
||||||
{{- end }}
|
|
||||||
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: GOMEMLIMIT
|
|
||||||
valueFrom:
|
|
||||||
resourceFieldRef:
|
|
||||||
resource: limits.memory
|
|
||||||
divisor: '1'
|
|
||||||
{{- if .Values.k8sServiceHost }}
|
|
||||||
- name: KUBERNETES_SERVICE_HOST
|
|
||||||
value: {{ .Values.k8sServiceHost | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.k8sServicePort }}
|
|
||||||
- name: KUBERNETES_SERVICE_PORT
|
|
||||||
value: {{ .Values.k8sServicePort | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.extraEnv }}
|
|
||||||
{{- toYaml . | trim | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.cni.install }}
|
|
||||||
lifecycle:
|
|
||||||
{{- if ne .Values.cni.chainingMode "aws-cni" }}
|
|
||||||
postStart:
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- "bash"
|
|
||||||
- "-c"
|
|
||||||
- |
|
|
||||||
{{- tpl (.Files.Get "files/agent/poststart-eni.bash") . | nindent 20 }}
|
|
||||||
{{- end }}
|
|
||||||
preStop:
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- /cni-uninstall.sh
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.resources }}
|
|
||||||
resources:
|
|
||||||
{{- toYaml . | trim | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if or .Values.prometheus.enabled .Values.hubble.metrics.enabled }}
|
|
||||||
ports:
|
|
||||||
- name: peer-service
|
|
||||||
containerPort: {{ .Values.hubble.peerService.targetPort }}
|
|
||||||
hostPort: {{ .Values.hubble.peerService.targetPort }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- if .Values.prometheus.enabled }}
|
|
||||||
- name: prometheus
|
|
||||||
containerPort: {{ .Values.prometheus.port }}
|
|
||||||
hostPort: {{ .Values.prometheus.port }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- if and .Values.proxy.prometheus.enabled .Values.envoy.prometheus.enabled (not .Values.envoy.enabled) }}
|
|
||||||
- name: envoy-metrics
|
|
||||||
containerPort: {{ .Values.proxy.prometheus.port | default .Values.envoy.prometheus.port }}
|
|
||||||
hostPort: {{ .Values.proxy.prometheus.port | default .Values.envoy.prometheus.port }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.hubble.metrics.enabled }}
|
|
||||||
- name: hubble-metrics
|
|
||||||
containerPort: {{ .Values.hubble.metrics.port }}
|
|
||||||
hostPort: {{ .Values.hubble.metrics.port }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
securityContext:
|
|
||||||
{{- if .Values.securityContext.privileged }}
|
|
||||||
privileged: true
|
|
||||||
{{- else }}
|
|
||||||
seLinuxOptions:
|
|
||||||
{{- with .Values.securityContext.seLinuxOptions }}
|
|
||||||
{{- toYaml . | nindent 12 }}
|
|
||||||
{{- end }}
|
|
||||||
capabilities:
|
|
||||||
add:
|
|
||||||
{{- with .Values.securityContext.capabilities.ciliumAgent }}
|
|
||||||
{{- toYaml . | nindent 14 }}
|
|
||||||
{{- end }}
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
{{- end }}
|
|
||||||
terminationMessagePolicy: FallbackToLogsOnError
|
|
||||||
volumeMounts:
|
|
||||||
{{- if .Values.authentication.mutual.spire.enabled }}
|
|
||||||
- name: spire-agent-socket
|
|
||||||
mountPath: {{ dir .Values.authentication.mutual.spire.adminSocketPath }}
|
|
||||||
readOnly: false
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.envoy.enabled }}
|
|
||||||
- name: envoy-sockets
|
|
||||||
mountPath: /var/run/cilium/envoy/sockets
|
|
||||||
readOnly: false
|
|
||||||
{{- end }}
|
|
||||||
{{- if not .Values.securityContext.privileged }}
|
|
||||||
# Unprivileged containers need to mount /proc/sys/net from the host
|
|
||||||
# to have write access
|
|
||||||
- mountPath: /host/proc/sys/net
|
|
||||||
name: host-proc-sys-net
|
|
||||||
# Unprivileged containers need to mount /proc/sys/kernel from the host
|
|
||||||
# to have write access
|
|
||||||
- mountPath: /host/proc/sys/kernel
|
|
||||||
name: host-proc-sys-kernel
|
|
||||||
{{- end}}
|
|
||||||
{{- /* CRI-O already mounts the BPF filesystem */ -}}
|
|
||||||
{{- if and .Values.bpf.autoMount.enabled (not (eq .Values.containerRuntime.integration "crio")) }}
|
|
||||||
- name: bpf-maps
|
|
||||||
mountPath: /sys/fs/bpf
|
|
||||||
{{- if .Values.securityContext.privileged }}
|
|
||||||
mountPropagation: Bidirectional
|
|
||||||
{{- else }}
|
|
||||||
# Unprivileged containers can't set mount propagation to bidirectional
|
|
||||||
# in this case we will mount the bpf fs from an init container that
|
|
||||||
# is privileged and set the mount propagation from host to container
|
|
||||||
# in Cilium.
|
|
||||||
mountPropagation: HostToContainer
|
|
||||||
{{- end}}
|
|
||||||
{{- end }}
|
|
||||||
{{- if not (contains "/run/cilium/cgroupv2" .Values.cgroup.hostRoot) }}
|
|
||||||
# Check for duplicate mounts before mounting
|
|
||||||
- name: cilium-cgroup
|
|
||||||
mountPath: {{ .Values.cgroup.hostRoot }}
|
|
||||||
{{- end}}
|
|
||||||
- name: cilium-run
|
|
||||||
mountPath: /var/run/cilium
|
|
||||||
- name: etc-cni-netd
|
|
||||||
mountPath: {{ .Values.cni.hostConfDirMountPath }}
|
|
||||||
{{- if .Values.etcd.enabled }}
|
|
||||||
- name: etcd-config-path
|
|
||||||
mountPath: /var/lib/etcd-config
|
|
||||||
readOnly: true
|
|
||||||
{{- if or .Values.etcd.ssl .Values.etcd.managed }}
|
|
||||||
- name: etcd-secrets
|
|
||||||
mountPath: /var/lib/etcd-secrets
|
|
||||||
readOnly: true
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
- name: clustermesh-secrets
|
|
||||||
mountPath: /var/lib/cilium/clustermesh
|
|
||||||
readOnly: true
|
|
||||||
{{- if .Values.ipMasqAgent.enabled }}
|
|
||||||
- name: ip-masq-agent
|
|
||||||
mountPath: /etc/config
|
|
||||||
readOnly: true
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.cni.configMap }}
|
|
||||||
- name: cni-configuration
|
|
||||||
mountPath: {{ .Values.cni.confFileMountPath }}
|
|
||||||
readOnly: true
|
|
||||||
{{- end }}
|
|
||||||
# Needed to be able to load kernel modules
|
|
||||||
- name: lib-modules
|
|
||||||
mountPath: /lib/modules
|
|
||||||
readOnly: true
|
|
||||||
- name: xtables-lock
|
|
||||||
mountPath: /run/xtables.lock
|
|
||||||
{{- if and .Values.encryption.enabled (eq .Values.encryption.type "ipsec") }}
|
|
||||||
- name: cilium-ipsec-secrets
|
|
||||||
mountPath: {{ .Values.encryption.ipsec.mountPath | default .Values.encryption.mountPath }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.kubeConfigPath }}
|
|
||||||
- name: kube-config
|
|
||||||
mountPath: {{ .Values.kubeConfigPath }}
|
|
||||||
readOnly: true
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.bgp.enabled }}
|
|
||||||
- name: bgp-config-path
|
|
||||||
mountPath: /var/lib/cilium/bgp
|
|
||||||
readOnly: true
|
|
||||||
{{- end }}
|
|
||||||
{{- if and .Values.hubble.enabled .Values.hubble.tls.enabled (hasKey .Values.hubble "listenAddress") }}
|
|
||||||
- name: hubble-tls
|
|
||||||
mountPath: /var/lib/cilium/tls/hubble
|
|
||||||
readOnly: true
|
|
||||||
{{- end }}
|
|
||||||
- name: tmp
|
|
||||||
mountPath: /tmp
|
|
||||||
{{- range .Values.extraHostPathMounts }}
|
|
||||||
- name: {{ .name }}
|
|
||||||
mountPath: {{ .mountPath }}
|
|
||||||
readOnly: {{ .readOnly }}
|
|
||||||
{{- if .mountPropagation }}
|
|
||||||
mountPropagation: {{ .mountPropagation }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.hubble.export.dynamic.enabled }}
|
|
||||||
- name: hubble-flowlog-config
|
|
||||||
mountPath: /flowlog-config
|
|
||||||
readOnly: true
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.extraVolumeMounts }}
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.monitor.enabled }}
|
|
||||||
- name: cilium-monitor
|
|
||||||
image: {{ include "cilium.image" .Values.image | quote }}
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
- -c
|
|
||||||
- --
|
|
||||||
args:
|
|
||||||
- |-
|
|
||||||
for i in {1..5}; do \
|
|
||||||
[ -S /var/run/cilium/monitor1_2.sock ] && break || sleep 10;\
|
|
||||||
done; \
|
|
||||||
cilium-dbg monitor
|
|
||||||
{{- range $type := .Values.monitor.eventTypes -}}
|
|
||||||
{{ " " }}--type={{ $type }}
|
|
||||||
{{- end }}
|
|
||||||
terminationMessagePolicy: FallbackToLogsOnError
|
|
||||||
volumeMounts:
|
|
||||||
- name: cilium-run
|
|
||||||
mountPath: /var/run/cilium
|
|
||||||
{{- with .Values.extraVolumeMounts }}
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.monitor.resources }}
|
|
||||||
resources:
|
|
||||||
{{- toYaml . | trim | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.extraContainers }}
|
|
||||||
{{- toYaml .Values.extraContainers | nindent 6 }}
|
|
||||||
{{- end }}
|
|
||||||
initContainers:
|
|
||||||
- name: config
|
|
||||||
image: {{ include "cilium.image" .Values.image | quote }}
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
command:
|
|
||||||
- cilium-dbg
|
|
||||||
- build-config
|
|
||||||
{{- if (not (kindIs "invalid" .Values.daemon.configSources)) }}
|
|
||||||
- "--source={{.Values.daemon.configSources}}"
|
|
||||||
{{- end }}
|
|
||||||
{{- if (not (kindIs "invalid" .Values.daemon.allowedConfigOverrides)) }}
|
|
||||||
- "--allow-config-keys={{.Values.daemon.allowedConfigOverrides}}"
|
|
||||||
{{- end }}
|
|
||||||
{{- if (not (kindIs "invalid" .Values.daemon.blockedConfigOverrides)) }}
|
|
||||||
- "--deny-config-keys={{.Values.daemon.blockedConfigOverrides}}"
|
|
||||||
{{- end }}
|
|
||||||
env:
|
|
||||||
- name: K8S_NODE_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
apiVersion: v1
|
|
||||||
fieldPath: spec.nodeName
|
|
||||||
- name: CILIUM_K8S_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
apiVersion: v1
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
{{- if .Values.k8sServiceHost }}
|
|
||||||
- name: KUBERNETES_SERVICE_HOST
|
|
||||||
value: {{ .Values.k8sServiceHost | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.k8sServicePort }}
|
|
||||||
- name: KUBERNETES_SERVICE_PORT
|
|
||||||
value: {{ .Values.k8sServicePort | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.extraEnv }}
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
volumeMounts:
|
|
||||||
- name: tmp
|
|
||||||
mountPath: /tmp
|
|
||||||
{{- with .Values.extraVolumeMounts }}
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
terminationMessagePolicy: FallbackToLogsOnError
|
|
||||||
{{- if .Values.cgroup.autoMount.enabled }}
|
|
||||||
# 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: {{ include "cilium.image" .Values.image | quote }}
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
env:
|
|
||||||
- name: CGROUP_ROOT
|
|
||||||
value: {{ .Values.cgroup.hostRoot }}
|
|
||||||
- name: BIN_PATH
|
|
||||||
value: {{ .Values.cni.binPath }}
|
|
||||||
{{- with .Values.cgroup.autoMount.resources }}
|
|
||||||
resources:
|
|
||||||
{{- toYaml . | trim | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
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
|
|
||||||
terminationMessagePolicy: FallbackToLogsOnError
|
|
||||||
securityContext:
|
|
||||||
{{- if .Values.securityContext.privileged }}
|
|
||||||
privileged: true
|
|
||||||
{{- else }}
|
|
||||||
seLinuxOptions:
|
|
||||||
{{- with .Values.securityContext.seLinuxOptions }}
|
|
||||||
{{- toYaml . | nindent 12 }}
|
|
||||||
{{- end }}
|
|
||||||
capabilities:
|
|
||||||
add:
|
|
||||||
{{- with .Values.securityContext.capabilities.mountCgroup }}
|
|
||||||
{{- toYaml . | nindent 14 }}
|
|
||||||
{{- end }}
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
{{- end}}
|
|
||||||
- name: apply-sysctl-overwrites
|
|
||||||
image: {{ include "cilium.image" .Values.image | quote }}
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
{{- with .Values.initResources }}
|
|
||||||
resources:
|
|
||||||
{{- toYaml . | trim | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
env:
|
|
||||||
- name: BIN_PATH
|
|
||||||
value: {{ .Values.cni.binPath }}
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -ec
|
|
||||||
# The statically linked Go program binary is invoked to avoid any
|
|
||||||
# dependency on utilities like sh 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-sysctlfix /hostbin/cilium-sysctlfix;
|
|
||||||
nsenter --mount=/hostproc/1/ns/mnt "${BIN_PATH}/cilium-sysctlfix";
|
|
||||||
rm /hostbin/cilium-sysctlfix
|
|
||||||
volumeMounts:
|
|
||||||
- name: hostproc
|
|
||||||
mountPath: /hostproc
|
|
||||||
- name: cni-path
|
|
||||||
mountPath: /hostbin
|
|
||||||
terminationMessagePolicy: FallbackToLogsOnError
|
|
||||||
securityContext:
|
|
||||||
{{- if .Values.securityContext.privileged }}
|
|
||||||
privileged: true
|
|
||||||
{{- else }}
|
|
||||||
seLinuxOptions:
|
|
||||||
{{- with .Values.securityContext.seLinuxOptions }}
|
|
||||||
{{- toYaml . | nindent 12 }}
|
|
||||||
{{- end }}
|
|
||||||
capabilities:
|
|
||||||
add:
|
|
||||||
{{- with .Values.securityContext.capabilities.applySysctlOverwrites }}
|
|
||||||
{{- toYaml . | nindent 14 }}
|
|
||||||
{{- end }}
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
{{- end}}
|
|
||||||
{{- end }}
|
|
||||||
{{- if and .Values.bpf.autoMount.enabled (not .Values.securityContext.privileged) }}
|
|
||||||
# Mount the bpf fs if it is not mounted. We will perform this task
|
|
||||||
# from a privileged container because the mount propagation bidirectional
|
|
||||||
# only works from privileged containers.
|
|
||||||
- name: mount-bpf-fs
|
|
||||||
image: {{ include "cilium.image" .Values.image | quote }}
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
{{- with .Values.initResources }}
|
|
||||||
resources:
|
|
||||||
{{- toYaml . | trim | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
args:
|
|
||||||
- 'mount | grep "/sys/fs/bpf type bpf" || mount -t bpf bpf /sys/fs/bpf'
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
- -c
|
|
||||||
- --
|
|
||||||
terminationMessagePolicy: FallbackToLogsOnError
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
{{- /* CRI-O already mounts the BPF filesystem */ -}}
|
|
||||||
{{- if and .Values.bpf.autoMount.enabled (not (eq .Values.containerRuntime.integration "crio")) }}
|
|
||||||
volumeMounts:
|
|
||||||
- name: bpf-maps
|
|
||||||
mountPath: /sys/fs/bpf
|
|
||||||
mountPropagation: Bidirectional
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if and .Values.nodeinit.enabled .Values.nodeinit.bootstrapFile }}
|
|
||||||
- name: wait-for-node-init
|
|
||||||
image: {{ include "cilium.image" .Values.image | quote }}
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
{{- with .Values.initResources }}
|
|
||||||
resources:
|
|
||||||
{{- toYaml . | trim | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
until test -s {{ (print "/tmp/cilium-bootstrap.d/" (.Values.nodeinit.bootstrapFile | base)) | quote }}; do
|
|
||||||
echo "Waiting on node-init to run...";
|
|
||||||
sleep 1;
|
|
||||||
done
|
|
||||||
terminationMessagePolicy: FallbackToLogsOnError
|
|
||||||
volumeMounts:
|
|
||||||
- name: cilium-bootstrap-file-dir
|
|
||||||
mountPath: "/tmp/cilium-bootstrap.d"
|
|
||||||
{{- end }}
|
|
||||||
- name: clean-cilium-state
|
|
||||||
image: {{ include "cilium.image" .Values.image | quote }}
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
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
|
|
||||||
- name: WRITE_CNI_CONF_WHEN_READY
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: cilium-config
|
|
||||||
key: write-cni-conf-when-ready
|
|
||||||
optional: true
|
|
||||||
{{- if .Values.k8sServiceHost }}
|
|
||||||
- name: KUBERNETES_SERVICE_HOST
|
|
||||||
value: {{ .Values.k8sServiceHost | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.k8sServicePort }}
|
|
||||||
- name: KUBERNETES_SERVICE_PORT
|
|
||||||
value: {{ .Values.k8sServicePort | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.extraEnv }}
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
terminationMessagePolicy: FallbackToLogsOnError
|
|
||||||
securityContext:
|
|
||||||
{{- if .Values.securityContext.privileged }}
|
|
||||||
privileged: true
|
|
||||||
{{- else }}
|
|
||||||
seLinuxOptions:
|
|
||||||
{{- with .Values.securityContext.seLinuxOptions }}
|
|
||||||
{{- toYaml . | nindent 12 }}
|
|
||||||
{{- end }}
|
|
||||||
capabilities:
|
|
||||||
add:
|
|
||||||
{{- with .Values.securityContext.capabilities.cleanCiliumState }}
|
|
||||||
{{- toYaml . | nindent 14 }}
|
|
||||||
{{- end }}
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
{{- end}}
|
|
||||||
volumeMounts:
|
|
||||||
{{- /* CRI-O already mounts the BPF filesystem */ -}}
|
|
||||||
{{- if and .Values.bpf.autoMount.enabled (not (eq .Values.containerRuntime.integration "crio")) }}
|
|
||||||
- name: bpf-maps
|
|
||||||
mountPath: /sys/fs/bpf
|
|
||||||
{{- end }}
|
|
||||||
# Required to mount cgroup filesystem from the host to cilium agent pod
|
|
||||||
- name: cilium-cgroup
|
|
||||||
mountPath: {{ .Values.cgroup.hostRoot }}
|
|
||||||
mountPropagation: HostToContainer
|
|
||||||
- name: cilium-run
|
|
||||||
mountPath: /var/run/cilium
|
|
||||||
{{- with .Values.extraVolumeMounts }}
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.initResources }}
|
|
||||||
resources:
|
|
||||||
{{- toYaml . | trim | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if and .Values.waitForKubeProxy (and (ne $kubeProxyReplacement "strict") (ne $kubeProxyReplacement "true")) }}
|
|
||||||
- name: wait-for-kube-proxy
|
|
||||||
image: {{ include "cilium.image" .Values.image | quote }}
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
{{- with .Values.initResources }}
|
|
||||||
resources:
|
|
||||||
{{- toYaml . | trim | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
command:
|
|
||||||
- bash
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
while true
|
|
||||||
do
|
|
||||||
if iptables-nft-save -t mangle | grep -E '^:(KUBE-IPTABLES-HINT|KUBE-PROXY-CANARY)'; then
|
|
||||||
echo "Found KUBE-IPTABLES-HINT or KUBE-PROXY-CANARY iptables rule in 'iptables-nft-save -t mangle'"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
if ip6tables-nft-save -t mangle | grep -E '^:(KUBE-IPTABLES-HINT|KUBE-PROXY-CANARY)'; then
|
|
||||||
echo "Found KUBE-IPTABLES-HINT or KUBE-PROXY-CANARY iptables rule in 'ip6tables-nft-save -t mangle'"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
if iptables-legacy-save | grep -E '^:KUBE-PROXY-CANARY'; then
|
|
||||||
echo "Found KUBE-PROXY-CANARY iptables rule in 'iptables-legacy-save"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
if ip6tables-legacy-save | grep -E '^:KUBE-PROXY-CANARY'; then
|
|
||||||
echo "KUBE-PROXY-CANARY iptables rule in 'ip6tables-legacy-save'"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
echo "Waiting for kube-proxy to create iptables rules...";
|
|
||||||
sleep 1;
|
|
||||||
done
|
|
||||||
terminationMessagePolicy: FallbackToLogsOnError
|
|
||||||
{{- end }} # wait-for-kube-proxy
|
|
||||||
{{- if .Values.cni.install }}
|
|
||||||
# Install the CNI binaries in an InitContainer so we don't have a writable host mount in the agent
|
|
||||||
- name: install-cni-binaries
|
|
||||||
image: {{ include "cilium.image" .Values.image | quote }}
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
command:
|
|
||||||
- "/install-plugin.sh"
|
|
||||||
{{- with .Values.cni.resources }}
|
|
||||||
resources:
|
|
||||||
{{- toYaml . | trim | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
securityContext:
|
|
||||||
{{- if .Values.securityContext.privileged }}
|
|
||||||
privileged: true
|
|
||||||
{{- else }}
|
|
||||||
seLinuxOptions:
|
|
||||||
{{- with .Values.securityContext.seLinuxOptions }}
|
|
||||||
{{- toYaml . | nindent 12 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
capabilities:
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
terminationMessagePolicy: FallbackToLogsOnError
|
|
||||||
volumeMounts:
|
|
||||||
- name: cni-path
|
|
||||||
mountPath: /host/opt/cni/bin
|
|
||||||
{{- end }} # .Values.cni.install
|
|
||||||
restartPolicy: Always
|
|
||||||
priorityClassName: {{ include "cilium.priorityClass" (list $ .Values.priorityClassName "system-node-critical") }}
|
|
||||||
serviceAccount: {{ .Values.serviceAccounts.cilium.name | quote }}
|
|
||||||
serviceAccountName: {{ .Values.serviceAccounts.cilium.name | quote }}
|
|
||||||
automountServiceAccountToken: {{ .Values.serviceAccounts.cilium.automount }}
|
|
||||||
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
|
|
||||||
hostNetwork: true
|
|
||||||
{{- if and .Values.etcd.managed (not .Values.etcd.k8sService) }}
|
|
||||||
# In managed etcd mode, Cilium must be able to resolve the DNS name of
|
|
||||||
# the etcd service
|
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
|
||||||
{{- else if .Values.dnsPolicy }}
|
|
||||||
dnsPolicy: {{ .Values.dnsPolicy }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.affinity }}
|
|
||||||
affinity:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.nodeSelector }}
|
|
||||||
nodeSelector:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.tolerations }}
|
|
||||||
tolerations:
|
|
||||||
{{- toYaml . | trim | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if and .Values.clustermesh.config.enabled (not (and .Values.clustermesh.useAPIServer .Values.clustermesh.apiserver.kvstoremesh.enabled )) }}
|
|
||||||
hostAliases:
|
|
||||||
{{- range $cluster := .Values.clustermesh.config.clusters }}
|
|
||||||
{{- range $ip := $cluster.ips }}
|
|
||||||
- ip: {{ $ip }}
|
|
||||||
hostnames: [ "{{ $cluster.name }}.{{ $.Values.clustermesh.config.domain }}" ]
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
volumes:
|
|
||||||
# For sharing configuration between the "config" initContainer and the agent
|
|
||||||
- name: tmp
|
|
||||||
emptyDir: {}
|
|
||||||
# To keep state between restarts / upgrades
|
|
||||||
- name: cilium-run
|
|
||||||
hostPath:
|
|
||||||
path: {{ .Values.daemon.runPath }}
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
{{- /* CRI-O already mounts the BPF filesystem */ -}}
|
|
||||||
{{- if and .Values.bpf.autoMount.enabled (not (eq .Values.containerRuntime.integration "crio")) }}
|
|
||||||
# To keep state between restarts / upgrades for bpf maps
|
|
||||||
- name: bpf-maps
|
|
||||||
hostPath:
|
|
||||||
path: /sys/fs/bpf
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.cgroup.autoMount.enabled }}
|
|
||||||
# To mount cgroup2 filesystem on the host
|
|
||||||
- name: hostproc
|
|
||||||
hostPath:
|
|
||||||
path: /proc
|
|
||||||
type: Directory
|
|
||||||
{{- end }}
|
|
||||||
# To keep state between restarts / upgrades for cgroup2 filesystem
|
|
||||||
- name: cilium-cgroup
|
|
||||||
hostPath:
|
|
||||||
path: {{ .Values.cgroup.hostRoot}}
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
# To install cilium cni plugin in the host
|
|
||||||
- name: cni-path
|
|
||||||
hostPath:
|
|
||||||
path: {{ .Values.cni.binPath }}
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
# To install cilium cni configuration in the host
|
|
||||||
- name: etc-cni-netd
|
|
||||||
hostPath:
|
|
||||||
path: {{ .Values.cni.confPath }}
|
|
||||||
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
|
|
||||||
{{- if .Values.authentication.mutual.spire.enabled }}
|
|
||||||
- name: spire-agent-socket
|
|
||||||
hostPath:
|
|
||||||
path: {{ dir .Values.authentication.mutual.spire.adminSocketPath }}
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.envoy.enabled }}
|
|
||||||
# Sharing socket with Cilium Envoy on the same node by using a host path
|
|
||||||
- name: envoy-sockets
|
|
||||||
hostPath:
|
|
||||||
path: "{{ .Values.daemon.runPath }}/envoy/sockets"
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.kubeConfigPath }}
|
|
||||||
- name: kube-config
|
|
||||||
hostPath:
|
|
||||||
path: {{ .Values.kubeConfigPath }}
|
|
||||||
type: FileOrCreate
|
|
||||||
{{- end }}
|
|
||||||
{{- if and .Values.nodeinit.enabled .Values.nodeinit.bootstrapFile }}
|
|
||||||
- name: cilium-bootstrap-file-dir
|
|
||||||
hostPath:
|
|
||||||
path: {{ .Values.nodeinit.bootstrapFile | dir | quote }}
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.etcd.enabled }}
|
|
||||||
# To read the etcd config stored in config maps
|
|
||||||
- name: etcd-config-path
|
|
||||||
configMap:
|
|
||||||
name: cilium-config
|
|
||||||
# note: the leading zero means this number is in octal representation: do not remove it
|
|
||||||
defaultMode: 0400
|
|
||||||
items:
|
|
||||||
- key: etcd-config
|
|
||||||
path: etcd.config
|
|
||||||
# To read the k8s etcd secrets in case the user might want to use TLS
|
|
||||||
{{- if or .Values.etcd.ssl .Values.etcd.managed }}
|
|
||||||
- name: etcd-secrets
|
|
||||||
secret:
|
|
||||||
secretName: cilium-etcd-secrets
|
|
||||||
# note: the leading zero means this number is in octal representation: do not remove it
|
|
||||||
defaultMode: 0400
|
|
||||||
optional: true
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
# To read the clustermesh configuration
|
|
||||||
- name: clustermesh-secrets
|
|
||||||
projected:
|
|
||||||
# note: the leading zero means this number is in octal representation: do not remove it
|
|
||||||
defaultMode: 0400
|
|
||||||
sources:
|
|
||||||
- secret:
|
|
||||||
name: cilium-clustermesh
|
|
||||||
optional: true
|
|
||||||
# note: items are not explicitly listed here, since the entries of this secret
|
|
||||||
# depend on the peers configured, and that would cause a restart of all agents
|
|
||||||
# at every addition/removal. Leaving the field empty makes each secret entry
|
|
||||||
# to be automatically projected into the volume as a file whose name is the key.
|
|
||||||
- secret:
|
|
||||||
name: clustermesh-apiserver-remote-cert
|
|
||||||
optional: true
|
|
||||||
items:
|
|
||||||
- key: tls.key
|
|
||||||
path: common-etcd-client.key
|
|
||||||
- key: tls.crt
|
|
||||||
path: common-etcd-client.crt
|
|
||||||
{{- if not .Values.tls.caBundle.enabled }}
|
|
||||||
- key: ca.crt
|
|
||||||
path: common-etcd-client-ca.crt
|
|
||||||
{{- else }}
|
|
||||||
- {{ .Values.tls.caBundle.useSecret | ternary "secret" "configMap" }}:
|
|
||||||
name: {{ .Values.tls.caBundle.name }}
|
|
||||||
optional: true
|
|
||||||
items:
|
|
||||||
- key: {{ .Values.tls.caBundle.key }}
|
|
||||||
path: common-etcd-client-ca.crt
|
|
||||||
{{- end }}
|
|
||||||
{{- if and .Values.ipMasqAgent .Values.ipMasqAgent.enabled }}
|
|
||||||
- name: ip-masq-agent
|
|
||||||
configMap:
|
|
||||||
name: ip-masq-agent
|
|
||||||
optional: true
|
|
||||||
items:
|
|
||||||
- key: config
|
|
||||||
path: ip-masq-agent
|
|
||||||
{{- end }}
|
|
||||||
{{- if and .Values.encryption.enabled (eq .Values.encryption.type "ipsec") }}
|
|
||||||
- name: cilium-ipsec-secrets
|
|
||||||
secret:
|
|
||||||
secretName: {{ .Values.encryption.ipsec.secretName | default .Values.encryption.secretName }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.cni.configMap }}
|
|
||||||
- name: cni-configuration
|
|
||||||
configMap:
|
|
||||||
name: {{ .Values.cni.configMap }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.bgp.enabled }}
|
|
||||||
- name: bgp-config-path
|
|
||||||
configMap:
|
|
||||||
name: bgp-config
|
|
||||||
{{- end }}
|
|
||||||
{{- if not .Values.securityContext.privileged }}
|
|
||||||
- name: host-proc-sys-net
|
|
||||||
hostPath:
|
|
||||||
path: /proc/sys/net
|
|
||||||
type: Directory
|
|
||||||
- name: host-proc-sys-kernel
|
|
||||||
hostPath:
|
|
||||||
path: /proc/sys/kernel
|
|
||||||
type: Directory
|
|
||||||
{{- end }}
|
|
||||||
{{- if and .Values.hubble.enabled .Values.hubble.tls.enabled (hasKey .Values.hubble "listenAddress") }}
|
|
||||||
- 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: tls.crt
|
|
||||||
path: server.crt
|
|
||||||
- key: tls.key
|
|
||||||
path: server.key
|
|
||||||
{{- if not .Values.tls.caBundle.enabled }}
|
|
||||||
- key: ca.crt
|
|
||||||
path: client-ca.crt
|
|
||||||
{{- else }}
|
|
||||||
- {{ .Values.tls.caBundle.useSecret | ternary "secret" "configMap" }}:
|
|
||||||
name: {{ .Values.tls.caBundle.name }}
|
|
||||||
optional: true
|
|
||||||
items:
|
|
||||||
- key: {{ .Values.tls.caBundle.key }}
|
|
||||||
path: client-ca.crt
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.hubble.export.dynamic.enabled }}
|
|
||||||
- name: hubble-flowlog-config
|
|
||||||
configMap:
|
|
||||||
name: {{ .Values.hubble.export.dynamic.config.configMapName }}
|
|
||||||
optional: true
|
|
||||||
{{- end }}
|
|
||||||
{{- range .Values.extraHostPathMounts }}
|
|
||||||
- name: {{ .name }}
|
|
||||||
hostPath:
|
|
||||||
path: {{ .hostPath }}
|
|
||||||
{{- if .hostPathType }}
|
|
||||||
type: {{ .hostPathType }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.extraVolumes }}
|
|
||||||
{{- toYaml . | nindent 6 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -15,14 +15,9 @@ metadata:
|
|||||||
{{- if $.Values.dashboards.label }}
|
{{- if $.Values.dashboards.label }}
|
||||||
{{ $.Values.dashboards.label }}: {{ ternary $.Values.dashboards.labelValue "1" (not (empty $.Values.dashboards.labelValue)) | quote }}
|
{{ $.Values.dashboards.label }}: {{ ternary $.Values.dashboards.labelValue "1" (not (empty $.Values.dashboards.labelValue)) | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or $.Values.dashboards.annotations $.Values.annotations }}
|
{{- with $.Values.dashboards.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- with $.Values.dashboards.annotations }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with $.Values.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
data:
|
data:
|
||||||
{{ $dashboardName }}.json: {{ $.Files.Get $path | toJson }}
|
{{ $dashboardName }}.json: {{ $.Files.Get $path | toJson }}
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: Role
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-config-agent
|
name: cilium-config-agent
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
rules:
|
rules:
|
||||||
@@ -30,10 +26,6 @@ kind: Role
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-ingress-secrets
|
name: cilium-ingress-secrets
|
||||||
namespace: {{ .Values.ingressController.secretsNamespace.name | quote }}
|
namespace: {{ .Values.ingressController.secretsNamespace.name | quote }}
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
rules:
|
rules:
|
||||||
@@ -54,10 +46,6 @@ kind: Role
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-gateway-secrets
|
name: cilium-gateway-secrets
|
||||||
namespace: {{ .Values.gatewayAPI.secretsNamespace.name | quote }}
|
namespace: {{ .Values.gatewayAPI.secretsNamespace.name | quote }}
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
rules:
|
rules:
|
||||||
@@ -78,30 +66,6 @@ kind: Role
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-envoy-config-secrets
|
name: cilium-envoy-config-secrets
|
||||||
namespace: {{ .Values.envoyConfig.secretsNamespace.name | quote }}
|
namespace: {{ .Values.envoyConfig.secretsNamespace.name | quote }}
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/part-of: cilium
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- secrets
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
{{- end}}
|
|
||||||
|
|
||||||
{{- if and .Values.agent (not .Values.preflight.enabled) .Values.serviceAccounts.cilium.create .Values.bgpControlPlane.enabled .Values.bgpControlPlane.secretsNamespace.name }}
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: Role
|
|
||||||
metadata:
|
|
||||||
name: cilium-bgp-control-plane-secrets
|
|
||||||
namespace: {{ .Values.bgpControlPlane.secretsNamespace.name | quote }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: RoleBinding
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-config-agent
|
name: cilium-config-agent
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
roleRef:
|
roleRef:
|
||||||
@@ -28,10 +24,6 @@ kind: RoleBinding
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-secrets
|
name: cilium-secrets
|
||||||
namespace: {{ .Values.ingressController.secretsNamespace.name | quote }}
|
namespace: {{ .Values.ingressController.secretsNamespace.name | quote }}
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
roleRef:
|
roleRef:
|
||||||
@@ -51,10 +43,6 @@ kind: RoleBinding
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-gateway-secrets
|
name: cilium-gateway-secrets
|
||||||
namespace: {{ .Values.gatewayAPI.secretsNamespace.name | quote }}
|
namespace: {{ .Values.gatewayAPI.secretsNamespace.name | quote }}
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
roleRef:
|
roleRef:
|
||||||
@@ -74,10 +62,6 @@ kind: RoleBinding
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-envoy-config-secrets
|
name: cilium-envoy-config-secrets
|
||||||
namespace: {{ .Values.envoyConfig.secretsNamespace.name | quote }}
|
namespace: {{ .Values.envoyConfig.secretsNamespace.name | quote }}
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
roleRef:
|
roleRef:
|
||||||
@@ -89,22 +73,3 @@ subjects:
|
|||||||
name: {{ .Values.serviceAccounts.cilium.name | quote }}
|
name: {{ .Values.serviceAccounts.cilium.name | quote }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
{{- if and .Values.agent (not .Values.preflight.enabled) .Values.serviceAccounts.cilium.create .Values.bgpControlPlane.enabled .Values.bgpControlPlane.secretsNamespace.name}}
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: RoleBinding
|
|
||||||
metadata:
|
|
||||||
name: cilium-bgp-control-plane-secrets
|
|
||||||
namespace: {{ .Values.bgpControlPlane.secretsNamespace.name | quote }}
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/part-of: cilium
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: Role
|
|
||||||
name: cilium-bgp-control-plane-secrets
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: {{ .Values.serviceAccounts.cilium.name | quote }}
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
{{- end}}
|
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-agent
|
name: cilium-agent
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
k8s-app: cilium
|
k8s-app: cilium
|
||||||
app.kubernetes.io/name: cilium-agent
|
app.kubernetes.io/name: cilium-agent
|
||||||
|
|||||||
@@ -4,13 +4,8 @@ kind: ServiceAccount
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.serviceAccounts.cilium.name | quote }}
|
name: {{ .Values.serviceAccounts.cilium.name | quote }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- if or .Values.serviceAccounts.cilium.annotations .Values.annotations }}
|
{{- if .Values.serviceAccounts.cilium.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.annotations }}
|
{{- toYaml .Values.serviceAccounts.cilium.annotations | nindent 4 }}
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.serviceAccounts.cilium.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -10,15 +10,10 @@ metadata:
|
|||||||
{{- with .Values.prometheus.serviceMonitor.labels }}
|
{{- with .Values.prometheus.serviceMonitor.labels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .Values.prometheus.serviceMonitor.annotations .Values.annotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.prometheus.serviceMonitor.annotations }}
|
{{- with .Values.prometheus.serviceMonitor.annotations }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
@@ -39,23 +34,6 @@ spec:
|
|||||||
metricRelabelings:
|
metricRelabelings:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.envoy.prometheus.serviceMonitor.enabled }}
|
|
||||||
- port: envoy-metrics
|
|
||||||
interval: {{ .Values.envoy.prometheus.serviceMonitor.interval | quote }}
|
|
||||||
honorLabels: true
|
|
||||||
path: /metrics
|
|
||||||
{{- with .Values.envoy.prometheus.serviceMonitor.relabelings }}
|
|
||||||
relabelings:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.envoy.prometheus.serviceMonitor.metricRelabelings }}
|
|
||||||
metricRelabelings:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
targetLabels:
|
targetLabels:
|
||||||
- k8s-app
|
- k8s-app
|
||||||
{{- if .Values.prometheus.serviceMonitor.jobLabel }}
|
|
||||||
jobLabel: {{ .Values.prometheus.serviceMonitor.jobLabel | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{- if or
|
{{- if or
|
||||||
(and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "helm"))
|
(and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "helm") (not .Values.clustermesh.apiserver.tls.ca.cert))
|
||||||
(and (or .Values.agent .Values.hubble.relay.enabled .Values.hubble.ui.enabled) .Values.hubble.enabled .Values.hubble.tls.enabled .Values.hubble.tls.auto.enabled (eq .Values.hubble.tls.auto.method "helm"))
|
(and (or .Values.agent .Values.hubble.relay.enabled .Values.hubble.ui.enabled) .Values.hubble.enabled .Values.hubble.tls.enabled .Values.hubble.tls.auto.enabled (eq .Values.hubble.tls.auto.method "helm"))
|
||||||
(and .Values.tls.ca.key .Values.tls.ca.cert)
|
(and .Values.tls.ca.key .Values.tls.ca.cert)
|
||||||
-}}
|
-}}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{{- if and (.Values.agent) (not .Values.preflight.enabled) }}
|
{{- if and (.Values.agent) (not .Values.preflight.enabled) }}
|
||||||
{{- /* Default values with backwards compatibility */ -}}
|
{{- /* Default values with backwards compatibility */ -}}
|
||||||
|
{{- $defaultEnableCnpStatusUpdates := "true" -}}
|
||||||
{{- $defaultBpfMapDynamicSizeRatio := 0.0 -}}
|
{{- $defaultBpfMapDynamicSizeRatio := 0.0 -}}
|
||||||
{{- $defaultBpfMasquerade := "false" -}}
|
{{- $defaultBpfMasquerade := "false" -}}
|
||||||
{{- $defaultBpfClockProbe := "false" -}}
|
{{- $defaultBpfClockProbe := "false" -}}
|
||||||
@@ -12,12 +13,10 @@
|
|||||||
{{- $fragmentTracking := "true" -}}
|
{{- $fragmentTracking := "true" -}}
|
||||||
{{- $defaultKubeProxyReplacement := "false" -}}
|
{{- $defaultKubeProxyReplacement := "false" -}}
|
||||||
{{- $azureUsePrimaryAddress := "true" -}}
|
{{- $azureUsePrimaryAddress := "true" -}}
|
||||||
{{- $defaultK8sClientQPS := 5 -}}
|
|
||||||
{{- $defaultK8sClientBurst := 10 -}}
|
|
||||||
{{- $defaultDNSProxyEnableTransparentMode := "false" -}}
|
|
||||||
|
|
||||||
{{- /* Default values when 1.8 was initially deployed */ -}}
|
{{- /* Default values when 1.8 was initially deployed */ -}}
|
||||||
{{- if semverCompare ">=1.8" (default "1.8" .Values.upgradeCompatibility) -}}
|
{{- if semverCompare ">=1.8" (default "1.8" .Values.upgradeCompatibility) -}}
|
||||||
|
{{- $defaultEnableCnpStatusUpdates = "false" -}}
|
||||||
{{- $defaultBpfMapDynamicSizeRatio = 0.0025 -}}
|
{{- $defaultBpfMapDynamicSizeRatio = 0.0025 -}}
|
||||||
{{- $defaultBpfMasquerade = "true" -}}
|
{{- $defaultBpfMasquerade = "true" -}}
|
||||||
{{- $defaultBpfClockProbe = "true" -}}
|
{{- $defaultBpfClockProbe = "true" -}}
|
||||||
@@ -49,7 +48,6 @@
|
|||||||
{{- $azureUsePrimaryAddress = "false" -}}
|
{{- $azureUsePrimaryAddress = "false" -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $defaultKubeProxyReplacement = "disabled" -}}
|
{{- $defaultKubeProxyReplacement = "disabled" -}}
|
||||||
{{- $defaultDNSProxyEnableTransparentMode = "true" -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- /* Default values when 1.14 was initially deployed */ -}}
|
{{- /* Default values when 1.14 was initially deployed */ -}}
|
||||||
@@ -78,11 +76,6 @@
|
|||||||
{{- else if (not (kindIs "invalid" .Values.cni.chainingTarget)) -}}
|
{{- else if (not (kindIs "invalid" .Values.cni.chainingTarget)) -}}
|
||||||
{{- $cniChainingMode = "generic-veth" -}}
|
{{- $cniChainingMode = "generic-veth" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if semverCompare ">=1.27-0" .Capabilities.KubeVersion.Version -}}
|
|
||||||
{{- $defaultK8sClientQPS = 10 -}}
|
|
||||||
{{- $defaultK8sClientBurst = 20 -}}
|
|
||||||
{{- end -}}
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@@ -196,11 +189,6 @@ data:
|
|||||||
enable-policy: "{{ lower .Values.policyEnforcementMode }}"
|
enable-policy: "{{ lower .Values.policyEnforcementMode }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if hasKey .Values "policyCIDRMatchMode" }}
|
|
||||||
policy-cidr-match-mode: {{ join " " .Values.policyCIDRMatchMode | quote }}
|
|
||||||
{{- end}}
|
|
||||||
|
|
||||||
|
|
||||||
{{- if .Values.prometheus.enabled }}
|
{{- if .Values.prometheus.enabled }}
|
||||||
# If you want metrics enabled in all of your Cilium agents, set the port for
|
# If you want metrics enabled in all of your Cilium agents, set the port for
|
||||||
# which the Cilium agents will have their metrics exposed.
|
# which the Cilium agents will have their metrics exposed.
|
||||||
@@ -217,13 +205,6 @@ data:
|
|||||||
{{ . }}
|
{{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.prometheus.controllerGroupMetrics }}
|
|
||||||
# A space-separated list of controller groups for which to enable metrics.
|
|
||||||
# The special values of "all" and "none" are supported.
|
|
||||||
controller-group-metrics: {{- range .Values.prometheus.controllerGroupMetrics }}
|
|
||||||
{{ . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if not .Values.envoy.enabled }}
|
{{- if not .Values.envoy.enabled }}
|
||||||
@@ -257,7 +238,6 @@ data:
|
|||||||
{{- if .Values.ingressController.enabled }}
|
{{- if .Values.ingressController.enabled }}
|
||||||
enable-ingress-controller: "true"
|
enable-ingress-controller: "true"
|
||||||
enforce-ingress-https: {{ .Values.ingressController.enforceHttps | quote }}
|
enforce-ingress-https: {{ .Values.ingressController.enforceHttps | quote }}
|
||||||
enable-ingress-proxy-protocol: {{ .Values.ingressController.enableProxyProtocol | quote }}
|
|
||||||
enable-ingress-secrets-sync: {{ .Values.ingressController.secretsNamespace.sync | quote }}
|
enable-ingress-secrets-sync: {{ .Values.ingressController.secretsNamespace.sync | quote }}
|
||||||
ingress-secrets-namespace: {{ .Values.ingressController.secretsNamespace.name | quote }}
|
ingress-secrets-namespace: {{ .Values.ingressController.secretsNamespace.name | quote }}
|
||||||
ingress-lb-annotation-prefixes: {{ .Values.ingressController.ingressLBAnnotationPrefixes | join " " | quote }}
|
ingress-lb-annotation-prefixes: {{ .Values.ingressController.ingressLBAnnotationPrefixes | join " " | quote }}
|
||||||
@@ -450,23 +430,28 @@ data:
|
|||||||
# - vxlan (default)
|
# - vxlan (default)
|
||||||
# - geneve
|
# - geneve
|
||||||
{{- if .Values.gke.enabled }}
|
{{- if .Values.gke.enabled }}
|
||||||
{{- if ne (.Values.routingMode | default "native") "native" }}
|
|
||||||
{{- fail (printf "RoutingMode must be set to native when gke.enabled=true" )}}
|
|
||||||
{{- end }}
|
|
||||||
routing-mode: "native"
|
routing-mode: "native"
|
||||||
enable-endpoint-routes: "true"
|
enable-endpoint-routes: "true"
|
||||||
|
enable-local-node-route: "false"
|
||||||
{{- else if .Values.aksbyocni.enabled }}
|
{{- else if .Values.aksbyocni.enabled }}
|
||||||
{{- if ne (.Values.routingMode | default "tunnel") "tunnel" }}
|
|
||||||
{{- fail (printf "RoutingMode must be set to tunnel when aksbyocni.enabled=true" )}}
|
|
||||||
{{- end }}
|
|
||||||
routing-mode: "tunnel"
|
routing-mode: "tunnel"
|
||||||
tunnel-protocol: "vxlan"
|
tunnel-protocol: "vxlan"
|
||||||
{{- else if .Values.routingMode }}
|
{{- else if .Values.routingMode }}
|
||||||
routing-mode: {{ .Values.routingMode | quote }}
|
routing-mode: {{ .Values.routingMode | quote }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
{{- if eq .Values.tunnel "disabled" }}
|
||||||
|
routing-mode: "native"
|
||||||
|
{{- else if eq .Values.tunnel "vxlan" }}
|
||||||
|
routing-mode: "tunnel"
|
||||||
|
tunnel-protocol: "vxlan"
|
||||||
|
{{- else if eq .Values.tunnel "geneve" }}
|
||||||
|
routing-mode: "tunnel"
|
||||||
|
tunnel-protocol: "geneve"
|
||||||
|
{{- else }}
|
||||||
# Default case
|
# Default case
|
||||||
routing-mode: "tunnel"
|
routing-mode: "tunnel"
|
||||||
tunnel-protocol: "vxlan"
|
tunnel-protocol: "vxlan"
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.tunnelProtocol }}
|
{{- if .Values.tunnelProtocol }}
|
||||||
@@ -477,10 +462,6 @@ data:
|
|||||||
tunnel-port: {{ .Values.tunnelPort | quote }}
|
tunnel-port: {{ .Values.tunnelPort | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.serviceNoBackendResponse }}
|
|
||||||
service-no-backend-response: "{{ .Values.serviceNoBackendResponse }}"
|
|
||||||
{{- end}}
|
|
||||||
|
|
||||||
{{- if .Values.MTU }}
|
{{- if .Values.MTU }}
|
||||||
mtu: {{ .Values.MTU | quote }}
|
mtu: {{ .Values.MTU | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -519,6 +500,7 @@ data:
|
|||||||
{{- if .Values.azure.enabled }}
|
{{- if .Values.azure.enabled }}
|
||||||
enable-endpoint-routes: "true"
|
enable-endpoint-routes: "true"
|
||||||
auto-create-cilium-node-resource: "true"
|
auto-create-cilium-node-resource: "true"
|
||||||
|
enable-local-node-route: "false"
|
||||||
{{- if .Values.azure.userAssignedIdentityID }}
|
{{- if .Values.azure.userAssignedIdentityID }}
|
||||||
azure-user-assigned-identity-id: {{ .Values.azure.userAssignedIdentityID | quote }}
|
azure-user-assigned-identity-id: {{ .Values.azure.userAssignedIdentityID | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -569,7 +551,6 @@ data:
|
|||||||
{{- else if eq $defaultBpfMasquerade "true" }}
|
{{- else if eq $defaultBpfMasquerade "true" }}
|
||||||
enable-bpf-masquerade: {{ $defaultBpfMasquerade | quote }}
|
enable-bpf-masquerade: {{ $defaultBpfMasquerade | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
enable-masquerade-to-route-source: {{ .Values.enableMasqueradeRouteSource | quote }}
|
|
||||||
{{- if hasKey .Values "egressMasqueradeInterfaces" }}
|
{{- if hasKey .Values "egressMasqueradeInterfaces" }}
|
||||||
egress-masquerade-interfaces: {{ .Values.egressMasqueradeInterfaces }}
|
egress-masquerade-interfaces: {{ .Values.egressMasqueradeInterfaces }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -602,8 +583,8 @@ data:
|
|||||||
{{- if .Values.encryption.wireguard.userspaceFallback }}
|
{{- if .Values.encryption.wireguard.userspaceFallback }}
|
||||||
enable-wireguard-userspace-fallback: {{ .Values.encryption.wireguard.userspaceFallback | quote }}
|
enable-wireguard-userspace-fallback: {{ .Values.encryption.wireguard.userspaceFallback | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.encryption.wireguard.persistentKeepalive }}
|
{{- if .Values.encryption.wireguard.encapsulate }}
|
||||||
wireguard-persistent-keepalive: {{ .Values.encryption.wireguard.persistentKeepalive | quote }}
|
wireguard-encapsulate: {{ .Values.encryption.wireguard.encapsulate | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.encryption.nodeEncryption }}
|
{{- if .Values.encryption.nodeEncryption }}
|
||||||
@@ -611,14 +592,6 @@ data:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.encryption.strictMode.enabled }}
|
|
||||||
enable-encryption-strict-mode: {{ .Values.encryption.strictMode.enabled | quote }}
|
|
||||||
|
|
||||||
encryption-strict-mode-cidr: {{ .Values.encryption.strictMode.cidr | quote }}
|
|
||||||
|
|
||||||
encryption-strict-mode-allow-remote-node-identities: {{ .Values.encryption.strictMode.allowRemoteNodeIdentities | quote }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
enable-xt-socket-fallback: {{ .Values.enableXTSocketFallback | quote }}
|
enable-xt-socket-fallback: {{ .Values.enableXTSocketFallback | quote }}
|
||||||
{{- if or (.Values.azure.enabled) (.Values.eni.enabled) (.Values.gke.enabled) (ne $cniChainingMode "none") }}
|
{{- if or (.Values.azure.enabled) (.Values.eni.enabled) (.Values.gke.enabled) (ne $cniChainingMode "none") }}
|
||||||
install-no-conntrack-iptables-rules: "false"
|
install-no-conntrack-iptables-rules: "false"
|
||||||
@@ -720,11 +693,6 @@ data:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if hasKey .Values.nodePort "enableHealthCheck" }}
|
{{- if hasKey .Values.nodePort "enableHealthCheck" }}
|
||||||
enable-health-check-nodeport: {{ .Values.nodePort.enableHealthCheck | quote}}
|
enable-health-check-nodeport: {{ .Values.nodePort.enableHealthCheck | quote}}
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.gke.enabled }}
|
|
||||||
enable-health-check-loadbalancer-ip: "true"
|
|
||||||
{{- else if hasKey .Values.nodePort "enableHealthCheckLoadBalancerIP" }}
|
|
||||||
enable-health-check-loadbalancer-ip: {{ .Values.nodePort.enableHealthCheckLoadBalancerIP | quote}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
node-port-bind-protection: {{ .Values.nodePort.bindProtection | quote }}
|
node-port-bind-protection: {{ .Values.nodePort.bindProtection | quote }}
|
||||||
enable-auto-protect-node-port-range: {{ .Values.nodePort.autoProtectPortRange | quote }}
|
enable-auto-protect-node-port-range: {{ .Values.nodePort.autoProtectPortRange | quote }}
|
||||||
@@ -860,7 +828,7 @@ data:
|
|||||||
|
|
||||||
{{- if .Values.hubble.enabled }}
|
{{- if .Values.hubble.enabled }}
|
||||||
# Enable Hubble gRPC service.
|
# Enable Hubble gRPC service.
|
||||||
enable-hubble: {{ .Values.hubble.enabled | quote }}
|
enable-hubble: {{ .Values.hubble.enabled | quote }}
|
||||||
# UNIX domain socket for Hubble server to listen to.
|
# UNIX domain socket for Hubble server to listen to.
|
||||||
hubble-socket-path: {{ .Values.hubble.socketPath | quote }}
|
hubble-socket-path: {{ .Values.hubble.socketPath | quote }}
|
||||||
{{- if hasKey .Values.hubble "eventQueueSize" }}
|
{{- if hasKey .Values.hubble "eventQueueSize" }}
|
||||||
@@ -884,49 +852,6 @@ data:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
enable-hubble-open-metrics: {{ .Values.hubble.metrics.enableOpenMetrics | quote }}
|
enable-hubble-open-metrics: {{ .Values.hubble.metrics.enableOpenMetrics | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.hubble.redact }}
|
|
||||||
{{- if eq .Values.hubble.redact.enabled true }}
|
|
||||||
# Enables hubble redact capabilities
|
|
||||||
hubble-redact-enabled: "true"
|
|
||||||
{{- if .Values.hubble.redact.http }}
|
|
||||||
# Enables redaction of the http URL query part in flows
|
|
||||||
hubble-redact-http-urlquery: {{ .Values.hubble.redact.http.urlQuery | quote }}
|
|
||||||
# Enables redaction of the http user info in flows
|
|
||||||
hubble-redact-http-userinfo: {{ .Values.hubble.redact.http.userInfo | quote }}
|
|
||||||
{{- if .Values.hubble.redact.http.headers }}
|
|
||||||
{{- if .Values.hubble.redact.http.headers.allow }}
|
|
||||||
# Redact all http headers that do not match this list
|
|
||||||
hubble-redact-http-headers-allow: {{- range .Values.hubble.redact.http.headers.allow }}
|
|
||||||
{{ . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.hubble.redact.http.headers.deny }}
|
|
||||||
# Redact all http headers that match this list
|
|
||||||
hubble-redact-http-headers-deny: {{- range .Values.hubble.redact.http.headers.deny }}
|
|
||||||
{{ . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.hubble.redact.kafka }}
|
|
||||||
# Enables redaction of the Kafka API key part in flows
|
|
||||||
hubble-redact-kafka-apikey: {{ .Values.hubble.redact.kafka.apiKey | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.hubble.export }}
|
|
||||||
hubble-export-file-max-size-mb: {{ .Values.hubble.export.fileMaxSizeMb | quote }}
|
|
||||||
hubble-export-file-max-backups: {{ .Values.hubble.export.fileMaxBackups | quote }}
|
|
||||||
{{- if .Values.hubble.export.static.enabled }}
|
|
||||||
hubble-export-file-path: {{ .Values.hubble.export.static.filePath | quote }}
|
|
||||||
hubble-export-fieldmask: {{ .Values.hubble.export.static.fieldMask | join " " | quote }}
|
|
||||||
hubble-export-allowlist: {{ .Values.hubble.export.static.allowList | join "," | quote }}
|
|
||||||
hubble-export-denylist: {{ .Values.hubble.export.static.denyList | join "," | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.hubble.export.dynamic.enabled }}
|
|
||||||
hubble-flowlogs-config-path: /flowlog-config/flowlogs.yaml
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if hasKey .Values.hubble "listenAddress" }}
|
{{- if hasKey .Values.hubble "listenAddress" }}
|
||||||
# An additional address for Hubble server to listen to (e.g. ":4244").
|
# An additional address for Hubble server to listen to (e.g. ":4244").
|
||||||
hubble-listen-address: {{ .Values.hubble.listenAddress | quote }}
|
hubble-listen-address: {{ .Values.hubble.listenAddress | quote }}
|
||||||
@@ -960,7 +885,7 @@ data:
|
|||||||
ipam-cilium-node-update-rate: {{ include "validateDuration" .Values.ipam.ciliumNodeUpdateRate | quote }}
|
ipam-cilium-node-update-rate: {{ include "validateDuration" .Values.ipam.ciliumNodeUpdateRate | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if (eq $ipam "cluster-pool") }}
|
{{- if or (eq $ipam "cluster-pool") (eq $ipam "cluster-pool-v2beta") }}
|
||||||
{{- if .Values.ipv4.enabled }}
|
{{- if .Values.ipv4.enabled }}
|
||||||
{{- if hasKey .Values.ipam.operator "clusterPoolIPv4PodCIDR" }}
|
{{- if hasKey .Values.ipam.operator "clusterPoolIPv4PodCIDR" }}
|
||||||
{{- /* ipam.operator.clusterPoolIPv4PodCIDR removed in v1.14, remove this failsafe around v1.17 */ -}}
|
{{- /* ipam.operator.clusterPoolIPv4PodCIDR removed in v1.14, remove this failsafe around v1.17 */ -}}
|
||||||
@@ -1002,8 +927,11 @@ data:
|
|||||||
limit-ipam-api-qps: {{ .Values.ipam.operator.externalAPILimitQPS | quote }}
|
limit-ipam-api-qps: {{ .Values.ipam.operator.externalAPILimitQPS | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.apiRateLimit }}
|
{{- if .Values.enableCnpStatusUpdates }}
|
||||||
api-rate-limit: {{ .Values.apiRateLimit | quote }}
|
disable-cnp-status-updates: "false"
|
||||||
|
{{- else if (eq $defaultEnableCnpStatusUpdates "false") }}
|
||||||
|
disable-cnp-status-updates: "true"
|
||||||
|
cnp-node-status-gc-interval: "0s"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.egressGateway.enabled }}
|
{{- if .Values.egressGateway.enabled }}
|
||||||
@@ -1035,6 +963,10 @@ data:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .Values.enableK8sEventHandover }}
|
||||||
|
enable-k8s-event-handover: "true"
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.crdWaitTimeout }}
|
{{- if .Values.crdWaitTimeout }}
|
||||||
crd-wait-timeout: {{ include "validateDuration" .Values.crdWaitTimeout | quote }}
|
crd-wait-timeout: {{ include "validateDuration" .Values.crdWaitTimeout | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -1086,7 +1018,6 @@ data:
|
|||||||
|
|
||||||
{{- if .Values.bgpControlPlane.enabled }}
|
{{- if .Values.bgpControlPlane.enabled }}
|
||||||
enable-bgp-control-plane: "true"
|
enable-bgp-control-plane: "true"
|
||||||
bgp-secrets-namespace: {{ .Values.bgpControlPlane.secretsNamespace.name | quote }}
|
|
||||||
{{- else }}
|
{{- else }}
|
||||||
enable-bgp-control-plane: "false"
|
enable-bgp-control-plane: "false"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -1133,8 +1064,10 @@ data:
|
|||||||
annotate-k8s-node: "true"
|
annotate-k8s-node: "true"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
k8s-client-qps: {{ .Values.k8sClientRateLimit.qps | default $defaultK8sClientQPS | quote}}
|
{{- if hasKey .Values "k8sClientRateLimit" }}
|
||||||
k8s-client-burst: {{ .Values.k8sClientRateLimit.burst | default $defaultK8sClientBurst | quote }}
|
k8s-client-qps: {{ .Values.k8sClientRateLimit.qps | quote }}
|
||||||
|
k8s-client-burst: {{ .Values.k8sClientRateLimit.burst | quote }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- if and .Values.operator.setNodeTaints (not .Values.operator.removeNodeTaints) -}}
|
{{- if and .Values.operator.setNodeTaints (not .Values.operator.removeNodeTaints) -}}
|
||||||
{{ fail "Cannot have operator.setNodeTaintsMaxNodes and not operator.removeNodeTaints = false" }}
|
{{ fail "Cannot have operator.setNodeTaintsMaxNodes and not operator.removeNodeTaints = false" }}
|
||||||
@@ -1159,13 +1092,6 @@ data:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.dnsProxy }}
|
{{- if .Values.dnsProxy }}
|
||||||
{{- if hasKey .Values.dnsProxy "enableTransparentMode" }}
|
|
||||||
# explicit setting gets precedence
|
|
||||||
dnsproxy-enable-transparent-mode: {{ .Values.dnsProxy.enableTransparentMode | quote }}
|
|
||||||
{{- else if eq $cniChainingMode "none" }}
|
|
||||||
# default DNS proxy to transparent mode in non-chaining modes
|
|
||||||
dnsproxy-enable-transparent-mode: {{ $defaultDNSProxyEnableTransparentMode | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.dnsProxy.dnsRejectResponseCode }}
|
{{- if .Values.dnsProxy.dnsRejectResponseCode }}
|
||||||
tofqdns-dns-reject-response-code: {{ .Values.dnsProxy.dnsRejectResponseCode | quote }}
|
tofqdns-dns-reject-response-code: {{ .Values.dnsProxy.dnsRejectResponseCode | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -1195,6 +1121,10 @@ data:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .Values.extraConfig }}
|
||||||
|
{{ toYaml .Values.extraConfig | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- if hasKey .Values "agentNotReadyTaintKey" }}
|
{{- if hasKey .Values "agentNotReadyTaintKey" }}
|
||||||
agent-not-ready-taint-key: {{ .Values.agentNotReadyTaintKey | quote }}
|
agent-not-ready-taint-key: {{ .Values.agentNotReadyTaintKey | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -1208,7 +1138,6 @@ data:
|
|||||||
mesh-auth-mutual-enabled: "true"
|
mesh-auth-mutual-enabled: "true"
|
||||||
mesh-auth-mutual-listener-port: {{ .Values.authentication.mutual.port | quote }}
|
mesh-auth-mutual-listener-port: {{ .Values.authentication.mutual.port | quote }}
|
||||||
mesh-auth-spire-agent-socket: {{ .Values.authentication.mutual.spire.agentSocketPath | quote }}
|
mesh-auth-spire-agent-socket: {{ .Values.authentication.mutual.spire.agentSocketPath | quote }}
|
||||||
mesh-auth-mutual-connect-timeout: {{ include "validateDuration" .Values.authentication.mutual.connectTimeout | quote }}
|
|
||||||
{{- if .Values.authentication.mutual.spire.serverAddress }}
|
{{- if .Values.authentication.mutual.spire.serverAddress }}
|
||||||
mesh-auth-spire-server-address: {{ .Values.authentication.mutual.spire.serverAddress | quote }}
|
mesh-auth-spire-server-address: {{ .Values.authentication.mutual.spire.serverAddress | quote }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
@@ -1229,16 +1158,6 @@ data:
|
|||||||
envoy-log: {{ .Values.envoy.log.path | quote }}
|
envoy-log: {{ .Values.envoy.log.path | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if hasKey .Values.clustermesh "maxConnectedClusters" }}
|
|
||||||
max-connected-clusters: {{ .Values.clustermesh.maxConnectedClusters | quote }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
# Extra config allows adding arbitrary properties to the cilium config.
|
|
||||||
# By putting it at the end of the ConfigMap, it's also possible to override existing properties.
|
|
||||||
{{- if .Values.extraConfig }}
|
|
||||||
{{ toYaml .Values.extraConfig | nindent 2 }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
---
|
---
|
||||||
{{- if and .Values.ipMasqAgent.enabled .Values.ipMasqAgent.config }}
|
{{- if and .Values.ipMasqAgent.enabled .Values.ipMasqAgent.config }}
|
||||||
|
|||||||
@@ -6,10 +6,6 @@ kind: ConfigMap
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-envoy-config
|
name: cilium-envoy-config
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.envoy.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
data:
|
data:
|
||||||
{{- (tpl (.Files.Glob "files/cilium-envoy/configmap/bootstrap-config.json").AsConfig .) | nindent 2 }}
|
{{- (tpl (.Files.Glob "files/cilium-envoy/configmap/bootstrap-config.json").AsConfig .) | nindent 2 }}
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,6 @@ kind: DaemonSet
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-envoy
|
name: cilium-envoy
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.envoy.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
k8s-app: cilium-envoy
|
k8s-app: cilium-envoy
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
@@ -65,11 +61,11 @@ spec:
|
|||||||
image: {{ include "cilium.image" .Values.envoy.image | quote }}
|
image: {{ include "cilium.image" .Values.envoy.image | quote }}
|
||||||
imagePullPolicy: {{ .Values.envoy.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.envoy.image.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- /usr/bin/cilium-envoy-starter
|
- /usr/bin/cilium-envoy
|
||||||
args:
|
args:
|
||||||
- '-c /var/run/cilium/envoy/bootstrap-config.json'
|
- '-c /var/run/cilium/envoy/bootstrap-config.json'
|
||||||
- '--base-id 0'
|
- '--base-id 0'
|
||||||
{{- if and (.Values.debug.enabled) (hasKey .Values.debug "verbose") (.Values.debug.verbose) (has "envoy" ( splitList " " .Values.debug.verbose )) }}
|
{{- if and (hasKey .Values.debug "verbose") (.Values.debug.verbose) (has "envoy" ( splitList " " .Values.debug.verbose )) }}
|
||||||
- '--log-level trace'
|
- '--log-level trace'
|
||||||
{{- else if and (.Values.debug.enabled) (hasKey .Values.debug "verbose") (.Values.debug.verbose) (has "flow" ( splitList " " .Values.debug.verbose )) }}
|
{{- else if and (.Values.debug.enabled) (hasKey .Values.debug "verbose") (.Values.debug.verbose) (has "flow" ( splitList " " .Values.debug.verbose )) }}
|
||||||
- '--log-level debug'
|
- '--log-level debug'
|
||||||
@@ -86,18 +82,17 @@ spec:
|
|||||||
{{- if semverCompare ">=1.20-0" .Capabilities.KubeVersion.Version }}
|
{{- if semverCompare ">=1.20-0" .Capabilities.KubeVersion.Version }}
|
||||||
startupProbe:
|
startupProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
host: {{ .Values.ipv4.enabled | ternary "127.0.0.1" "::1" | quote }}
|
host: "localhost"
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: {{ .Values.envoy.healthPort }}
|
port: {{ .Values.envoy.healthPort }}
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
failureThreshold: {{ .Values.envoy.startupProbe.failureThreshold }}
|
failureThreshold: {{ .Values.envoy.startupProbe.failureThreshold }}
|
||||||
periodSeconds: {{ .Values.envoy.startupProbe.periodSeconds }}
|
periodSeconds: {{ .Values.envoy.startupProbe.periodSeconds }}
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
initialDelaySeconds: 5
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
host: {{ .Values.ipv4.enabled | ternary "127.0.0.1" "::1" | quote }}
|
host: "localhost"
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: {{ .Values.envoy.healthPort }}
|
port: {{ .Values.envoy.healthPort }}
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
@@ -115,7 +110,7 @@ spec:
|
|||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
host: {{ .Values.ipv4.enabled | ternary "127.0.0.1" "::1" | quote }}
|
host: "localhost"
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: {{ .Values.envoy.healthPort }}
|
port: {{ .Values.envoy.healthPort }}
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
@@ -180,9 +175,6 @@ spec:
|
|||||||
- name: envoy-sockets
|
- name: envoy-sockets
|
||||||
mountPath: /var/run/cilium/envoy/sockets
|
mountPath: /var/run/cilium/envoy/sockets
|
||||||
readOnly: false
|
readOnly: false
|
||||||
- name: envoy-artifacts
|
|
||||||
mountPath: /var/run/cilium/envoy/artifacts
|
|
||||||
readOnly: true
|
|
||||||
- name: envoy-config
|
- name: envoy-config
|
||||||
mountPath: /var/run/cilium/envoy/
|
mountPath: /var/run/cilium/envoy/
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -232,10 +224,6 @@ spec:
|
|||||||
hostPath:
|
hostPath:
|
||||||
path: "{{ .Values.daemon.runPath }}/envoy/sockets"
|
path: "{{ .Values.daemon.runPath }}/envoy/sockets"
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
- name: envoy-artifacts
|
|
||||||
hostPath:
|
|
||||||
path: "{{ .Values.daemon.runPath }}/envoy/artifacts"
|
|
||||||
type: DirectoryOrCreate
|
|
||||||
- name: envoy-config
|
- name: envoy-config
|
||||||
configMap:
|
configMap:
|
||||||
name: cilium-envoy-config
|
name: cilium-envoy-config
|
||||||
|
|||||||
@@ -4,16 +4,11 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-envoy
|
name: cilium-envoy
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- if or (not .Values.envoy.prometheus.serviceMonitor.enabled) .Values.envoy.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- if not .Values.envoy.prometheus.serviceMonitor.enabled }}
|
{{- if not .Values.envoy.prometheus.serviceMonitor.enabled }}
|
||||||
|
annotations:
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
prometheus.io/port: {{ .Values.proxy.prometheus.port | default .Values.envoy.prometheus.port | quote }}
|
prometheus.io/port: {{ .Values.proxy.prometheus.port | default .Values.envoy.prometheus.port | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.envoy.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
k8s-app: cilium-envoy
|
k8s-app: cilium-envoy
|
||||||
app.kubernetes.io/name: cilium-envoy
|
app.kubernetes.io/name: cilium-envoy
|
||||||
|
|||||||
@@ -4,13 +4,8 @@ kind: ServiceAccount
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.serviceAccounts.envoy.name | quote }}
|
name: {{ .Values.serviceAccounts.envoy.name | quote }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- if or .Values.serviceAccounts.envoy.annotations .Values.envoy.annotations }}
|
{{- if .Values.serviceAccounts.envoy.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.envoy.annotations }}
|
{{- toYaml .Values.serviceAccounts.envoy.annotations | nindent 4 }}
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.serviceAccounts.envoy.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -7,19 +7,13 @@ metadata:
|
|||||||
namespace: {{ .Values.envoy.prometheus.serviceMonitor.namespace | default .Release.Namespace }}
|
namespace: {{ .Values.envoy.prometheus.serviceMonitor.namespace | default .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
app.kubernetes.io/name: cilium-envoy
|
|
||||||
{{- with .Values.envoy.prometheus.serviceMonitor.labels }}
|
{{- with .Values.envoy.prometheus.serviceMonitor.labels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .Values.envoy.prometheus.serviceMonitor.annotations .Values.envoy.annotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.envoy.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.envoy.prometheus.serviceMonitor.annotations }}
|
{{- with .Values.envoy.prometheus.serviceMonitor.annotations }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
@@ -28,7 +22,7 @@ spec:
|
|||||||
matchNames:
|
matchNames:
|
||||||
- {{ .Release.Namespace }}
|
- {{ .Release.Namespace }}
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: envoy-metrics
|
- port: metrics
|
||||||
interval: {{ .Values.envoy.prometheus.serviceMonitor.interval | quote }}
|
interval: {{ .Values.envoy.prometheus.serviceMonitor.interval | quote }}
|
||||||
honorLabels: true
|
honorLabels: true
|
||||||
path: /metrics
|
path: /metrics
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
{{- if and .Values.hubble.export.dynamic.enabled .Values.hubble.export.dynamic.config.createConfigMap }}
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: {{ .Values.hubble.export.dynamic.config.configMapName }}
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
data:
|
|
||||||
flowlogs.yaml: |
|
|
||||||
flowLogs:
|
|
||||||
{{ .Values.hubble.export.dynamic.config.content | toYaml | indent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{{- if .Values.gatewayAPI.enabled -}}
|
{{- if .Values.gatewayAPI.enabled -}}
|
||||||
{{- if .Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1/GatewayClass" }}
|
{{- if .Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1beta1/GatewayClass" }}
|
||||||
apiVersion: gateway.networking.k8s.io/v1
|
apiVersion: gateway.networking.k8s.io/v1beta1
|
||||||
kind: GatewayClass
|
kind: GatewayClass
|
||||||
metadata:
|
metadata:
|
||||||
name: cilium
|
name: cilium
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ apiVersion: apps/v1
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-node-init
|
name: cilium-node-init
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.nodeinit.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app: cilium-node-init
|
app: cilium-node-init
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
|
|||||||
@@ -4,13 +4,8 @@ kind: ServiceAccount
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.serviceAccounts.nodeinit.name | quote }}
|
name: {{ .Values.serviceAccounts.nodeinit.name | quote }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- if or .Values.serviceAccounts.nodeinit.annotations .Values.nodeinit.annotations }}
|
{{- if .Values.serviceAccounts.nodeinit.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.nodeinit.annotations }}
|
{{- toYaml .Values.serviceAccounts.nodeinit.annotations | nindent 4 }}
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.serviceAccounts.nodeinit.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -3,10 +3,6 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: cilium-operator
|
name: cilium-operator
|
||||||
{{- with .Values.operator.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
rules:
|
rules:
|
||||||
@@ -161,9 +157,6 @@ rules:
|
|||||||
resources:
|
resources:
|
||||||
- ciliumendpointslices
|
- ciliumendpointslices
|
||||||
- ciliumenvoyconfigs
|
- ciliumenvoyconfigs
|
||||||
- ciliumbgppeerconfigs
|
|
||||||
- ciliumbgpadvertisements
|
|
||||||
- ciliumbgpnodeconfigs
|
|
||||||
verbs:
|
verbs:
|
||||||
- create
|
- create
|
||||||
- update
|
- update
|
||||||
@@ -190,11 +183,6 @@ rules:
|
|||||||
resourceNames:
|
resourceNames:
|
||||||
- ciliumloadbalancerippools.cilium.io
|
- ciliumloadbalancerippools.cilium.io
|
||||||
- ciliumbgppeeringpolicies.cilium.io
|
- ciliumbgppeeringpolicies.cilium.io
|
||||||
- ciliumbgpclusterconfigs.cilium.io
|
|
||||||
- ciliumbgppeerconfigs.cilium.io
|
|
||||||
- ciliumbgpadvertisements.cilium.io
|
|
||||||
- ciliumbgpnodeconfigs.cilium.io
|
|
||||||
- ciliumbgpnodeconfigoverrides.cilium.io
|
|
||||||
- ciliumclusterwideenvoyconfigs.cilium.io
|
- ciliumclusterwideenvoyconfigs.cilium.io
|
||||||
- ciliumclusterwidenetworkpolicies.cilium.io
|
- ciliumclusterwidenetworkpolicies.cilium.io
|
||||||
- ciliumegressgatewaypolicies.cilium.io
|
- ciliumegressgatewaypolicies.cilium.io
|
||||||
@@ -215,8 +203,6 @@ rules:
|
|||||||
resources:
|
resources:
|
||||||
- ciliumloadbalancerippools
|
- ciliumloadbalancerippools
|
||||||
- ciliumpodippools
|
- ciliumpodippools
|
||||||
- ciliumbgpclusterconfigs
|
|
||||||
- ciliumbgpnodeconfigoverrides
|
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
@@ -272,7 +258,6 @@ rules:
|
|||||||
- gateways
|
- gateways
|
||||||
- tlsroutes
|
- tlsroutes
|
||||||
- httproutes
|
- httproutes
|
||||||
- grpcroutes
|
|
||||||
- referencegrants
|
- referencegrants
|
||||||
- referencepolicies
|
- referencepolicies
|
||||||
verbs:
|
verbs:
|
||||||
@@ -285,7 +270,6 @@ rules:
|
|||||||
- gatewayclasses/status
|
- gatewayclasses/status
|
||||||
- gateways/status
|
- gateways/status
|
||||||
- httproutes/status
|
- httproutes/status
|
||||||
- grpcroutes/status
|
|
||||||
- tlsroutes/status
|
- tlsroutes/status
|
||||||
verbs:
|
verbs:
|
||||||
- update
|
- update
|
||||||
|
|||||||
@@ -3,10 +3,6 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: cilium-operator
|
name: cilium-operator
|
||||||
{{- with .Values.operator.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
roleRef:
|
roleRef:
|
||||||
|
|||||||
@@ -15,14 +15,9 @@ metadata:
|
|||||||
{{- if $.Values.operator.dashboards.label }}
|
{{- if $.Values.operator.dashboards.label }}
|
||||||
{{ $.Values.operator.dashboards.label }}: {{ ternary $.Values.operator.dashboards.labelValue "1" (not (empty $.Values.operator.dashboards.labelValue)) | quote }}
|
{{ $.Values.operator.dashboards.label }}: {{ ternary $.Values.operator.dashboards.labelValue "1" (not (empty $.Values.operator.dashboards.labelValue)) | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or $.Values.operator.dashboards.annotations $.Values.operator.annotations }}
|
{{- with $.Values.operator.dashboards.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- with $.Values.operator.dashboards.annotations }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with $.Values.operator.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
data:
|
data:
|
||||||
{{ $dashboardName }}.json: {{ $.Files.Get $path | toJson }}
|
{{ $dashboardName }}.json: {{ $.Files.Get $path | toJson }}
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-operator
|
name: cilium-operator
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.operator.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
io.cilium/app: operator
|
io.cilium/app: operator
|
||||||
name: cilium-operator
|
name: cilium-operator
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: PodDisruptionBudget
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-operator
|
name: cilium-operator
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.operator.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
io.cilium/app: operator
|
io.cilium/app: operator
|
||||||
name: cilium-operator
|
name: cilium-operator
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: Role
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-operator-ingress-secrets
|
name: cilium-operator-ingress-secrets
|
||||||
namespace: {{ .Values.ingressController.secretsNamespace.name | quote }}
|
namespace: {{ .Values.ingressController.secretsNamespace.name | quote }}
|
||||||
{{- with .Values.operator.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
rules:
|
rules:
|
||||||
@@ -30,10 +26,6 @@ kind: Role
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-operator-gateway-secrets
|
name: cilium-operator-gateway-secrets
|
||||||
namespace: {{ .Values.gatewayAPI.secretsNamespace.name | quote }}
|
namespace: {{ .Values.gatewayAPI.secretsNamespace.name | quote }}
|
||||||
{{- with .Values.operator.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: RoleBinding
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-operator-ingress-secrets
|
name: cilium-operator-ingress-secrets
|
||||||
namespace: {{ .Values.ingressController.secretsNamespace.name | quote }}
|
namespace: {{ .Values.ingressController.secretsNamespace.name | quote }}
|
||||||
{{- with .Values.operator.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
roleRef:
|
roleRef:
|
||||||
@@ -28,10 +24,6 @@ kind: RoleBinding
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-operator-gateway-secrets
|
name: cilium-operator-gateway-secrets
|
||||||
namespace: {{ .Values.gatewayAPI.secretsNamespace.name | quote }}
|
namespace: {{ .Values.gatewayAPI.secretsNamespace.name | quote }}
|
||||||
{{- with .Values.operator.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
roleRef:
|
roleRef:
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: Secret
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-azure
|
name: cilium-azure
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.operator.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
AZURE_CLIENT_ID: {{ default "" .Values.azure.clientID | b64enc | quote }}
|
AZURE_CLIENT_ID: {{ default "" .Values.azure.clientID | b64enc | quote }}
|
||||||
|
|||||||
@@ -4,10 +4,6 @@ apiVersion: v1
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-operator
|
name: cilium-operator
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.operator.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
io.cilium/app: operator
|
io.cilium/app: operator
|
||||||
name: cilium-operator
|
name: cilium-operator
|
||||||
|
|||||||
@@ -8,13 +8,8 @@ kind: ServiceAccount
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.serviceAccounts.operator.name | quote }}
|
name: {{ .Values.serviceAccounts.operator.name | quote }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- if or .Values.serviceAccounts.operator.annotations .Values.operator.annotations }}
|
{{- if .Values.serviceAccounts.operator.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.operator.annotations }}
|
{{- toYaml .Values.serviceAccounts.operator.annotations | nindent 4 }}
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.serviceAccounts.operator.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -10,15 +10,10 @@ metadata:
|
|||||||
{{- with .Values.operator.prometheus.serviceMonitor.labels }}
|
{{- with .Values.operator.prometheus.serviceMonitor.labels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .Values.operator.prometheus.serviceMonitor.annotations .Values.operator.annotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.operator.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.operator.prometheus.serviceMonitor.annotations }}
|
{{- with .Values.operator.prometheus.serviceMonitor.annotations }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
@@ -42,7 +37,4 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
targetLabels:
|
targetLabels:
|
||||||
- io.cilium/app
|
- io.cilium/app
|
||||||
{{- if .Values.operator.prometheus.serviceMonitor.jobLabel }}
|
|
||||||
jobLabel: {{ .Values.operator.prometheus.serviceMonitor.jobLabel | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -6,10 +6,6 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: cilium-pre-flight
|
name: cilium-pre-flight
|
||||||
{{- with .Values.preflight.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
rules:
|
rules:
|
||||||
@@ -86,9 +82,6 @@ rules:
|
|||||||
resources:
|
resources:
|
||||||
- ciliumloadbalancerippools
|
- ciliumloadbalancerippools
|
||||||
- ciliumbgppeeringpolicies
|
- ciliumbgppeeringpolicies
|
||||||
- ciliumbgpnodeconfigs
|
|
||||||
- ciliumbgpadvertisements
|
|
||||||
- ciliumbgppeerconfigs
|
|
||||||
- ciliumclusterwideenvoyconfigs
|
- ciliumclusterwideenvoyconfigs
|
||||||
- ciliumclusterwidenetworkpolicies
|
- ciliumclusterwidenetworkpolicies
|
||||||
- ciliumegressgatewaypolicies
|
- ciliumegressgatewaypolicies
|
||||||
@@ -144,7 +137,6 @@ rules:
|
|||||||
- ciliumendpoints/status
|
- ciliumendpoints/status
|
||||||
- ciliumendpoints
|
- ciliumendpoints
|
||||||
- ciliuml2announcementpolicies/status
|
- ciliuml2announcementpolicies/status
|
||||||
- ciliumbgpnodeconfigs/status
|
|
||||||
verbs:
|
verbs:
|
||||||
- patch
|
- patch
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -3,10 +3,6 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: cilium-pre-flight
|
name: cilium-pre-flight
|
||||||
{{- with .Values.preflight.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
roleRef:
|
roleRef:
|
||||||
|
|||||||
@@ -4,10 +4,6 @@ kind: DaemonSet
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-pre-flight-check
|
name: cilium-pre-flight-check
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.preflight.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
@@ -70,13 +66,8 @@ spec:
|
|||||||
- /tmp/ready
|
- /tmp/ready
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
env:
|
|
||||||
- name: K8S_NODE_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
apiVersion: v1
|
|
||||||
fieldPath: spec.nodeName
|
|
||||||
{{- with .Values.preflight.extraEnv }}
|
{{- with .Values.preflight.extraEnv }}
|
||||||
|
env:
|
||||||
{{- toYaml . | trim | nindent 12 }}
|
{{- toYaml . | trim | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@@ -113,7 +104,7 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- -ec
|
- -ec
|
||||||
- |
|
- |
|
||||||
cilium-dbg preflight fqdn-poller --tofqdns-pre-cache {{ .Values.preflight.tofqdnsPreCache }};
|
cilium preflight fqdn-poller --tofqdns-pre-cache {{ .Values.preflight.tofqdnsPreCache }};
|
||||||
touch /tmp/ready-tofqdns-precache;
|
touch /tmp/ready-tofqdns-precache;
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
|
|||||||
@@ -4,10 +4,6 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-pre-flight-check
|
name: cilium-pre-flight-check
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.preflight.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
app.kubernetes.io/name: cilium-pre-flight-check
|
app.kubernetes.io/name: cilium-pre-flight-check
|
||||||
@@ -43,7 +39,7 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- -ec
|
- -ec
|
||||||
- |
|
- |
|
||||||
cilium-dbg preflight validate-cnp;
|
cilium preflight validate-cnp;
|
||||||
touch /tmp/ready-validate-cnp;
|
touch /tmp/ready-validate-cnp;
|
||||||
sleep 1h;
|
sleep 1h;
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: PodDisruptionBudget
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-pre-flight-check
|
name: cilium-pre-flight-check
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.preflight.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
k8s-app: cilium-pre-flight-check-deployment
|
k8s-app: cilium-pre-flight-check-deployment
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
|
|||||||
@@ -4,13 +4,8 @@ kind: ServiceAccount
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.serviceAccounts.preflight.name | quote }}
|
name: {{ .Values.serviceAccounts.preflight.name | quote }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- if or .Values.serviceAccounts.preflight.annotations .Values.preflight.annotations }}
|
{{- if .Values.serviceAccounts.preflight.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.preflight.annotations }}
|
{{ toYaml .Values.serviceAccounts.preflight.annotations | nindent 4 }}
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.serviceAccounts.preflight.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,14 +1,32 @@
|
|||||||
{{- $secretNamespaces := dict -}}
|
{{- if and .Values.ingressController.enabled .Values.ingressController.secretsNamespace.create .Values.ingressController.secretsNamespace.name }}
|
||||||
{{- range $cfg := tuple .Values.ingressController .Values.gatewayAPI .Values.envoyConfig .Values.bgpControlPlane -}}
|
|
||||||
{{- if and $cfg.enabled $cfg.secretsNamespace.create $cfg.secretsNamespace.name -}}
|
|
||||||
{{- $_ := set $secretNamespaces $cfg.secretsNamespace.name 1 -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{- range $name, $_ := $secretNamespaces }}
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $name | quote }}
|
name: {{ .Values.ingressController.secretsNamespace.name | quote }}
|
||||||
|
{{- end}}
|
||||||
|
|
||||||
|
# Only create the namespace if it's different from Ingress secret namespace or Ingress is not enabled.
|
||||||
|
{{- if and .Values.gatewayAPI.enabled .Values.gatewayAPI.secretsNamespace.create .Values.gatewayAPI.secretsNamespace.name
|
||||||
|
(or (not (and .Values.ingressController.enabled .Values.ingressController.secretsNamespace.create .Values.ingressController.secretsNamespace.name))
|
||||||
|
(ne .Values.gatewayAPI.secretsNamespace.name .Values.ingressController.secretsNamespace.name)) }}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.gatewayAPI.secretsNamespace.name | quote }}
|
||||||
|
{{- end}}
|
||||||
|
|
||||||
|
# Only create the namespace if it's different from Ingress and Gateway API secret namespaces (if enabled).
|
||||||
|
{{- if and .Values.envoyConfig.enabled .Values.envoyConfig.secretsNamespace.create .Values.envoyConfig.secretsNamespace.name
|
||||||
|
(and
|
||||||
|
(or (not (and .Values.ingressController.enabled .Values.ingressController.secretsNamespace.create .Values.ingressController.secretsNamespace.name))
|
||||||
|
(ne .Values.envoyConfig.secretsNamespace.name .Values.ingressController.secretsNamespace.name))
|
||||||
|
(or (not (and .Values.gatewayAPI.enabled .Values.gatewayAPI.secretsNamespace.create .Values.gatewayAPI.secretsNamespace.name))
|
||||||
|
(ne .Values.envoyConfig.secretsNamespace.name .Values.gatewayAPI.secretsNamespace.name))) }}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.envoyConfig.secretsNamespace.name | quote }}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ metadata:
|
|||||||
name: clustermesh-apiserver
|
name: clustermesh-apiserver
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- cilium.io
|
- cilium.io
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ metadata:
|
|||||||
name: clustermesh-apiserver
|
name: clustermesh-apiserver
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
|
|||||||
@@ -7,10 +7,6 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver
|
name: clustermesh-apiserver
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
k8s-app: clustermesh-apiserver
|
k8s-app: clustermesh-apiserver
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
@@ -48,37 +44,41 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: etcd-init
|
- name: etcd-init
|
||||||
image: {{ include "cilium.image" .Values.clustermesh.apiserver.image | quote }}
|
image: {{ include "cilium.image" .Values.clustermesh.apiserver.etcd.image | quote }}
|
||||||
imagePullPolicy: {{ .Values.clustermesh.apiserver.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.clustermesh.apiserver.etcd.image.pullPolicy }}
|
||||||
command:
|
command: ["/bin/sh", "-c"]
|
||||||
- /usr/bin/clustermesh-apiserver
|
|
||||||
args:
|
args:
|
||||||
- etcdinit
|
- |
|
||||||
{{- if .Values.debug.enabled }}
|
rm -rf /var/run/etcd/*;
|
||||||
- --debug
|
/usr/local/bin/etcd --data-dir=/var/run/etcd --name=clustermesh-apiserver --listen-client-urls=http://127.0.0.1:2379 --advertise-client-urls=http://127.0.0.1:2379 --initial-cluster-token=clustermesh-apiserver --initial-cluster-state=new --auto-compaction-retention=1 &
|
||||||
{{- end }}
|
|
||||||
# These need to match the equivalent arguments to etcd in the main container.
|
# The following key needs to be created before that the cilium agents
|
||||||
- --etcd-cluster-name=clustermesh-apiserver
|
# have the possibility of connecting to etcd.
|
||||||
- --etcd-initial-cluster-token=clustermesh-apiserver
|
etcdctl put cilium/.has-cluster-config true
|
||||||
- --etcd-data-dir=/var/run/etcd
|
|
||||||
{{- with .Values.clustermesh.apiserver.etcd.init.extraArgs }}
|
etcdctl user add root --no-password;
|
||||||
{{- toYaml . | trim | nindent 8 }}
|
etcdctl user grant-role root root;
|
||||||
{{- end }}
|
etcdctl user add admin-{{ .Values.cluster.name }} --no-password;
|
||||||
|
etcdctl user grant-role admin-{{ .Values.cluster.name }} root;
|
||||||
|
etcdctl user add externalworkload --no-password;
|
||||||
|
etcdctl role add externalworkload;
|
||||||
|
etcdctl role grant-permission externalworkload --from-key read '';
|
||||||
|
etcdctl role grant-permission externalworkload readwrite --prefix cilium/state/noderegister/v1/;
|
||||||
|
etcdctl role grant-permission externalworkload readwrite --prefix cilium/.initlock/;
|
||||||
|
etcdctl user grant-role externalworkload externalworkload;
|
||||||
|
etcdctl user add remote --no-password;
|
||||||
|
etcdctl role add remote;
|
||||||
|
etcdctl role grant-permission remote --from-key read '';
|
||||||
|
etcdctl user grant-role remote remote;
|
||||||
|
etcdctl auth enable;
|
||||||
|
exit
|
||||||
env:
|
env:
|
||||||
# The Cilium cluster name (specified via the `CILIUM_CLUSTER_NAME` environment variable) and the etcd cluster
|
- name: ETCDCTL_API
|
||||||
# name (specified via the `--etcd-cluster-name` argument) are very different concepts. The Cilium cluster name
|
value: "3"
|
||||||
# is the name of the overall Cilium cluster, and is used to set the admin account username. The etcd cluster
|
- name: HOSTNAME_IP
|
||||||
# name is a concept that's only relevant for etcd itself. The etcd cluster name must be the same for both this
|
|
||||||
# command and the actual invocation of etcd in the main containers of this Pod, but it's otherwise not
|
|
||||||
# relevant to Cilium.
|
|
||||||
- name: CILIUM_CLUSTER_NAME
|
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
fieldRef:
|
||||||
name: cilium-config
|
fieldPath: status.podIP
|
||||||
key: cluster-name
|
|
||||||
{{- with .Values.clustermesh.apiserver.etcd.init.extraEnv }}
|
|
||||||
{{- toYaml . | trim | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: etcd-data-dir
|
- name: etcd-data-dir
|
||||||
mountPath: /var/run/etcd
|
mountPath: /var/run/etcd
|
||||||
@@ -92,11 +92,10 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: etcd
|
- name: etcd
|
||||||
# The clustermesh-apiserver container image includes an etcd binary.
|
image: {{ include "cilium.image" .Values.clustermesh.apiserver.etcd.image | quote }}
|
||||||
image: {{ include "cilium.image" .Values.clustermesh.apiserver.image | quote }}
|
imagePullPolicy: {{ .Values.clustermesh.apiserver.etcd.image.pullPolicy }}
|
||||||
imagePullPolicy: {{ .Values.clustermesh.apiserver.image.pullPolicy }}
|
|
||||||
command:
|
command:
|
||||||
- /usr/bin/etcd
|
- /usr/local/bin/etcd
|
||||||
args:
|
args:
|
||||||
- --data-dir=/var/run/etcd
|
- --data-dir=/var/run/etcd
|
||||||
- --name=clustermesh-apiserver
|
- --name=clustermesh-apiserver
|
||||||
@@ -148,17 +147,12 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.clustermesh.apiserver.etcd.lifecycle }}
|
|
||||||
lifecycle:
|
|
||||||
{{- toYaml . | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
- name: apiserver
|
- name: apiserver
|
||||||
image: {{ include "cilium.image" .Values.clustermesh.apiserver.image | quote }}
|
image: {{ include "cilium.image" .Values.clustermesh.apiserver.image | quote }}
|
||||||
imagePullPolicy: {{ .Values.clustermesh.apiserver.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.clustermesh.apiserver.image.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- /usr/bin/clustermesh-apiserver
|
- /usr/bin/clustermesh-apiserver
|
||||||
args:
|
args:
|
||||||
- clustermesh
|
|
||||||
{{- if .Values.debug.enabled }}
|
{{- if .Values.debug.enabled }}
|
||||||
- --debug
|
- --debug
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -166,9 +160,6 @@ spec:
|
|||||||
- --cluster-id=$(CLUSTER_ID)
|
- --cluster-id=$(CLUSTER_ID)
|
||||||
- --kvstore-opt
|
- --kvstore-opt
|
||||||
- etcd.config=/var/lib/cilium/etcd-config.yaml
|
- etcd.config=/var/lib/cilium/etcd-config.yaml
|
||||||
{{- if hasKey .Values.clustermesh "maxConnectedClusters" }}
|
|
||||||
- --max-connected-clusters={{ .Values.clustermesh.maxConnectedClusters }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if ne .Values.clustermesh.apiserver.tls.authMode "legacy" }}
|
{{- if ne .Values.clustermesh.apiserver.tls.authMode "legacy" }}
|
||||||
- --cluster-users-enabled
|
- --cluster-users-enabled
|
||||||
- --cluster-users-config-path=/var/lib/cilium/etcd-config/users.yaml
|
- --cluster-users-config-path=/var/lib/cilium/etcd-config/users.yaml
|
||||||
@@ -176,7 +167,6 @@ spec:
|
|||||||
- --enable-external-workloads={{ .Values.externalWorkloads.enabled }}
|
- --enable-external-workloads={{ .Values.externalWorkloads.enabled }}
|
||||||
{{- if .Values.clustermesh.apiserver.metrics.enabled }}
|
{{- if .Values.clustermesh.apiserver.metrics.enabled }}
|
||||||
- --prometheus-serve-addr=:{{ .Values.clustermesh.apiserver.metrics.port }}
|
- --prometheus-serve-addr=:{{ .Values.clustermesh.apiserver.metrics.port }}
|
||||||
- --controller-group-metrics=all
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.clustermesh.apiserver.extraArgs }}
|
{{- with .Values.clustermesh.apiserver.extraArgs }}
|
||||||
{{- toYaml . | trim | nindent 8 }}
|
{{- toYaml . | trim | nindent 8 }}
|
||||||
@@ -234,18 +224,13 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.clustermesh.apiserver.lifecycle }}
|
|
||||||
lifecycle:
|
|
||||||
{{- toYaml . | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.clustermesh.apiserver.kvstoremesh.enabled }}
|
{{- if .Values.clustermesh.apiserver.kvstoremesh.enabled }}
|
||||||
- name: kvstoremesh
|
- name: kvstoremesh
|
||||||
image: {{ include "cilium.image" .Values.clustermesh.apiserver.image | quote }}
|
image: {{ include "cilium.image" .Values.clustermesh.apiserver.kvstoremesh.image | quote }}
|
||||||
imagePullPolicy: {{ .Values.clustermesh.apiserver.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.clustermesh.apiserver.kvstoremesh.image.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- /usr/bin/clustermesh-apiserver
|
- /usr/bin/kvstoremesh
|
||||||
args:
|
args:
|
||||||
- kvstoremesh
|
|
||||||
{{- if .Values.debug.enabled }}
|
{{- if .Values.debug.enabled }}
|
||||||
- --debug
|
- --debug
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -255,12 +240,8 @@ spec:
|
|||||||
- --kvstore-opt=etcd.qps=100
|
- --kvstore-opt=etcd.qps=100
|
||||||
- --kvstore-opt=etcd.maxInflight=10
|
- --kvstore-opt=etcd.maxInflight=10
|
||||||
- --clustermesh-config=/var/lib/cilium/clustermesh
|
- --clustermesh-config=/var/lib/cilium/clustermesh
|
||||||
{{- if hasKey .Values.clustermesh "maxConnectedClusters" }}
|
|
||||||
- --max-connected-clusters={{ .Values.clustermesh.maxConnectedClusters }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.clustermesh.apiserver.metrics.kvstoremesh.enabled }}
|
{{- if .Values.clustermesh.apiserver.metrics.kvstoremesh.enabled }}
|
||||||
- --prometheus-serve-addr=:{{ .Values.clustermesh.apiserver.metrics.kvstoremesh.port }}
|
- --prometheus-serve-addr=:{{ .Values.clustermesh.apiserver.metrics.kvstoremesh.port }}
|
||||||
- --controller-group-metrics=all
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.clustermesh.apiserver.kvstoremesh.extraArgs }}
|
{{- with .Values.clustermesh.apiserver.kvstoremesh.extraArgs }}
|
||||||
{{- toYaml . | trim | nindent 8 }}
|
{{- toYaml . | trim | nindent 8 }}
|
||||||
@@ -304,10 +285,6 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.clustermesh.apiserver.kvstoremesh.lifecycle }}
|
|
||||||
lifecycle:
|
|
||||||
{{- toYaml . | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: etcd-server-secrets
|
- name: etcd-server-secrets
|
||||||
@@ -394,7 +371,6 @@ spec:
|
|||||||
priorityClassName: {{ include "cilium.priorityClass" (list $ .Values.clustermesh.apiserver.priorityClassName "system-cluster-critical") }}
|
priorityClassName: {{ include "cilium.priorityClass" (list $ .Values.clustermesh.apiserver.priorityClassName "system-cluster-critical") }}
|
||||||
serviceAccount: {{ .Values.serviceAccounts.clustermeshApiserver.name | quote }}
|
serviceAccount: {{ .Values.serviceAccounts.clustermeshApiserver.name | quote }}
|
||||||
serviceAccountName: {{ .Values.serviceAccounts.clustermeshApiserver.name | quote }}
|
serviceAccountName: {{ .Values.serviceAccounts.clustermeshApiserver.name | quote }}
|
||||||
terminationGracePeriodSeconds: {{ .Values.clustermesh.apiserver.terminationGracePeriodSeconds }}
|
|
||||||
automountServiceAccountToken: {{ .Values.serviceAccounts.clustermeshApiserver.automount }}
|
automountServiceAccountToken: {{ .Values.serviceAccounts.clustermeshApiserver.automount }}
|
||||||
{{- with .Values.clustermesh.apiserver.affinity }}
|
{{- with .Values.clustermesh.apiserver.affinity }}
|
||||||
affinity:
|
affinity:
|
||||||
|
|||||||
@@ -7,10 +7,6 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-metrics
|
name: clustermesh-apiserver-metrics
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
k8s-app: clustermesh-apiserver
|
k8s-app: clustermesh-apiserver
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: PodDisruptionBudget
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver
|
name: clustermesh-apiserver
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
k8s-app: clustermesh-apiserver
|
k8s-app: clustermesh-apiserver
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
|
|||||||
@@ -8,14 +8,9 @@ metadata:
|
|||||||
k8s-app: clustermesh-apiserver
|
k8s-app: clustermesh-apiserver
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
app.kubernetes.io/name: clustermesh-apiserver
|
app.kubernetes.io/name: clustermesh-apiserver
|
||||||
{{- if or .Values.clustermesh.apiserver.service.annotations .Values.clustermesh.annotations }}
|
{{- with .Values.clustermesh.apiserver.service.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.clustermesh.annotations }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.clustermesh.apiserver.service.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
type: {{ .Values.clustermesh.apiserver.service.type }}
|
type: {{ .Values.clustermesh.apiserver.service.type }}
|
||||||
|
|||||||
@@ -4,13 +4,8 @@ kind: ServiceAccount
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.serviceAccounts.clustermeshApiserver.name | quote }}
|
name: {{ .Values.serviceAccounts.clustermeshApiserver.name | quote }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- if or .Values.serviceAccounts.clustermeshApiserver.annotations .Values.clustermesh.annotations }}
|
{{- with .Values.serviceAccounts.clustermeshApiserver.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.clustermesh.annotations }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.serviceAccounts.clustermeshApiserver.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -14,15 +14,10 @@ metadata:
|
|||||||
{{- with .Values.clustermesh.apiserver.metrics.serviceMonitor.labels }}
|
{{- with .Values.clustermesh.apiserver.metrics.serviceMonitor.labels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .Values.clustermesh.apiserver.metrics.serviceMonitor.annotations .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.clustermesh.apiserver.metrics.serviceMonitor.annotations }}
|
{{- with .Values.clustermesh.apiserver.metrics.serviceMonitor.annotations }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: Certificate
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-admin-cert
|
name: clustermesh-apiserver-admin-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
issuerRef:
|
issuerRef:
|
||||||
{{- toYaml .Values.clustermesh.apiserver.tls.auto.certManagerIssuerRef | nindent 4 }}
|
{{- toYaml .Values.clustermesh.apiserver.tls.auto.certManagerIssuerRef | nindent 4 }}
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: Certificate
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-client-cert
|
name: clustermesh-apiserver-client-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
issuerRef:
|
issuerRef:
|
||||||
{{- toYaml .Values.clustermesh.apiserver.tls.auto.certManagerIssuerRef | nindent 4 }}
|
{{- toYaml .Values.clustermesh.apiserver.tls.auto.certManagerIssuerRef | nindent 4 }}
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: Certificate
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-remote-cert
|
name: clustermesh-apiserver-remote-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
issuerRef:
|
issuerRef:
|
||||||
{{- toYaml .Values.clustermesh.apiserver.tls.auto.certManagerIssuerRef | nindent 4 }}
|
{{- toYaml .Values.clustermesh.apiserver.tls.auto.certManagerIssuerRef | nindent 4 }}
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: Certificate
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-server-cert
|
name: clustermesh-apiserver-server-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
issuerRef:
|
issuerRef:
|
||||||
{{- toYaml .Values.clustermesh.apiserver.tls.auto.certManagerIssuerRef | nindent 4 }}
|
{{- toYaml .Values.clustermesh.apiserver.tls.auto.certManagerIssuerRef | nindent 4 }}
|
||||||
|
|||||||
@@ -26,8 +26,12 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
- "--ca-generate"
|
- "--ca-generate"
|
||||||
- "--ca-reuse-secret"
|
- "--ca-reuse-secret"
|
||||||
{{- if and .Values.tls.ca.cert .Values.tls.ca.key }}
|
{{- if .Values.clustermesh.apiserver.tls.ca.cert }}
|
||||||
|
- "--ca-secret-name=clustermesh-apiserver-ca-cert"
|
||||||
|
{{- else -}}
|
||||||
|
{{- if and .Values.tls.ca.cert .Values.tls.ca.key }}
|
||||||
- "--ca-secret-name=cilium-ca"
|
- "--ca-secret-name=cilium-ca"
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- "--clustermesh-apiserver-server-cert-generate"
|
- "--clustermesh-apiserver-server-cert-generate"
|
||||||
- "--clustermesh-apiserver-server-cert-validity-duration={{ $certValiditySecondsStr }}"
|
- "--clustermesh-apiserver-server-cert-validity-duration={{ $certValiditySecondsStr }}"
|
||||||
@@ -65,9 +69,5 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
affinity:
|
|
||||||
{{- with .Values.certgen.affinity }}
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
ttlSecondsAfterFinished: {{ .Values.certgen.ttlSecondsAfterFinished }}
|
ttlSecondsAfterFinished: {{ .Values.certgen.ttlSecondsAfterFinished }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{{- if and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "cronJob") }}
|
||||||
|
{{- $crt := .Values.clustermesh.apiserver.tls.ca.cert | default .Values.tls.ca.cert -}}
|
||||||
|
{{- $key := .Values.clustermesh.apiserver.tls.ca.key | default .Values.tls.ca.key -}}
|
||||||
|
{{- if and $crt $key }}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: clustermesh-apiserver-ca-cert
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
data:
|
||||||
|
ca.crt: {{ $crt }}
|
||||||
|
ca.key: {{ $key }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -4,10 +4,6 @@ kind: CronJob
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-generate-certs
|
name: clustermesh-apiserver-generate-certs
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
k8s-app: clustermesh-apiserver-generate-certs
|
k8s-app: clustermesh-apiserver-generate-certs
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
|
|||||||
@@ -13,8 +13,5 @@ metadata:
|
|||||||
{{- with .Values.certgen.annotations.job }}
|
{{- with .Values.certgen.annotations.job }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{ include "clustermesh-apiserver-generate-certs.job.spec" . }}
|
{{ include "clustermesh-apiserver-generate-certs.job.spec" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -4,10 +4,6 @@ kind: Role
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-generate-certs
|
name: clustermesh-apiserver-generate-certs
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
rules:
|
rules:
|
||||||
@@ -23,6 +19,7 @@ rules:
|
|||||||
- secrets
|
- secrets
|
||||||
resourceNames:
|
resourceNames:
|
||||||
- cilium-ca
|
- cilium-ca
|
||||||
|
- clustermesh-apiserver-ca-cert
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
- update
|
- update
|
||||||
|
|||||||
@@ -4,10 +4,6 @@ kind: RoleBinding
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-generate-certs
|
name: clustermesh-apiserver-generate-certs
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
roleRef:
|
roleRef:
|
||||||
|
|||||||
@@ -4,13 +4,8 @@ kind: ServiceAccount
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.serviceAccounts.clustermeshcertgen.name | quote }}
|
name: {{ .Values.serviceAccounts.clustermeshcertgen.name | quote }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- if or .Values.serviceAccounts.clustermeshcertgen.annotations .Values.clustermesh.annotations }}
|
{{- with .Values.serviceAccounts.clustermeshcertgen.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- with .Values.serviceAccounts.clustermeshcertgen.annotations }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
{{/*
|
||||||
|
Generate TLS certificates for ClusterMesh.
|
||||||
|
|
||||||
|
Note: Always use this template as follows:
|
||||||
|
|
||||||
|
{{- $_ := include "clustermesh-apiserver-generate-certs.helm.setup-ca" . -}}
|
||||||
|
|
||||||
|
The assignment to `$_` is required because we store the generated CI in a global `cmca` variable.
|
||||||
|
Please, don't try to "simplify" this, as without this trick, every generated
|
||||||
|
certificate would be signed by a different CA.
|
||||||
|
*/}}
|
||||||
|
{{- define "clustermesh-apiserver-generate-certs.helm.setup-ca" }}
|
||||||
|
{{- if not .cmca }}
|
||||||
|
{{- $ca := "" -}}
|
||||||
|
{{- $crt := .Values.clustermesh.apiserver.tls.ca.cert | default .Values.tls.ca.cert -}}
|
||||||
|
{{- $key := .Values.clustermesh.apiserver.tls.ca.key | default .Values.tls.ca.key -}}
|
||||||
|
{{- if and $crt $key }}
|
||||||
|
{{- $ca = buildCustomCert $crt $key -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- with lookup "v1" "Secret" .Release.Namespace "clustermesh-apiserver-ca-cert" }}
|
||||||
|
{{- $crt := index .data "ca.crt" }}
|
||||||
|
{{- $key := index .data "ca.key" }}
|
||||||
|
{{- $ca = buildCustomCert $crt $key -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- $_ := include "cilium.ca.setup" . -}}
|
||||||
|
{{- with lookup "v1" "Secret" .Release.Namespace .commonCASecretName }}
|
||||||
|
{{- $crt := index .data "ca.crt" }}
|
||||||
|
{{- $key := index .data "ca.key" }}
|
||||||
|
{{- $ca = buildCustomCert $crt $key -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- $ca = .commonCA -}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- $_ := set . "cmca" $ca -}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -1,21 +1,17 @@
|
|||||||
{{- if and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "helm") }}
|
{{- if and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "helm") }}
|
||||||
{{- $_ := include "cilium.ca.setup" . -}}
|
{{- $_ := include "clustermesh-apiserver-generate-certs.helm.setup-ca" . -}}
|
||||||
{{- $cn := include "clustermesh-apiserver-generate-certs.admin-common-name" . -}}
|
{{- $cn := include "clustermesh-apiserver-generate-certs.admin-common-name" . -}}
|
||||||
{{- $dns := list "localhost" }}
|
{{- $dns := list "localhost" }}
|
||||||
{{- $cert := genSignedCert $cn nil $dns (.Values.clustermesh.apiserver.tls.auto.certValidityDuration | int) .commonCA -}}
|
{{- $cert := genSignedCert $cn nil $dns (.Values.clustermesh.apiserver.tls.auto.certValidityDuration | int) .cmca -}}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-admin-cert
|
name: clustermesh-apiserver-admin-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
type: kubernetes.io/tls
|
type: kubernetes.io/tls
|
||||||
data:
|
data:
|
||||||
ca.crt: {{ .commonCA.Cert | b64enc }}
|
ca.crt: {{ .cmca.Cert | b64enc }}
|
||||||
tls.crt: {{ $cert.Cert | b64enc }}
|
tls.crt: {{ $cert.Cert | b64enc }}
|
||||||
tls.key: {{ $cert.Key | b64enc }}
|
tls.key: {{ $cert.Key | b64enc }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{{- if and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "helm") }}
|
||||||
|
{{- $_ := include "clustermesh-apiserver-generate-certs.helm.setup-ca" . -}}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: clustermesh-apiserver-ca-cert
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
data:
|
||||||
|
ca.crt: {{ .cmca.Cert | b64enc }}
|
||||||
|
ca.key: {{ .cmca.Key | b64enc }}
|
||||||
|
{{- end }}
|
||||||
@@ -1,20 +1,16 @@
|
|||||||
{{- if and .Values.externalWorkloads.enabled .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "helm") }}
|
{{- if and .Values.externalWorkloads.enabled .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "helm") }}
|
||||||
{{- $_ := include "cilium.ca.setup" . -}}
|
{{- $_ := include "clustermesh-apiserver-generate-certs.helm.setup-ca" . -}}
|
||||||
{{- $cn := "externalworkload" }}
|
{{- $cn := "externalworkload" }}
|
||||||
{{- $cert := genSignedCert $cn nil nil (.Values.clustermesh.apiserver.tls.auto.certValidityDuration | int) .commonCA -}}
|
{{- $cert := genSignedCert $cn nil nil (.Values.clustermesh.apiserver.tls.auto.certValidityDuration | int) .cmca -}}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-client-cert
|
name: clustermesh-apiserver-client-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
type: kubernetes.io/tls
|
type: kubernetes.io/tls
|
||||||
data:
|
data:
|
||||||
ca.crt: {{ .commonCA.Cert | b64enc }}
|
ca.crt: {{ .cmca.Cert | b64enc }}
|
||||||
tls.crt: {{ $cert.Cert | b64enc }}
|
tls.crt: {{ $cert.Cert | b64enc }}
|
||||||
tls.key: {{ $cert.Key | b64enc }}
|
tls.key: {{ $cert.Key | b64enc }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,20 +1,16 @@
|
|||||||
{{- if and .Values.clustermesh.useAPIServer .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "helm") }}
|
{{- if and .Values.clustermesh.useAPIServer .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "helm") }}
|
||||||
{{- $_ := include "cilium.ca.setup" . -}}
|
{{- $_ := include "clustermesh-apiserver-generate-certs.helm.setup-ca" . -}}
|
||||||
{{- $cn := include "clustermesh-apiserver-generate-certs.remote-common-name" . -}}
|
{{- $cn := include "clustermesh-apiserver-generate-certs.remote-common-name" . -}}
|
||||||
{{- $cert := genSignedCert $cn nil nil (.Values.clustermesh.apiserver.tls.auto.certValidityDuration | int) .commonCA -}}
|
{{- $cert := genSignedCert $cn nil nil (.Values.clustermesh.apiserver.tls.auto.certValidityDuration | int) .cmca -}}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-remote-cert
|
name: clustermesh-apiserver-remote-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
type: kubernetes.io/tls
|
type: kubernetes.io/tls
|
||||||
data:
|
data:
|
||||||
ca.crt: {{ .commonCA.Cert | b64enc }}
|
ca.crt: {{ .cmca.Cert | b64enc }}
|
||||||
tls.crt: {{ $cert.Cert | b64enc }}
|
tls.crt: {{ $cert.Cert | b64enc }}
|
||||||
tls.key: {{ $cert.Key | b64enc }}
|
tls.key: {{ $cert.Key | b64enc }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,22 +1,18 @@
|
|||||||
{{- if and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "helm") }}
|
{{- if and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "helm") }}
|
||||||
{{- $_ := include "cilium.ca.setup" . -}}
|
{{- $_ := include "clustermesh-apiserver-generate-certs.helm.setup-ca" . -}}
|
||||||
{{- $cn := "clustermesh-apiserver.cilium.io" }}
|
{{- $cn := "clustermesh-apiserver.cilium.io" }}
|
||||||
{{- $ip := concat (list "127.0.0.1" "::1") .Values.clustermesh.apiserver.tls.server.extraIpAddresses }}
|
{{- $ip := concat (list "127.0.0.1" "::1") .Values.clustermesh.apiserver.tls.server.extraIpAddresses }}
|
||||||
{{- $dns := concat (list $cn "*.mesh.cilium.io" (printf "clustermesh-apiserver.%s.svc" .Release.Namespace)) .Values.clustermesh.apiserver.tls.server.extraDnsNames }}
|
{{- $dns := concat (list $cn "*.mesh.cilium.io" (printf "clustermesh-apiserver.%s.svc" .Release.Namespace)) .Values.clustermesh.apiserver.tls.server.extraDnsNames }}
|
||||||
{{- $cert := genSignedCert $cn $ip $dns (.Values.clustermesh.apiserver.tls.auto.certValidityDuration | int) .commonCA -}}
|
{{- $cert := genSignedCert $cn $ip $dns (.Values.clustermesh.apiserver.tls.auto.certValidityDuration | int) .cmca -}}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-server-cert
|
name: clustermesh-apiserver-server-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
type: kubernetes.io/tls
|
type: kubernetes.io/tls
|
||||||
data:
|
data:
|
||||||
ca.crt: {{ .commonCA.Cert | b64enc }}
|
ca.crt: {{ .cmca.Cert | b64enc }}
|
||||||
tls.crt: {{ $cert.Cert | b64enc }}
|
tls.crt: {{ $cert.Cert | b64enc }}
|
||||||
tls.key: {{ $cert.Key | b64enc }}
|
tls.key: {{ $cert.Key | b64enc }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -4,13 +4,9 @@ kind: Secret
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-admin-cert
|
name: clustermesh-apiserver-admin-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
type: kubernetes.io/tls
|
type: kubernetes.io/tls
|
||||||
data:
|
data:
|
||||||
ca.crt: {{ .Values.tls.ca.cert }}
|
ca.crt: {{ .Values.clustermesh.apiserver.tls.ca.cert | default .Values.tls.ca.cert }}
|
||||||
tls.crt: {{ .Values.clustermesh.apiserver.tls.admin.cert | required "missing clustermesh.apiserver.tls.admin.cert" }}
|
tls.crt: {{ .Values.clustermesh.apiserver.tls.admin.cert | required "missing clustermesh.apiserver.tls.admin.cert" }}
|
||||||
tls.key: {{ .Values.clustermesh.apiserver.tls.admin.key | required "missing clustermesh.apiserver.tls.admin.key" }}
|
tls.key: {{ .Values.clustermesh.apiserver.tls.admin.key | required "missing clustermesh.apiserver.tls.admin.key" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{{- if and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) (not .Values.clustermesh.apiserver.tls.auto.enabled) }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: clustermesh-apiserver-ca-cert
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
data:
|
||||||
|
ca.crt: {{ .Values.clustermesh.apiserver.tls.ca.cert | default .Values.tls.ca.cert }}
|
||||||
|
{{- if .Values.clustermesh.apiserver.tls.ca.key | default .Values.tls.ca.key }}
|
||||||
|
ca.key: {{ .Values.clustermesh.apiserver.tls.ca.key | default .Values.tls.ca.key }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -4,13 +4,9 @@ kind: Secret
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-client-cert
|
name: clustermesh-apiserver-client-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
type: kubernetes.io/tls
|
type: kubernetes.io/tls
|
||||||
data:
|
data:
|
||||||
ca.crt: {{ .Values.tls.ca.cert }}
|
ca.crt: {{ .Values.clustermesh.apiserver.tls.ca.cert | default .Values.tls.ca.cert }}
|
||||||
tls.crt: {{ .Values.clustermesh.apiserver.tls.client.cert | required "missing clustermesh.apiserver.tls.client.cert" }}
|
tls.crt: {{ .Values.clustermesh.apiserver.tls.client.cert | required "missing clustermesh.apiserver.tls.client.cert" }}
|
||||||
tls.key: {{ .Values.clustermesh.apiserver.tls.client.key | required "missing clustermesh.apiserver.tls.client.key" }}
|
tls.key: {{ .Values.clustermesh.apiserver.tls.client.key | required "missing clustermesh.apiserver.tls.client.key" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -4,13 +4,9 @@ kind: Secret
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-remote-cert
|
name: clustermesh-apiserver-remote-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
type: kubernetes.io/tls
|
type: kubernetes.io/tls
|
||||||
data:
|
data:
|
||||||
ca.crt: {{ .Values.tls.ca.cert }}
|
ca.crt: {{ .Values.clustermesh.apiserver.tls.ca.cert | default .Values.tls.ca.cert }}
|
||||||
tls.crt: {{ .Values.clustermesh.apiserver.tls.remote.cert | required "missing clustermesh.apiserver.tls.remote.cert" }}
|
tls.crt: {{ .Values.clustermesh.apiserver.tls.remote.cert | required "missing clustermesh.apiserver.tls.remote.cert" }}
|
||||||
tls.key: {{ .Values.clustermesh.apiserver.tls.remote.key | required "missing clustermesh.apiserver.tls.remote.key" }}
|
tls.key: {{ .Values.clustermesh.apiserver.tls.remote.key | required "missing clustermesh.apiserver.tls.remote.key" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -4,13 +4,9 @@ kind: Secret
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-apiserver-server-cert
|
name: clustermesh-apiserver-server-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
type: kubernetes.io/tls
|
type: kubernetes.io/tls
|
||||||
data:
|
data:
|
||||||
ca.crt: {{ .Values.tls.ca.cert }}
|
ca.crt: {{ .Values.clustermesh.apiserver.tls.ca.cert | default .Values.tls.ca.cert }}
|
||||||
tls.crt: {{ .Values.clustermesh.apiserver.tls.server.cert | required "missing clustermesh.apiserver.tls.server.cert" }}
|
tls.crt: {{ .Values.clustermesh.apiserver.tls.server.cert | required "missing clustermesh.apiserver.tls.server.cert" }}
|
||||||
tls.key: {{ .Values.clustermesh.apiserver.tls.server.key | required "missing clustermesh.apiserver.tls.server.key" }}
|
tls.key: {{ .Values.clustermesh.apiserver.tls.server.key | required "missing clustermesh.apiserver.tls.server.key" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -5,10 +5,6 @@ kind: ConfigMap
|
|||||||
metadata:
|
metadata:
|
||||||
name: clustermesh-remote-users
|
name: clustermesh-remote-users
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
{{- define "clustermesh-config-generate-etcd-cfg" }}
|
{{- define "clustermesh-config-generate-etcd-cfg" }}
|
||||||
{{- $cluster := index . 0 -}}
|
{{- $cluster := index . 0 -}}
|
||||||
{{- $domain := index . 1 -}}
|
{{- $domain := index . 1 -}}
|
||||||
{{- $override := index . 2 -}}
|
{{- $hasCustomCACert := index . 2 -}}
|
||||||
|
{{- $override := index . 3 -}}
|
||||||
{{- /* The parenthesis around $cluster.tls are required, since it can be null: https://stackoverflow.com/a/68807258 */}}
|
{{- /* The parenthesis around $cluster.tls are required, since it can be null: https://stackoverflow.com/a/68807258 */}}
|
||||||
{{- $prefix := ternary "common-" (printf "%s." $cluster.name) (or (ne $override "") (empty ($cluster.tls).cert) (empty ($cluster.tls).key)) -}}
|
{{- $prefix := ternary "common-" (printf "%s." $cluster.name) (or (ne $override "") (empty ($cluster.tls).cert) (empty ($cluster.tls).key)) -}}
|
||||||
|
|
||||||
@@ -13,7 +14,7 @@ endpoints:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
- https://{{ $cluster.address | required "missing clustermesh.apiserver.config.clusters.address" }}:{{ $cluster.port }}
|
- https://{{ $cluster.address | required "missing clustermesh.apiserver.config.clusters.address" }}:{{ $cluster.port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not (empty ($cluster.tls).caCert) }}
|
{{- if $hasCustomCACert }}
|
||||||
{{- /* The custom CA configuration takes effect only if a custom certificate and key are also set */}}
|
{{- /* The custom CA configuration takes effect only if a custom certificate and key are also set */}}
|
||||||
trusted-ca-file: /var/lib/cilium/clustermesh/{{ $prefix }}etcd-client-ca.crt
|
trusted-ca-file: /var/lib/cilium/clustermesh/{{ $prefix }}etcd-client-ca.crt
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
|||||||
@@ -1,23 +1,19 @@
|
|||||||
{{- if .Values.clustermesh.config.enabled }}
|
{{- if and .Values.clustermesh.useAPIServer .Values.clustermesh.config.enabled }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: cilium-clustermesh
|
name: cilium-clustermesh
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
data:
|
data:
|
||||||
{{- $kvstoremesh := and .Values.clustermesh.useAPIServer .Values.clustermesh.apiserver.kvstoremesh.enabled }}
|
{{- $override := ternary (printf "https://clustermesh-apiserver.%s.svc:2379" .Release.Namespace) "" $.Values.clustermesh.apiserver.kvstoremesh.enabled }}
|
||||||
{{- $override := ternary (printf "https://clustermesh-apiserver.%s.svc:2379" .Release.Namespace) "" $kvstoremesh }}
|
|
||||||
{{- range .Values.clustermesh.config.clusters }}
|
{{- range .Values.clustermesh.config.clusters }}
|
||||||
{{ .name }}: {{ include "clustermesh-config-generate-etcd-cfg" (list . $.Values.clustermesh.config.domain $override) | b64enc }}
|
{{- $hasCustomCACert := or (.tls).caCert $.Values.clustermesh.apiserver.tls.ca.cert }}
|
||||||
|
{{ .name }}: {{ include "clustermesh-config-generate-etcd-cfg" (list . $.Values.clustermesh.config.domain $hasCustomCACert $override) | b64enc }}
|
||||||
{{- /* The parenthesis around .tls are required, since it can be null: https://stackoverflow.com/a/68807258 */}}
|
{{- /* The parenthesis around .tls are required, since it can be null: https://stackoverflow.com/a/68807258 */}}
|
||||||
{{- if and (eq $override "") (.tls).cert (.tls).key }}
|
{{- if and (eq $override "") (.tls).cert (.tls).key }}
|
||||||
{{- if .tls.caCert }}
|
{{- if $hasCustomCACert }}
|
||||||
{{ .name }}.etcd-client-ca.crt: {{ .tls.caCert }}
|
{{ .name }}.etcd-client-ca.crt: {{ .tls.caCert | default $.Values.clustermesh.apiserver.tls.ca.cert }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ .name }}.etcd-client.key: {{ .tls.key }}
|
{{ .name }}.etcd-client.key: {{ .tls.key }}
|
||||||
{{ .name }}.etcd-client.crt: {{ .tls.cert }}
|
{{ .name }}.etcd-client.crt: {{ .tls.cert }}
|
||||||
|
|||||||
@@ -5,17 +5,14 @@ kind: Secret
|
|||||||
metadata:
|
metadata:
|
||||||
name: cilium-kvstoremesh
|
name: cilium-kvstoremesh
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.clustermesh.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
data:
|
data:
|
||||||
{{- range .Values.clustermesh.config.clusters }}
|
{{- range .Values.clustermesh.config.clusters }}
|
||||||
{{ .name }}: {{ include "clustermesh-config-generate-etcd-cfg" (list . $.Values.clustermesh.config.domain "") | b64enc }}
|
{{- $hasCustomCACert := or (.tls).caCert $.Values.clustermesh.apiserver.tls.ca.cert }}
|
||||||
|
{{ .name }}: {{ include "clustermesh-config-generate-etcd-cfg" (list . $.Values.clustermesh.config.domain $hasCustomCACert "") | b64enc }}
|
||||||
{{- /* The parenthesis around .tls are required, since it can be null: https://stackoverflow.com/a/68807258 */}}
|
{{- /* The parenthesis around .tls are required, since it can be null: https://stackoverflow.com/a/68807258 */}}
|
||||||
{{- if and (.tls).cert (.tls).key }}
|
{{- if and (.tls).cert (.tls).key }}
|
||||||
{{- if .tls.caCert }}
|
{{- if $hasCustomCACert }}
|
||||||
{{ .name }}.etcd-client-ca.crt: {{ .tls.caCert }}
|
{{ .name }}.etcd-client-ca.crt: {{ .tls.caCert | default $.Values.clustermesh.apiserver.tls.ca.cert }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ .name }}.etcd-client.key: {{ .tls.key }}
|
{{ .name }}.etcd-client.key: {{ .tls.key }}
|
||||||
{{ .name }}.etcd-client.crt: {{ .tls.cert }}
|
{{ .name }}.etcd-client.crt: {{ .tls.cert }}
|
||||||
|
|||||||
@@ -3,10 +3,6 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: cilium-etcd-operator
|
name: cilium-etcd-operator
|
||||||
{{- with .Values.etcd.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -3,10 +3,6 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: cilium-etcd-operator
|
name: cilium-etcd-operator
|
||||||
{{- with .Values.etcd.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
roleRef:
|
roleRef:
|
||||||
|
|||||||
@@ -9,10 +9,6 @@ metadata:
|
|||||||
app.kubernetes.io/part-of: cilium
|
app.kubernetes.io/part-of: cilium
|
||||||
name: cilium-etcd-operator
|
name: cilium-etcd-operator
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.etcd.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user