Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. # this config file contains all config fields with comments
  2. kind: Config
  3. apiVersion: kind.sigs.k8s.io/v1alpha2
  4. # 1 control plane node and 3 workers
  5. nodes:
  6. # the control plane node config
  7. - role: control-plane
  8. # patch the generated kubeadm config with some extra settings
  9. kubeadmConfigPatches:
  10. - |
  11. apiVersion: kubeadm.k8s.io/v1beta1
  12. kind: ClusterConfiguration
  13. metadata:
  14. name: config
  15. networking:
  16. serviceSubnet: 10.254.0.0/16
  17. # patch it further using a JSON 6902 patch
  18. kubeadmConfigPatchesJson6902:
  19. - group: kubeadm.k8s.io
  20. version: v1beta1
  21. kind: ClusterConfiguration
  22. patch: |
  23. - op: add
  24. path: /apiServer/certSANs/-
  25. value: my-hostname
  26. # the three workers
  27. - role: worker
  28. # replicas specifes the number of nodes to create with this configuration
  29. replicas: 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement