Skip to content

Instantly share code, notes, and snippets.

@mattkelly
Last active April 19, 2019 17:03
Show Gist options
  • Save mattkelly/692af294868ff50a6c5664ea63b7e9c4 to your computer and use it in GitHub Desktop.
Save mattkelly/692af294868ff50a6c5664ea63b7e9c4 to your computer and use it in GitHub Desktop.
kops autoscaling demo: cluster configuration
---
apiVersion: kops/v1alpha2
kind: Cluster
metadata:
name: autoscaling-experiment.k8s.local
spec:
api:
loadBalancer:
type: Public
authorization:
rbac: {}
channel: stable
cloudProvider: aws
etcdClusters:
- etcdMembers:
- instanceGroup: master
name: a
name: main
- etcdMembers:
- instanceGroup: master
name: a
name: events
iam:
allowContainerRegistry: true
legacy: false
kubelet:
anonymousAuth: false
authenticationTokenWebhook: true
authorizationMode: Webhook
kubernetesApiAccess:
- 0.0.0.0/0
kubernetesVersion: 1.12.7
networkCIDR: 172.20.0.0/16
networking:
kubenet: {}
nonMasqueradeCIDR: 100.64.0.0/10
sshAccess:
- 0.0.0.0/0
subnets:
- cidr: 172.20.32.0/19
name: us-east-1a
type: Public
zone: us-east-1a
topology:
dns:
type: Public
masters: public
nodes: public
---
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
name: master
labels:
kops.k8s.io/cluster: autoscaling-experiment.k8s.local
spec:
machineType: t2.medium
minSize: 1
maxSize: 1
role: Master
subnets:
- us-east-1a
---
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
name: workers
labels:
kops.k8s.io/cluster: autoscaling-experiment.k8s.local
spec:
machineType: t2.small
minSize: 1
maxSize: 5
role: Node
nodeLabels:
node-pool: workers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment