Last active
September 16, 2019 17:33
-
-
Save pathcl/ab4213b90e6bab6fae1cb762d6a7e7fe to your computer and use it in GitHub Desktop.
kind configuration for multi master
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this config file contains all config fields with comments | |
kind: Cluster | |
apiVersion: kind.sigs.k8s.io/v1alpha3 | |
# patch the generated kubeadm config with some extra settings | |
kubeadmConfigPatches: | |
- | | |
apiVersion: kubeadm.k8s.io/v1beta2 | |
kind: ClusterConfiguration | |
metadata: | |
name: config | |
networking: | |
podSubnet: 10.233.0.0/18 | |
apiServer: | |
extraArgs: | |
audit-log-maxage: "100" | |
audit-log-maxbackup: "10" | |
audit-log-maxsize: "100" | |
authorization-mode: "Node,RBAC" | |
enable-admission-plugins: "AlwaysPullImages,ServiceAccount,NodeRestriction" | |
insecure-port: "0" | |
profiling: "false" | |
request-timeout: "300s" | |
tls-cipher-suites: "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA" | |
scheduler: | |
extraArgs: | |
profiling: "false" | |
tls-cipher-suites: "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA" | |
controllerManager: | |
extraArgs: | |
profiling: "false" | |
tls-cipher-suites: "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA" | |
terminated-pod-gc-threshold: "10" | |
# patch it further using a JSON 6902 patch | |
kubeadmConfigPatchesJson6902: | |
- group: kubeadm.k8s.io | |
version: v1beta2 | |
kind: ClusterConfiguration | |
patch: | | |
- op: add | |
path: /apiServer/certSANs/- | |
value: my-hostname | |
# 3 control plane node and 3 workers | |
nodes: | |
# the control plane node config | |
- role: control-plane | |
- role: control-plane | |
- role: control-plane | |
# the three workers | |
- role: worker | |
- role: worker | |
- role: worker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment