Skip to content

Commit 14337db

Browse files
committed
Merge remote-tracking branch 'upstream/master' into fix-#12950
2 parents 324cfee + 34f43d2 commit 14337db

File tree

22 files changed

+31
-452
lines changed

22 files changed

+31
-452
lines changed

contrib/terraform/openstack/modules/compute/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ resource "openstack_compute_instance_v2" "glusterfs_node_no_floating_ip" {
10061006
name = "${var.cluster_name}-gfs-node-nf-${count.index + 1}"
10071007
count = var.number_of_gfs_nodes_no_floating_ip
10081008
availability_zone = element(var.az_list, count.index)
1009-
image_name = var.gfs_root_volume_size_in_gb == 0 ? local.image_to_use_gfs : null
1009+
image_id = var.gfs_root_volume_size_in_gb == 0 ? local.image_to_use_gfs : null
10101010
flavor_id = var.flavor_gfs_node
10111011
key_pair = openstack_compute_keypair_v2.k8s.name
10121012

@@ -1078,7 +1078,7 @@ resource "openstack_networking_floatingip_associate_v2" "k8s_nodes" {
10781078
port_id = openstack_networking_port_v2.k8s_nodes_port[each.key].id
10791079
}
10801080

1081-
resource "openstack_blockstorage_volume_v2" "glusterfs_volume" {
1081+
resource "openstack_blockstorage_volume_v3" "glusterfs_volume" {
10821082
name = "${var.cluster_name}-glusterfs_volume-${count.index + 1}"
10831083
count = var.gfs_root_volume_size_in_gb == 0 ? var.number_of_gfs_nodes_no_floating_ip : 0
10841084
description = "Non-ephemeral volume for GlusterFS"
@@ -1088,5 +1088,5 @@ resource "openstack_blockstorage_volume_v2" "glusterfs_volume" {
10881088
resource "openstack_compute_volume_attach_v2" "glusterfs_volume" {
10891089
count = var.gfs_root_volume_size_in_gb == 0 ? var.number_of_gfs_nodes_no_floating_ip : 0
10901090
instance_id = element(openstack_compute_instance_v2.glusterfs_node_no_floating_ip.*.id, count.index)
1091-
volume_id = element(openstack_blockstorage_volume_v2.glusterfs_volume.*.id, count.index)
1091+
volume_id = element(openstack_blockstorage_volume_v3.glusterfs_volume.*.id, count.index)
10921092
}

docs/ansible/ansible.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ The following tags are defined in playbooks:
7878
| crio | Configuring crio container engine for hosts |
7979
| crun | Configuring crun runtime |
8080
| csi-driver | Configuring csi driver |
81-
| dashboard | Installing and configuring the Kubernetes Dashboard |
8281
| dns | Remove dns entries when resetting |
8382
| docker | Configuring docker engine runtime for hosts |
8483
| download | Fetching container images to a delegate host |

docs/getting_started/getting-started.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -83,32 +83,6 @@ authentication. One can get a kubeconfig from kube_control_plane hosts
8383
For more information on kubeconfig and accessing a Kubernetes cluster, refer to
8484
the Kubernetes [documentation](https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/).
8585

86-
## Accessing Kubernetes Dashboard
87-
88-
Supported version is kubernetes-dashboard v2.0.x :
89-
90-
- Login option : token/kubeconfig by default
91-
- Deployed by default in "kube-system" namespace, can be overridden with `dashboard_namespace: kubernetes-dashboard` in inventory,
92-
- Only serves over https
93-
94-
Access is described in [dashboard docs](https://github.com/kubernetes/dashboard/tree/master/docs/user/accessing-dashboard). With kubespray's default deployment in kube-system namespace, instead of kubernetes-dashboard :
95-
96-
- Proxy URL is <http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#/login>
97-
- kubectl commands must be run with "-n kube-system"
98-
99-
Accessing through Ingress is highly recommended. For proxy access, please note that proxy must listen to [localhost](https://github.com/kubernetes/dashboard/issues/692#issuecomment-220492484) (`proxy --address="x.x.x.x"` will not work)
100-
101-
For token authentication, guide to create Service Account is provided in [dashboard sample user](https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md) doc. Still take care of default namespace.
102-
103-
Access can also by achieved via ssh tunnel on a control plane :
104-
105-
```bash
106-
# localhost:8081 will be sent to control-plane-1's own localhost:8081
107-
ssh -L8001:localhost:8001 user@control-plane-1
108-
sudo -i
109-
kubectl proxy
110-
```
111-
11286
## Accessing Kubernetes API
11387

11488
The main client of Kubernetes is `kubectl`. It is installed on each kube_control_plane

docs/operations/hardening.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ kubelet_make_iptables_util_chains: true
100100
kubelet_feature_gates: ["RotateKubeletServerCertificate=true"]
101101
kubelet_seccomp_default: true
102102
kubelet_systemd_hardening: true
103-
# To disable kubelet's staticPodPath (for nodes that don't use static pods like worker nodes)
104-
kubelet_static_pod_path: ""
105103
# In case you have multiple interfaces in your
106104
# control plane nodes and you want to specify the right
107105
# IP addresses, kubelet_secure_addresses allows you

inventory/sample/group_vars/k8s_cluster/addons.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
---
2-
# Kubernetes dashboard
3-
# RBAC required. see docs/getting-started.md for access details.
4-
# dashboard_enabled: false
5-
62
# Helm deployment
73
helm_enabled: false
84

roles/kubernetes-apps/ansible/defaults/main.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dns_nodes_per_replica: 16
1111
dns_cores_per_replica: 256
1212
dns_prevent_single_point_failure: "{{ 'true' if dns_min_replicas | int > 1 else 'false' }}"
1313
enable_coredns_reverse_dns_lookups: true
14+
coredns_svc_name: "coredns"
1415
coredns_ordinal_suffix: ""
1516
# dns_extra_tolerations: [{effect: NoSchedule, operator: "Exists"}]
1617
coredns_affinity:
@@ -118,29 +119,5 @@ netchecker_agent_log_level: 5
118119
netchecker_server_log_level: 5
119120
netchecker_etcd_log_level: info
120121

121-
# Dashboard
122-
dashboard_replicas: 1
123-
124-
# Namespace for dashboard
125-
dashboard_namespace: kube-system
126-
127-
# Limits for dashboard
128-
dashboard_cpu_limit: 100m
129-
dashboard_memory_limit: 256M
130-
dashboard_cpu_requests: 50m
131-
dashboard_memory_requests: 64M
132-
133-
# Set dashboard_use_custom_certs to true if overriding dashboard_certs_secret_name with a secret that
134-
# contains dashboard_tls_key_file and dashboard_tls_cert_file instead of using the initContainer provisioned certs
135-
dashboard_use_custom_certs: false
136-
dashboard_certs_secret_name: kubernetes-dashboard-certs
137-
dashboard_tls_key_file: dashboard.key
138-
dashboard_tls_cert_file: dashboard.crt
139-
dashboard_master_toleration: true
140-
141-
# Override dashboard default settings
142-
dashboard_token_ttl: 900
143-
dashboard_skip_login: false
144-
145122
# Policy Controllers
146123
# policy_controller_extra_tolerations: [{effect: NoSchedule, operator: "Exists"}]

roles/kubernetes-apps/ansible/tasks/main.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,3 @@
109109
- netchecker-server-clusterrolebinding.yml.j2
110110
- netchecker-server-deployment.yml.j2
111111
- netchecker-server-svc.yml.j2
112-
113-
- name: Kubernetes Apps | Dashboard
114-
command:
115-
cmd: "{{ kubectl_apply_stdin }}"
116-
stdin: "{{ lookup('template', 'dashboard.yml.j2') }}"
117-
delegate_to: "{{ groups['kube_control_plane'][0] }}"
118-
run_once: true
119-
vars:
120-
k8s_namespace: "{{ dashboard_namespace }}"
121-
when: dashboard_enabled
122-
tags:
123-
- dashboard

roles/kubernetes-apps/ansible/templates/coredns-svc.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: Service
44
metadata:
5-
name: coredns{{ coredns_ordinal_suffix }}
5+
name: {{ coredns_svc_name }}{{ coredns_ordinal_suffix }}
66
namespace: kube-system
77
labels:
88
k8s-app: kube-dns{{ coredns_ordinal_suffix }}

0 commit comments

Comments
 (0)