Merge pull request #2260 from mirwan/local_volume_provisioner_fixes
local_volume_provisioner_enabled replacement
This commit is contained in:
commit
712bdfc82f
9 changed files with 23 additions and 21 deletions
|
@ -169,7 +169,9 @@ istio_enabled: false
|
||||||
registry_enabled: false
|
registry_enabled: false
|
||||||
|
|
||||||
# Local volume provisioner deployment
|
# Local volume provisioner deployment
|
||||||
local_volume_provisioner_enabled: false
|
# deprecated will be removed
|
||||||
|
local_volumes_enabled: false
|
||||||
|
local_volume_provisioner_enabled: "{{ local_volumes_enabled }}"
|
||||||
|
|
||||||
# Add Persistent Volumes Storage Class for corresponding cloud provider ( OpenStack is only supported now )
|
# Add Persistent Volumes Storage Class for corresponding cloud provider ( OpenStack is only supported now )
|
||||||
persistent_volumes_enabled: false
|
persistent_volumes_enabled: false
|
||||||
|
|
|
@ -3,9 +3,9 @@ docker_container_storage_setup_version: v0.6.0
|
||||||
docker_container_storage_setup_profile_name: kubespray
|
docker_container_storage_setup_profile_name: kubespray
|
||||||
docker_container_storage_setup_storage_driver: devicemapper
|
docker_container_storage_setup_storage_driver: devicemapper
|
||||||
docker_container_storage_setup_container_thinpool: docker-pool
|
docker_container_storage_setup_container_thinpool: docker-pool
|
||||||
#It must be define a disk path for docker_container_storage_setup_devs.
|
# It must be define a disk path for docker_container_storage_setup_devs.
|
||||||
#Otherwise docker-storage-setup will be executed incorrectly.
|
# Otherwise docker-storage-setup will be executed incorrectly.
|
||||||
#docker_container_storage_setup_devs: /dev/vdb
|
# docker_container_storage_setup_devs: /dev/vdb
|
||||||
docker_container_storage_setup_data_size: 40%FREE
|
docker_container_storage_setup_data_size: 40%FREE
|
||||||
docker_container_storage_setup_min_data_size: 2G
|
docker_container_storage_setup_min_data_size: 2G
|
||||||
docker_container_storage_setup_chunk_size: 512K
|
docker_container_storage_setup_chunk_size: 512K
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
#https://docs.docker.com/engine/installation/linux/docker-ce/centos/#install-using-the-repository
|
# https://docs.docker.com/engine/installation/linux/docker-ce/centos/#install-using-the-repository
|
||||||
- name: docker-storage-setup | install lvm2
|
- name: docker-storage-setup | install lvm2
|
||||||
yum:
|
yum:
|
||||||
name: lvm2
|
name: lvm2
|
||||||
|
|
|
@ -32,12 +32,12 @@ spec:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
volumes:
|
volumes:
|
||||||
- name: discovery-vol
|
- name: discovery-vol
|
||||||
hostPath:
|
hostPath:
|
||||||
path: "{{ local_volume_base_dir }}"
|
path: "{{ local_volume_base_dir }}"
|
||||||
- configMap:
|
- configMap:
|
||||||
defaultMode: 420
|
defaultMode: 420
|
||||||
name: local-volume-config
|
|
||||||
name: local-volume-config
|
name: local-volume-config
|
||||||
serviceAccount: local-storage-admin
|
name: local-volume-config
|
||||||
|
serviceAccount: local-storage-admin
|
||||||
|
|
|
@ -33,7 +33,7 @@ dependencies:
|
||||||
- apps
|
- apps
|
||||||
- local_volume_provisioner
|
- local_volume_provisioner
|
||||||
- storage
|
- storage
|
||||||
|
|
||||||
# istio role should be last because it takes a long time to initialize and
|
# istio role should be last because it takes a long time to initialize and
|
||||||
# will cause timeouts trying to start other addons.
|
# will cause timeouts trying to start other addons.
|
||||||
- role: kubernetes-apps/istio
|
- role: kubernetes-apps/istio
|
||||||
|
@ -41,7 +41,7 @@ dependencies:
|
||||||
tags:
|
tags:
|
||||||
- apps
|
- apps
|
||||||
- istio
|
- istio
|
||||||
|
|
||||||
- role: kubernetes-apps/persistent_volumes
|
- role: kubernetes-apps/persistent_volumes
|
||||||
when: persistent_volumes_enabled
|
when: persistent_volumes_enabled
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
-v /var/run:/var/run:rw \
|
-v /var/run:/var/run:rw \
|
||||||
-v {{kube_config_dir}}:{{kube_config_dir}}:ro \
|
-v {{kube_config_dir}}:{{kube_config_dir}}:ro \
|
||||||
-v /etc/os-release:/etc/os-release:ro \
|
-v /etc/os-release:/etc/os-release:ro \
|
||||||
{% if local_volumes_enabled == true %}
|
{% if local_volume_provisioner_enabled == true %}
|
||||||
-v {{ local_volume_base_dir }}:{{ local_volume_base_dir }}:shared \
|
-v {{ local_volume_base_dir }}:{{ local_volume_base_dir }}:shared \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ hyperkube_image_repo }}:{{ hyperkube_image_tag}} \
|
{{ hyperkube_image_repo }}:{{ hyperkube_image_tag}} \
|
||||||
|
|
|
@ -36,7 +36,7 @@ ExecStart=/usr/bin/rkt run \
|
||||||
--volume var-lib-docker,kind=host,source={{ docker_daemon_graph }},readOnly=false \
|
--volume var-lib-docker,kind=host,source={{ docker_daemon_graph }},readOnly=false \
|
||||||
--volume var-lib-kubelet,kind=host,source=/var/lib/kubelet,readOnly=false,recursive=true \
|
--volume var-lib-kubelet,kind=host,source=/var/lib/kubelet,readOnly=false,recursive=true \
|
||||||
--volume var-log,kind=host,source=/var/log \
|
--volume var-log,kind=host,source=/var/log \
|
||||||
{% if local_volumes_enabled == true %}
|
{% if local_volume_provisioner_enabled == true %}
|
||||||
--volume local-volume-base-dir,kind=host,source={{ local_volume_base_dir }},readOnly=false,recursive=true \
|
--volume local-volume-base-dir,kind=host,source={{ local_volume_base_dir }},readOnly=false,recursive=true \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if kube_network_plugin in ["calico", "weave", "canal", "flannel", "contiv"] %}
|
{% if kube_network_plugin in ["calico", "weave", "canal", "flannel", "contiv"] %}
|
||||||
|
@ -67,7 +67,7 @@ ExecStart=/usr/bin/rkt run \
|
||||||
--mount volume=var-lib-kubelet,target=/var/lib/kubelet \
|
--mount volume=var-lib-kubelet,target=/var/lib/kubelet \
|
||||||
--mount volume=var-log,target=/var/log \
|
--mount volume=var-log,target=/var/log \
|
||||||
--mount volume=hosts,target=/etc/hosts \
|
--mount volume=hosts,target=/etc/hosts \
|
||||||
{% if local_volumes_enabled == true %}
|
{% if local_volume_provisioner_enabled == true %}
|
||||||
--mount volume=local-volume-base-dir,target={{ local_volume_base_dir }} \
|
--mount volume=local-volume-base-dir,target={{ local_volume_base_dir }} \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if kubelet_flexvolumes_plugins_dir is defined %}
|
{% if kubelet_flexvolumes_plugins_dir is defined %}
|
||||||
|
|
|
@ -164,7 +164,7 @@ helm_enabled: false
|
||||||
istio_enabled: false
|
istio_enabled: false
|
||||||
registry_enabled: false
|
registry_enabled: false
|
||||||
enable_network_policy: false
|
enable_network_policy: false
|
||||||
local_volumes_enabled: false
|
local_volume_provisioner_enabled: false
|
||||||
persistent_volumes_enabled: false
|
persistent_volumes_enabled: false
|
||||||
|
|
||||||
# Base path for local volume provisioner addon
|
# Base path for local volume provisioner addon
|
||||||
|
@ -194,7 +194,7 @@ rbac_enabled: "{{ 'RBAC' in authorization_modes or kubeadm_enabled }}"
|
||||||
|
|
||||||
## List of key=value pairs that describe feature gates for
|
## List of key=value pairs that describe feature gates for
|
||||||
## the k8s cluster.
|
## the k8s cluster.
|
||||||
kube_feature_gates: ['Initializers={{ istio_enabled|string }}', 'PersistentLocalVolumes={{ local_volumes_enabled|string }}']
|
kube_feature_gates: ['Initializers={{ istio_enabled|string }}', 'PersistentLocalVolumes={{ local_volume_provisioner_enabled|string }}']
|
||||||
|
|
||||||
# Vault data dirs.
|
# Vault data dirs.
|
||||||
vault_base_dir: /etc/vault
|
vault_base_dir: /etc/vault
|
||||||
|
|
|
@ -9,7 +9,7 @@ kube_network_plugin: flannel
|
||||||
helm_enabled: true
|
helm_enabled: true
|
||||||
istio_enabled: true
|
istio_enabled: true
|
||||||
efk_enabled: true
|
efk_enabled: true
|
||||||
local_volumes_enabled: true
|
local_volume_provisioner_enabled: true
|
||||||
deploy_netchecker: true
|
deploy_netchecker: true
|
||||||
kubedns_min_replicas: 1
|
kubedns_min_replicas: 1
|
||||||
cloud_provider: gce
|
cloud_provider: gce
|
||||||
|
|
Loading…
Reference in a new issue