Browse Source

Move kubernetes/master to kubernetes/control-plane (#7218)

This is a small step to replace "master" with "control-plane" in
Kubespray project.
pull/7236/head
Kenichi Omichi 3 years ago
committed by GitHub
parent
commit
c5db012c9a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
28 changed files with 4 additions and 4 deletions
  1. 2
      cluster.yml
  2. 2
      docs/vars.md
  3. 2
      extra_playbooks/upgrade-only-k8s.yml
  4. 0
      roles/kubernetes/control-plane/defaults/main/etcd.yml
  5. 0
      roles/kubernetes/control-plane/defaults/main/kube-proxy.yml
  6. 0
      roles/kubernetes/control-plane/defaults/main/main.yml
  7. 0
      roles/kubernetes/control-plane/handlers/main.yml
  8. 0
      roles/kubernetes/control-plane/meta/main.yml
  9. 0
      roles/kubernetes/control-plane/tasks/encrypt-at-rest.yml
  10. 0
      roles/kubernetes/control-plane/tasks/kubeadm-certificate.yml
  11. 0
      roles/kubernetes/control-plane/tasks/kubeadm-cleanup-old-certs.yml
  12. 0
      roles/kubernetes/control-plane/tasks/kubeadm-etcd.yml
  13. 0
      roles/kubernetes/control-plane/tasks/kubeadm-fix-apiserver.yml
  14. 0
      roles/kubernetes/control-plane/tasks/kubeadm-migrate-certs.yml
  15. 0
      roles/kubernetes/control-plane/tasks/kubeadm-secondary.yml
  16. 0
      roles/kubernetes/control-plane/tasks/kubeadm-setup.yml
  17. 0
      roles/kubernetes/control-plane/tasks/kubeadm-upgrade.yml
  18. 0
      roles/kubernetes/control-plane/tasks/kubeadm-version.yml
  19. 0
      roles/kubernetes/control-plane/tasks/main.yml
  20. 0
      roles/kubernetes/control-plane/tasks/pre-upgrade.yml
  21. 0
      roles/kubernetes/control-plane/templates/apiserver-audit-policy.yaml.j2
  22. 0
      roles/kubernetes/control-plane/templates/apiserver-audit-webhook-config.yaml.j2
  23. 0
      roles/kubernetes/control-plane/templates/kubeadm-config.v1beta2.yaml.j2
  24. 0
      roles/kubernetes/control-plane/templates/kubeadm-controlplane.v1beta2.yaml.j2
  25. 0
      roles/kubernetes/control-plane/templates/secrets_encryption.yaml.j2
  26. 0
      roles/kubernetes/control-plane/templates/webhook-authorization-config.yaml.j2
  27. 0
      roles/kubernetes/control-plane/templates/webhook-token-auth-config.yaml.j2
  28. 2
      upgrade-cluster.yml

2
cluster.yml

@ -65,7 +65,7 @@
any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
roles:
- { role: kubespray-defaults }
- { role: kubernetes/master, tags: master }
- { role: kubernetes/control-plane, tags: master }
- { role: kubernetes/client, tags: client }
- { role: kubernetes-apps/cluster_roles, tags: cluster-roles }

2
docs/vars.md

@ -153,7 +153,7 @@ node_taints:
* `audit_log_maxsize`: 100
* `audit_policy_file`: "{{ kube_config_dir }}/audit-policy/apiserver-audit-policy.yaml"
By default, the `audit_policy_file` contains [default rules](https://github.com/kubernetes-sigs/kubespray/blob/master/roles/kubernetes/master/templates/apiserver-audit-policy.yaml.j2) that can be overridden with the `audit_policy_custom_rules` variable.
By default, the `audit_policy_file` contains [default rules](https://github.com/kubernetes-sigs/kubespray/blob/master/roles/kubernetes/control-plane/templates/apiserver-audit-policy.yaml.j2) that can be overridden with the `audit_policy_custom_rules` variable.
### Custom flags for Kube Components

2
extra_playbooks/upgrade-only-k8s.yml

@ -41,7 +41,7 @@
- { role: kubespray-defaults}
- { role: upgrade/pre-upgrade, tags: pre-upgrade }
- { role: kubernetes/node, tags: node }
- { role: kubernetes/master, tags: master, upgrade_cluster_setup: true }
- { role: kubernetes/control-plane, tags: master, upgrade_cluster_setup: true }
- { role: kubernetes/client, tags: client }
- { role: kubernetes-apps/cluster_roles, tags: cluster-roles }
- { role: upgrade/post-upgrade, tags: post-upgrade }

roles/kubernetes/master/defaults/main/etcd.yml → roles/kubernetes/control-plane/defaults/main/etcd.yml

roles/kubernetes/master/defaults/main/kube-proxy.yml → roles/kubernetes/control-plane/defaults/main/kube-proxy.yml

roles/kubernetes/master/defaults/main/main.yml → roles/kubernetes/control-plane/defaults/main/main.yml

roles/kubernetes/master/handlers/main.yml → roles/kubernetes/control-plane/handlers/main.yml

roles/kubernetes/master/meta/main.yml → roles/kubernetes/control-plane/meta/main.yml

roles/kubernetes/master/tasks/encrypt-at-rest.yml → roles/kubernetes/control-plane/tasks/encrypt-at-rest.yml

roles/kubernetes/master/tasks/kubeadm-certificate.yml → roles/kubernetes/control-plane/tasks/kubeadm-certificate.yml

roles/kubernetes/master/tasks/kubeadm-cleanup-old-certs.yml → roles/kubernetes/control-plane/tasks/kubeadm-cleanup-old-certs.yml

roles/kubernetes/master/tasks/kubeadm-etcd.yml → roles/kubernetes/control-plane/tasks/kubeadm-etcd.yml

roles/kubernetes/master/tasks/kubeadm-fix-apiserver.yml → roles/kubernetes/control-plane/tasks/kubeadm-fix-apiserver.yml

roles/kubernetes/master/tasks/kubeadm-migrate-certs.yml → roles/kubernetes/control-plane/tasks/kubeadm-migrate-certs.yml

roles/kubernetes/master/tasks/kubeadm-secondary.yml → roles/kubernetes/control-plane/tasks/kubeadm-secondary.yml

roles/kubernetes/master/tasks/kubeadm-setup.yml → roles/kubernetes/control-plane/tasks/kubeadm-setup.yml

roles/kubernetes/master/tasks/kubeadm-upgrade.yml → roles/kubernetes/control-plane/tasks/kubeadm-upgrade.yml

roles/kubernetes/master/tasks/kubeadm-version.yml → roles/kubernetes/control-plane/tasks/kubeadm-version.yml

roles/kubernetes/master/tasks/main.yml → roles/kubernetes/control-plane/tasks/main.yml

roles/kubernetes/master/tasks/pre-upgrade.yml → roles/kubernetes/control-plane/tasks/pre-upgrade.yml

roles/kubernetes/master/templates/apiserver-audit-policy.yaml.j2 → roles/kubernetes/control-plane/templates/apiserver-audit-policy.yaml.j2

roles/kubernetes/master/templates/apiserver-audit-webhook-config.yaml.j2 → roles/kubernetes/control-plane/templates/apiserver-audit-webhook-config.yaml.j2

roles/kubernetes/master/templates/kubeadm-config.v1beta2.yaml.j2 → roles/kubernetes/control-plane/templates/kubeadm-config.v1beta2.yaml.j2

roles/kubernetes/master/templates/kubeadm-controlplane.v1beta2.yaml.j2 → roles/kubernetes/control-plane/templates/kubeadm-controlplane.v1beta2.yaml.j2

roles/kubernetes/master/templates/secrets_encryption.yaml.j2 → roles/kubernetes/control-plane/templates/secrets_encryption.yaml.j2

roles/kubernetes/master/templates/webhook-authorization-config.yaml.j2 → roles/kubernetes/control-plane/templates/webhook-authorization-config.yaml.j2

roles/kubernetes/master/templates/webhook-token-auth-config.yaml.j2 → roles/kubernetes/control-plane/templates/webhook-token-auth-config.yaml.j2

2
upgrade-cluster.yml

@ -85,7 +85,7 @@
- { role: upgrade/pre-upgrade, tags: pre-upgrade }
- { role: container-engine, tags: "container-engine", when: deploy_container_engine|default(true) }
- { role: kubernetes/node, tags: node }
- { role: kubernetes/master, tags: master, upgrade_cluster_setup: true }
- { role: kubernetes/control-plane, tags: master, upgrade_cluster_setup: true }
- { role: kubernetes/client, tags: client }
- { role: kubernetes/node-label, tags: node-label }
- { role: kubernetes-apps/cluster_roles, tags: cluster-roles }

Loading…
Cancel
Save