mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-16 10:40:04 -03:30
Use cilium-cli install Cilium
Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
@@ -3,7 +3,7 @@ cilium_min_version_required: "1.15"
|
||||
# Log-level
|
||||
cilium_debug: false
|
||||
|
||||
cilium_mtu: ""
|
||||
cilium_mtu: "0"
|
||||
cilium_enable_ipv4: "{{ ipv4_stack }}"
|
||||
cilium_enable_ipv6: "{{ ipv6_stack }}"
|
||||
|
||||
@@ -26,7 +26,7 @@ cilium_agent_health_port: "9879"
|
||||
# - --synchronize-k8s-nodes
|
||||
# - --identity-allocation-mode=kvstore
|
||||
# - Ref: https://docs.cilium.io/en/stable/internals/cilium_operator/#kvstore-operations
|
||||
cilium_identity_allocation_mode: kvstore
|
||||
cilium_identity_allocation_mode: crd
|
||||
|
||||
# Etcd SSL dirs
|
||||
cilium_cert_dir: /etc/cilium/certs
|
||||
@@ -55,8 +55,8 @@ cilium_enable_prometheus: false
|
||||
cilium_enable_portmap: false
|
||||
# Monitor aggregation level (none/low/medium/maximum)
|
||||
cilium_monitor_aggregation: medium
|
||||
# Kube Proxy Replacement mode (strict/partial)
|
||||
cilium_kube_proxy_replacement: partial
|
||||
# Kube Proxy Replacement mode (true/false)
|
||||
cilium_kube_proxy_replacement: false
|
||||
|
||||
# If upgrading from Cilium < 1.5, you may want to override some of these options
|
||||
# to prevent service disruptions. See also:
|
||||
@@ -94,8 +94,8 @@ cilium_encryption_enabled: false
|
||||
cilium_encryption_type: "ipsec"
|
||||
|
||||
# Enable encryption for pure node to node traffic.
|
||||
# This option is only effective when `cilium_encryption_type` is set to `ipsec`.
|
||||
cilium_ipsec_node_encryption: false
|
||||
# This option is only effective when `cilium_encryption_type` is set to `wireguard`.
|
||||
cilium_encryption_node_encryption: false
|
||||
|
||||
# If your kernel or distribution does not support WireGuard, Cilium agent can be configured to fall back on the user-space implementation.
|
||||
# When this flag is enabled and Cilium detects that the kernel has no native support for WireGuard,
|
||||
@@ -109,6 +109,7 @@ cilium_wireguard_userspace_fallback: false
|
||||
# In case they select the Pod at egress, then the bandwidth enforcement will be disabled for those Pods.
|
||||
# Bandwidth Manager requires a v5.1.x or more recent Linux kernel.
|
||||
cilium_enable_bandwidth_manager: false
|
||||
cilium_enable_bandwidth_manager_bbr: false
|
||||
|
||||
# IP Masquerade Agent
|
||||
# https://docs.cilium.io/en/stable/concepts/networking/masquerading/
|
||||
@@ -131,6 +132,7 @@ cilium_non_masquerade_cidrs:
|
||||
### Indicates whether to masquerade traffic to the link local prefix.
|
||||
### If the masqLinkLocal is not set or set to false, then 169.254.0.0/16 is appended to the non-masquerade CIDRs list.
|
||||
cilium_masq_link_local: false
|
||||
cilium_masq_link_local_ipv6: false
|
||||
### A time interval at which the agent attempts to reload config from disk
|
||||
cilium_ip_masq_resync_interval: 60s
|
||||
|
||||
@@ -139,10 +141,10 @@ cilium_ip_masq_resync_interval: 60s
|
||||
cilium_enable_hubble: false
|
||||
### Enable Hubble-ui
|
||||
cilium_enable_hubble_ui: "{{ cilium_enable_hubble }}"
|
||||
### Enable Hubble Metrics
|
||||
### Enable Hubble Metrics (deprecated)
|
||||
cilium_enable_hubble_metrics: false
|
||||
### if cilium_enable_hubble_metrics: true
|
||||
cilium_hubble_metrics: {}
|
||||
cilium_hubble_metrics: []
|
||||
# - dns
|
||||
# - drop
|
||||
# - tcp
|
||||
@@ -184,7 +186,8 @@ cilium_ipam_mode: cluster-pool
|
||||
|
||||
|
||||
# Extra arguments for the Cilium agent
|
||||
cilium_agent_custom_args: []
|
||||
cilium_agent_custom_args: [] # deprecated
|
||||
cilium_agent_extra_args: []
|
||||
|
||||
# For adding and mounting extra volumes to the cilium agent
|
||||
cilium_agent_extra_volumes: []
|
||||
@@ -208,13 +211,19 @@ cilium_operator_extra_volumes: []
|
||||
cilium_operator_extra_volume_mounts: []
|
||||
|
||||
# Extra arguments for the Cilium Operator
|
||||
cilium_operator_custom_args: []
|
||||
cilium_operator_custom_args: [] # deprecated
|
||||
cilium_operator_extra_args: []
|
||||
|
||||
# Tolerations of the cilium operator
|
||||
cilium_operator_tolerations:
|
||||
- operator: "Exists"
|
||||
|
||||
# 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.
|
||||
cilium_cluster_id: 0
|
||||
# Name of the cluster. Only relevant when building a mesh of clusters.
|
||||
# The "default" name cannot be used if the Cluster ID is different from 0.
|
||||
cilium_cluster_name: default
|
||||
|
||||
# Make Cilium take ownership over the `/etc/cni/net.d` directory on the node, renaming all non-Cilium CNI configurations to `*.cilium_bak`.
|
||||
@@ -257,7 +266,7 @@ cilium_enable_bpf_masquerade: false
|
||||
# host stack (true) or directly and more efficiently out of BPF (false) if
|
||||
# the kernel supports it. The latter has the implication that it will also
|
||||
# bypass netfilter in the host namespace.
|
||||
cilium_enable_host_legacy_routing: true
|
||||
cilium_enable_host_legacy_routing: false
|
||||
|
||||
# -- Enable use of the remote node identity.
|
||||
# ref: https://docs.cilium.io/en/v1.7/install/upgrade/#configmap-remote-node-identity
|
||||
@@ -301,9 +310,9 @@ cilium_rolling_restart_wait_retries_count: 30
|
||||
cilium_rolling_restart_wait_retries_delay_seconds: 10
|
||||
|
||||
# Cilium changed the default metrics exporter ports in 1.12
|
||||
cilium_agent_scrape_port: "{{ cilium_version is version('1.12', '>=') | ternary('9962', '9090') }}"
|
||||
cilium_operator_scrape_port: "{{ cilium_version is version('1.12', '>=') | ternary('9963', '6942') }}"
|
||||
cilium_hubble_scrape_port: "{{ cilium_version is version('1.12', '>=') | ternary('9965', '9091') }}"
|
||||
cilium_agent_scrape_port: "9962"
|
||||
cilium_operator_scrape_port: "9963"
|
||||
cilium_hubble_scrape_port: "9965"
|
||||
|
||||
# Cilium certgen args for generate certificate for hubble mTLS
|
||||
cilium_certgen_args:
|
||||
@@ -322,24 +331,6 @@ cilium_certgen_args:
|
||||
hubble-relay-client-cert-secret-name: hubble-relay-client-certs
|
||||
hubble-relay-server-cert-generate: false
|
||||
|
||||
# A list of extra rules variables to add to clusterrole for cilium operator, formatted like:
|
||||
# cilium_clusterrole_rules_operator_extra_vars:
|
||||
# - apiGroups:
|
||||
# - '""'
|
||||
# resources:
|
||||
# - pods
|
||||
# verbs:
|
||||
# - delete
|
||||
# - apiGroups:
|
||||
# - '""'
|
||||
# resources:
|
||||
# - nodes
|
||||
# verbs:
|
||||
# - list
|
||||
# - watch
|
||||
# resourceNames:
|
||||
# - toto
|
||||
cilium_clusterrole_rules_operator_extra_vars: []
|
||||
cilium_enable_host_firewall: false
|
||||
cilium_policy_audit_mode: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user