code-examples/2024/07/k8s_scratch_demo1/master/custom-resources.yaml

31 lines
878 B
YAML

# This section includes base Calico installation configuration.
# For more information, see: https://docs.tigera.io/calico/latest/reference/installation/api#operator.tigera.io/v1.Installation
apiVersion: operator.tigera.io/v1
kind: Installation
metadata:
name: default
spec:
# Configures Calico networking.
calicoNetwork:
nodeAddressAutodetectionV4:
cidrs:
- '10.96.0.0/22'
# Note: The ipPools section cannot be modified post-install.
ipPools:
- blockSize: 26
cidr: 10.96.0.0/22
encapsulation: VXLANCrossSubnet
natOutgoing: Enabled
nodeSelector: all()
---
# This section configures the Calico API server.
# For more information, see: https://docs.tigera.io/calico/latest/reference/installation/api#operator.tigera.io/v1.APIServer
apiVersion: operator.tigera.io/v1
kind: APIServer
metadata:
name: default
spec: {}