Try   HackMD

Episode 167 - eksctl tips!

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

News

  • default addons have changed on eksctl

Shared content:

cluster.yaml

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name: demo-eksctl
  region: us-west-1
  version: 1.31
iam:
  withOIDC: true

addonsConfig:
  disableDefaultAddons: true
addons:
  - name: coredns
  - name: aws-ebs-csi-driver

get apiserver info

API_SERVER_HOST=$(kubectl config view -o jsonpath='{.clusters[0].cluster.server}' | sed -e 's~^[^:]*://~~' -e 's~:.*~~')
API_SERVER_PORT=443

Cilium config

cat << EOF > cilium-values.yaml
eni:
  enabled: true
ipam:
  mode: eni
hubble:
  enabled: true
  relay:
    enabled: true
  export:
    dynamic:
      enabled: true
nodeinit:
  enabled: true
devices: e+
routingMode: native
kubeProxyReplacement: "true"
k8sServiceHost: $API_SERVER_HOST
k8sServicePort: $API_SERVER_PORT
EOF

install cilium into the control plane.

helm upgrade --install cilium cilium \ --repo https://helm.cilium.io \ --namespace kube-system -f cilium-enterprise-values.yaml

Add a node pool!