Skip to content

Instantly share code, notes, and snippets.

@alicek106
Created July 27, 2019 07:38
Show Gist options
  • Save alicek106/aac540b2a16580ee149ed8b23b68c29d to your computer and use it in GitHub Desktop.
Save alicek106/aac540b2a16580ee149ed8b23b68c29d to your computer and use it in GitHub Desktop.
Kubernetes kubeadm guard configuration
kind: ClusterConfiguration
apiVersion: kubeadm.k8s.io/v1beta1
apiServer:
extraArgs:
authorization-mode: Node,RBAC
cloud-provider: aws
authentication-token-webhook-config-file: /srv/kubernetes/webhook-guard-config
extraVolumes:
- name: "guard-config-file"
hostPath: "webhook-config.yaml"
mountPath: "/srv/kubernetes/webhook-guard-config"
readOnly: true
pathType: File
timeoutForControlPlane: 4m0s
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
controlPlaneEndpoint: ""
controllerManager:
extraArgs:
cloud-provider: aws
dns:
type: CoreDNS
etcd:
local:
dataDir: /var/lib/etcd
imageRepository: k8s.gcr.io
kubernetesVersion: v1.15.1
networking:
dnsDomain: cluster.local
podSubnet: 192.168.0.0/16 # Pod Subnet
serviceSubnet: 10.96.0.0/12
scheduler: {}
---
kind: ClusterStatus
apiVersion: kubeadm.k8s.io/v1beta1
apiEndpoints:
ip-10-43-0-20.ap-northeast-2.compute.internal: # Private DNS of Master Instance
advertiseAddress: 10.43.0.20 # Join Advertise Address
bindPort: 6443
---
apiVersion: kubeadm.k8s.io/v1beta1
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
cloud-provider: aws
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment