Skip to content

Instantly share code, notes, and snippets.

@MeirP-3
Created November 4, 2020 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MeirP-3/006b9975cef1f8d548f9eab08b8ecc50 to your computer and use it in GitHub Desktop.
Save MeirP-3/006b9975cef1f8d548f9eab08b8ecc50 to your computer and use it in GitHub Desktop.
cluster spec for #10166
apiVersion: kops.k8s.io/v1alpha2
kind: Cluster
metadata:
name: example.cluster.com
spec:
additionalPolicies:
master: |
[
{
"Effect": "Allow",
"Action": ["sts:AssumeRole"],
"Resource": "*"
}
]
node: |
[
{
"Effect": "Allow",
"Action": ["sts:AssumeRole"],
"Resource": "*"
}
]
addons:
- manifest: ambassador
- manifest: s3://some-bucket/kops/example.cluster.com/addons/example-cluster-addons.yaml
api:
loadBalancer:
type: Public
authentication:
aws: {}
authorization:
rbac: {}
channel: stable
cloudLabels:
env: test
cloudProvider: aws
configBase: s3://some-bucket/kops/example.cluster.com
dnsZone: example.cluster.com
etcdClusters:
- etcdMembers:
- encryptedVolume: true
instanceGroup: master-us-east-1f
name: a
name: main
version: 3.3.10
- etcdMembers:
- encryptedVolume: true
instanceGroup: master-us-east-1f
name: a
name: events
version: 3.3.10
iam:
allowContainerRegistry: true
legacy: false
kubeAPIServer:
auditLogMaxAge: 10
auditLogMaxBackups: 1
auditLogMaxSize: 100
auditLogPath: /var/log/kube-apiserver-audit.log
auditPolicyFile: /srv/kubernetes/assets/audit-policy
kubeDNS:
provider: CoreDNS
kubelet:
anonymousAuth: false
authenticationTokenWebhook: true
authorizationMode: Webhook
resolvConf: /run/systemd/resolve/resolv.conf
kubernetesApiAccess:
- 0.0.0.0/0
kubernetesVersion: v1.14.2
masterInternalName: api.internal.example.cluster.com
masterPublicName: api.example.cluster.com
networkCIDR: 10.40.0.0/16
networking:
amazonvpc: {}
nonMasqueradeCIDR: 100.64.0.0/10
sshAccess:
- 109.67.204.114/32
subnets:
- cidr: 10.40.32.0/19
name: us-east-1f
type: Private
zone: us-east-1f
- cidr: 10.40.0.0/22
name: utility-us-east-1f
type: Utility
zone: us-east-1f
topology:
bastion:
bastionPublicName: bastion.example.cluster.com
dns:
type: Public
masters: private
nodes: private
updatePolicy: external
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment