Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
125 lines (118 sloc) 2.85 KB
apiVersion: kops/v1alpha2
kind: Cluster
metadata:
creationTimestamp: 2018-09-03T18:56:22Z
name: k8s.mattjmcnaughton.com
spec:
api:
dns: {}
authorization:
rbac: {}
channel: stable
cloudProvider: aws
configBase: s3://mattjmcnaughton-kops-state-store/k8s.mattjmcnaughton.com
etcdClusters:
- etcdMembers:
- instanceGroup: master-us-west-2a
name: a
name: main
- etcdMembers:
- instanceGroup: master-us-west-2a
name: a
name: events
iam:
allowContainerRegistry: true
legacy: false
kubernetesApiAccess:
- 0.0.0.0/0
kubernetesVersion: 1.12.3
masterInternalName: api.internal.k8s.mattjmcnaughton.com
masterPublicName: api.k8s.mattjmcnaughton.com
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-west-2a
type: Public
zone: us-west-2a
topology:
dns:
type: Public
masters: public
nodes: public
---
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
creationTimestamp: 2018-09-03T18:56:22Z
labels:
kops.k8s.io/cluster: k8s.mattjmcnaughton.com
name: master-us-west-2a
spec:
image: kope.io/k8s-1.9-debian-jessie-amd64-hvm-ebs-2018-03-11
machineType: m3.medium
maxSize: 1
minSize: 1
nodeLabels:
kops.k8s.io/instancegroup: master-us-west-2a
role: Master
rootVolumeSize: 30
rootVolumeType: gp2
subnets:
- us-west-2a
---
# `nodes` is node machines which we don't expect to be turned off without
# significant warning.
#
# @TODO(mattjmcnaughton) Determine if I want to purchase a reserved instance for
# this(these) node(s).
# https://github.com/mattjmcnaughton/personal-k8s/issues/16
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
creationTimestamp: 2018-09-03T18:56:22Z
labels:
kops.k8s.io/cluster: k8s.mattjmcnaughton.com
name: nodes
spec:
image: kope.io/k8s-1.9-debian-jessie-amd64-hvm-ebs-2018-03-11
machineType: t2.medium
maxSize: 1
minSize: 1
nodeLabels:
kops.k8s.io/instancegroup: nodes
role: Node
rootVolumeSize: 32
rootVolumeType: gp2
subnets:
- us-west-2a
---
# `nodes-spot-instances` is node machines backed by spot instances. We should
# not run high availability nodes on these applications, and we ensure we don't
# by adding a taint to the node which non-ha applications must tolerate.
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
creationTimestamp: 2018-09-03T18:56:23Z
labels:
kops.k8s.io/cluster: k8s.mattjmcnaughton.com
name: nodes-spot-instances
spec:
image: kope.io/k8s-1.9-debian-jessie-amd64-hvm-ebs-2018-03-11
machineType: t2.medium
maxPrice: ".0464"
maxSize: 2
minSize: 2
nodeLabels:
kops.k8s.io/instancegroup: nodes-spot-instances
role: Node
taints:
- type=spot-instance:NoSchedule
rootVolumeSize: 32
rootVolumeType: gp2
subnets:
- us-west-2a