Skip to content

Instantly share code, notes, and snippets.

@akshedu
Created June 21, 2021 03:36
Show Gist options
  • Save akshedu/766be5dae7c7d5e8b82cb1f3e0bf2ea5 to your computer and use it in GitHub Desktop.
Save akshedu/766be5dae7c7d5e8b82cb1f3e0bf2ea5 to your computer and use it in GitHub Desktop.
Instance groups template
apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: {{.clusterName}}
name: master-{{.awsRegion}}b
spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20201026
machineType: t2.medium
maxSize: 1
minSize: 1
nodeLabels:
kops.k8s.io/instancegroup: master-{{.awsRegion}}b
role: Master
rootVolumeSize: 128
subnets:
- {{.awsRegion}}b
---
apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: {{.clusterName}}
name: nodes-{{.awsRegion}}b
spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20201026
machineType: {{.APIinstanceType}}
maxSize: {{.APImaxSize}}
minSize: {{.APIminSize}}
taints:
- dedicated=api:NoSchedule
- dedicated=api:NoExecute
nodeLabels:
kops.k8s.io/instancegroup: nodes-{{.awsRegion}}b
role: Node
rootVolumeSize: 128
subnets:
- {{.awsRegion}}b
---
apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: {{.clusterName}}
name: model-nodes-{{.awsRegion}}b
spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20201026
machineType: {{.ModelinstanceType}}
maxSize: {{.ModelmaxSize}}
minSize: {{.ModelminSize}}
nodeLabels:
kops.k8s.io/instancegroup: model-nodes-{{.awsRegion}}b
role: Node
rootVolumeSize: 128
subnets:
- {{.awsRegion}}b
# ---
# apiVersion: kops.k8s.io/v1alpha2
# kind: InstanceGroup
# metadata:
# labels:
# kops.k8s.io/cluster: {{.clusterName}}
# name: bastions
# spec:
# associatePublicIp: true
# image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20201026
# machineType: t3.micro
# maxSize: 1
# minSize: 1
# role: Bastion
# subnets:
# - utility-{{.awsRegion}}b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment