Skip to content

Instantly share code, notes, and snippets.

@akshedu
Created June 21, 2021 03:32
Show Gist options
  • Save akshedu/d8deab17779a82b1a3dc2732ac5a2cc5 to your computer and use it in GitHub Desktop.
Save akshedu/d8deab17779a82b1a3dc2732ac5a2cc5 to your computer and use it in GitHub Desktop.
Cluster template
apiVersion: kops.k8s.io/v1alpha2
kind: Cluster
metadata:
name: {{.clusterName}}
spec:
clusterAutoscaler:
enabled: true
skipNodesWithLocalStorage: false
skipNodesWithSystemPods: true
newPodScaleUpDelay: "60s"
metricsServer:
enabled: true
api:
loadBalancer:
class: Classic
type: Public
authorization:
rbac: {}
channel: stable
cloudProvider: aws
configBase: s3://{{.clusterName}}/{{.clusterName}}
containerRuntime: docker
externalPolicies:
node: {{.externalPolicies.node}}
etcdClusters:
- cpuRequest: 200m
etcdMembers:
- instanceGroup: master-{{.awsRegion}}b
name: b
memoryRequest: 100Mi
name: main
- cpuRequest: 100m
etcdMembers:
- instanceGroup: master-{{.awsRegion}}b
name: b
memoryRequest: 100Mi
name: events
iam:
allowContainerRegistry: true
legacy: false
kubelet:
anonymousAuth: false
kubernetesApiAccess:
- 0.0.0.0/0
kubernetesVersion: {{.kubernetesVersion}}
masterInternalName: api.internal.{{.clusterName}}
masterPublicName: api.{{.clusterName}}
networkCIDR: {{.networkCIDR}}
networkID: {{.networkID}}
networking:
amazonvpc:
env:
- name: MINIMUM_IP_TARGET
value: "15"
- name: WARM_IP_TARGET
value: "2"
nonMasqueradeCIDR: 100.64.0.0/10
sshKeyName: {{.sshpublickey}}
sshAccess:
- 0.0.0.0/0
subnets:
- cidr: {{.subnetCIDRb}}
name: {{.awsRegion}}b
type: Private
egress: {{.egressNAT}}
zone: {{.awsRegion}}b
- cidr: {{.subnetCIDRa}}
name: {{.awsRegion}}a
type: Private
egress: {{.egressNAT}}
zone: {{.awsRegion}}a
- cidr: {{.UtilitysubnetCIDRa}}
name: utility-{{.awsRegion}}a
type: Utility
zone: {{.awsRegion}}a
- cidr: {{.UtilitysubnetCIDRb}}
name: utility-{{.awsRegion}}b
type: Utility
zone: {{.awsRegion}}b
topology:
dns:
type: Public
masters: private
nodes: private
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment