- Install cilium and eks clusters with terraform
- cilium with eni mode but other scenarii in the future
export AWS_DEFAULT_REGION=ch-ange-1
export AWS_ACCESS_KEY_ID="CHANGEME"
export AWS_SECRET_ACCESS_KEY="CHANGEME"
git clone https://github.com/littlejo/terraform-eks-cilium.git
cd terraform-eks-cilium
- modify variables.tf
In particularly, if you want another azs:
variable "azs" {
description = "List of availability zones to install eks"
type = list(string)
default = ["us-east-1a", "us-east-1b"]
}
terraform init
terraform apply
=> yes
Type to update kubeconfig:
aws eks update-kubeconfig --name terraform-cilium --kubeconfig ~/.kube/config
cilium status
/¯¯\
/¯¯\__/¯¯\ Cilium: OK
\__/¯¯\__/ Operator: OK
/¯¯\__/¯¯\ Envoy DaemonSet: disabled (using embedded mode)
\__/¯¯\__/ Hubble Relay: disabled
\__/ ClusterMesh: disabled
DaemonSet cilium Desired: 2, Ready: 2/2, Available: 2/2
Deployment cilium-operator Desired: 2, Ready: 2/2, Available: 2/2
Containers: cilium-operator Running: 2
cilium Running: 2
Cluster Pods: 2/2 managed by Cilium
Image versions cilium quay.io/cilium/cilium:v1.13.4@sha256:bde8800d61aaad8b8451b10e247ac7bdeb7af187bb698f83d40ad75a38c1ee6b: 2
cilium-operator quay.io/cilium/operator-aws:v1.13.4@sha256:c6bde19bbfe1483577f9ef375ff6de19402ac20277c451fe05729fcb9bc02a84: 2