Skip to content

Instantly share code, notes, and snippets.

@ensean
Created April 24, 2022 05:59
Show Gist options
  • Save ensean/3db19171b09f7a57ae7e24fb420fecdb to your computer and use it in GitHub Desktop.
Save ensean/3db19171b09f7a57ae7e24fb420fecdb to your computer and use it in GitHub Desktop.
eksctl-fargate-nat-example
# An example of ClusterConfig object with highly available NAT gateways
---
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: cluster-fargate
region: ap-northeast-1
vpc:
nat:
gateway: HighlyAvailable # other options: Disable, Single (default)
fargateProfiles:
- name: fp-default
selectors:
# All workloads in the "default" Kubernetes namespace will be
# scheduled onto Fargate:
- namespace: default
# All workloads in the "kube-system" Kubernetes namespace will be
# scheduled onto Fargate:
- namespace: kube-system
- name: fp-dev
selectors:
# All workloads in the "dev" Kubernetes namespace matching the following
# label selectors will be scheduled onto Fargate:
- namespace: dev
labels:
env: dev
checks: passed
tags:
env: dev
name: fp-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment