Skip to content

Instantly share code, notes, and snippets.

@alok87
Forked from kamilhristov/kube.yaml
Created August 31, 2017 12:18
Show Gist options
  • Save alok87/d54e4ed321d64ba71828884425857443 to your computer and use it in GitHub Desktop.
Save alok87/d54e4ed321d64ba71828884425857443 to your computer and use it in GitHub Desktop.
Example kops manifest
apiVersion: kops/v1alpha2
kind: Cluster
metadata:
name: kube.kamilhristov.com
spec:
cloudProvider: aws
etcdClusters:
- etcdMembers:
- instanceGroup: master-1
name: master-1
- instanceGroup: master-2
name: master-2
- instanceGroup: master-3
name: master-3
name: main
- etcdMembers:
- instanceGroup: master-1
name: master-1
- instanceGroup: master-2
name: master-2
- instanceGroup: master-3
name: master-3
name: events
kubernetesApiAccess:
- 0.0.0.0/0
kubernetesVersion: 1.4.7
masterInternalName: api.internal.kube.kamilhristov.com
masterPublicName: api.kube.kamilhristov.com
networkCIDR: 172.20.0.0/16
networking:
kubenet: {}
nonMasqueradeCIDR: 100.64.0.0/10
subnets:
- cidr: 172.20.32.0/19
name: eu-central-1a
type: Public
zone: eu-central-1a
---
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: kube.kamilhristov.com
name: master-1
spec:
associatePublicIp: true
image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21
machineType: m3.medium
maxSize: 1
minSize: 1
role: Master
subnets:
- eu-central-1a
---
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: kube.kamilhristov.com
name: master-2
spec:
associatePublicIp: true
image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21
machineType: m3.medium
maxSize: 1
minSize: 1
role: Master
subnets:
- eu-central-1a
---
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: kube.kamilhristov.com
name: master-3
spec:
associatePublicIp: true
image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21
machineType: m3.medium
maxSize: 1
minSize: 1
role: Master
subnets:
- eu-central-1a
---
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: kube.kamilhristov.com
name: nodes
spec:
associatePublicIp: true
image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21
machineType: t2.medium
maxSize: 2
minSize: 2
role: Node
subnets:
- eu-central-1a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment