mirror of https://github.com/kubernetes/kops.git
133 lines
2.6 KiB
YAML
133 lines
2.6 KiB
YAML
apiVersion: kops.k8s.io/v1alpha2
|
|
kind: Cluster
|
|
metadata:
|
|
creationTimestamp: "2017-01-01T00:00:00Z"
|
|
name: private.example.com
|
|
spec:
|
|
api:
|
|
loadBalancer:
|
|
type: Public
|
|
authorization:
|
|
rbac: {}
|
|
channel: stable
|
|
cloudConfig:
|
|
gceServiceAccount: test-account@testproject.iam.gserviceaccount.com
|
|
cloudLabels:
|
|
Owner: John Doe
|
|
dn: 'cn=John Doe: dc=example dc=com'
|
|
foo/bar: fib+baz
|
|
cloudProvider: gce
|
|
configBase: memfs://tests/private.example.com
|
|
etcdClusters:
|
|
- cpuRequest: 200m
|
|
etcdMembers:
|
|
- instanceGroup: control-plane-us-test1-a
|
|
name: a
|
|
manager:
|
|
backupRetentionDays: 90
|
|
memoryRequest: 100Mi
|
|
name: main
|
|
- cpuRequest: 100m
|
|
etcdMembers:
|
|
- instanceGroup: control-plane-us-test1-a
|
|
name: a
|
|
manager:
|
|
backupRetentionDays: 90
|
|
memoryRequest: 100Mi
|
|
name: events
|
|
iam:
|
|
allowContainerRegistry: true
|
|
legacy: false
|
|
kubelet:
|
|
anonymousAuth: false
|
|
kubernetesApiAccess:
|
|
- 0.0.0.0/0
|
|
- ::/0
|
|
kubernetesVersion: v1.26.0
|
|
masterPublicName: api.private.example.com
|
|
networking:
|
|
cni: {}
|
|
nonMasqueradeCIDR: 100.64.0.0/10
|
|
project: testproject
|
|
sshAccess:
|
|
- 0.0.0.0/0
|
|
- ::/0
|
|
subnets:
|
|
- cidr: 10.0.16.0/20
|
|
name: us-test1
|
|
region: us-test1
|
|
type: Private
|
|
topology:
|
|
bastion:
|
|
bastionPublicName: bastion.private.example.com
|
|
dns:
|
|
type: Public
|
|
|
|
---
|
|
|
|
apiVersion: kops.k8s.io/v1alpha2
|
|
kind: InstanceGroup
|
|
metadata:
|
|
creationTimestamp: "2017-01-01T00:00:00Z"
|
|
labels:
|
|
kops.k8s.io/cluster: private.example.com
|
|
name: bastions
|
|
spec:
|
|
image: ubuntu-os-cloud/ubuntu-2004-focal-v20230715
|
|
machineType: e2-micro
|
|
maxSize: 1
|
|
minSize: 1
|
|
role: Bastion
|
|
subnets:
|
|
- us-test1
|
|
zones:
|
|
- us-test1-a
|
|
|
|
---
|
|
|
|
apiVersion: kops.k8s.io/v1alpha2
|
|
kind: InstanceGroup
|
|
metadata:
|
|
creationTimestamp: "2017-01-01T00:00:00Z"
|
|
labels:
|
|
kops.k8s.io/cluster: private.example.com
|
|
name: control-plane-us-test1-a
|
|
spec:
|
|
additionalSecurityGroups:
|
|
- sg-exampleid3
|
|
- sg-exampleid4
|
|
image: ubuntu-os-cloud/ubuntu-2004-focal-v20230715
|
|
machineType: e2-standard-2
|
|
maxSize: 1
|
|
minSize: 1
|
|
role: Master
|
|
subnets:
|
|
- us-test1
|
|
zones:
|
|
- us-test1-a
|
|
|
|
---
|
|
|
|
apiVersion: kops.k8s.io/v1alpha2
|
|
kind: InstanceGroup
|
|
metadata:
|
|
creationTimestamp: "2017-01-01T00:00:00Z"
|
|
labels:
|
|
kops.k8s.io/cluster: private.example.com
|
|
name: nodes-us-test1-a
|
|
spec:
|
|
additionalSecurityGroups:
|
|
- sg-exampleid
|
|
- sg-exampleid2
|
|
image: ubuntu-os-cloud/ubuntu-2004-focal-v20230715
|
|
machineType: e2-medium
|
|
maxSize: 1
|
|
minSize: 1
|
|
nodeLabels:
|
|
cloud.google.com/metadata-proxy-ready: "true"
|
|
role: Node
|
|
subnets:
|
|
- us-test1
|
|
zones:
|
|
- us-test1-a
|