cleanup rebase from upstream
This commit is contained in:
parent
39915aec55
commit
fc68a5b5fd
6 changed files with 11 additions and 3 deletions
|
@ -1 +1,4 @@
|
||||||
helm_enabled: false
|
helm_enabled: false
|
||||||
|
|
||||||
|
# specify a dir and attach it to helm for HELM_HOME.
|
||||||
|
helm_home_dir: "/root/.helm"
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
---
|
---
|
||||||
|
- name: Helm | Make sure HELM_HOME directory exists
|
||||||
|
file: path={{ helm_home_dir }} state=directory
|
||||||
|
|
||||||
- name: Helm | Set up helm launcher
|
- name: Helm | Set up helm launcher
|
||||||
template:
|
template:
|
||||||
src: helm-container.j2
|
src: helm-container.j2
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
--net=host \
|
--net=host \
|
||||||
--name=helm \
|
--name=helm \
|
||||||
-v /etc/ssl:/etc/ssl:ro \
|
-v /etc/ssl:/etc/ssl:ro \
|
||||||
|
-v {{ helm_home_dir }}:{{ helm_home_dir }}:rw \
|
||||||
{% for dir in ssl_ca_dirs -%}
|
{% for dir in ssl_ca_dirs -%}
|
||||||
-v {{ dir }}:{{ dir }}:ro \
|
-v {{ dir }}:{{ dir }}:ro \
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
|
|
|
@ -86,7 +86,7 @@ if [ -n "$MASTERS" ]; then
|
||||||
# admin key
|
# admin key
|
||||||
openssl genrsa -out admin-${host}-key.pem 2048 > /dev/null 2>&1
|
openssl genrsa -out admin-${host}-key.pem 2048 > /dev/null 2>&1
|
||||||
openssl req -new -key admin-${host}-key.pem -out admin-${host}.csr -subj "/CN=kube-admin-${cn}/O=system:masters" > /dev/null 2>&1
|
openssl req -new -key admin-${host}-key.pem -out admin-${host}.csr -subj "/CN=kube-admin-${cn}/O=system:masters" > /dev/null 2>&1
|
||||||
openssl x509 -req -in admin-${host}.csr -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out admin-${host}.pem -days 365 > /dev/null 2>&1
|
openssl x509 -req -in admin-${host}.csr -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out admin-${host}.pem -days 3650 > /dev/null 2>&1
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ if [ -n "$HOSTS" ]; then
|
||||||
# node key
|
# node key
|
||||||
openssl genrsa -out node-${host}-key.pem 2048 > /dev/null 2>&1
|
openssl genrsa -out node-${host}-key.pem 2048 > /dev/null 2>&1
|
||||||
openssl req -new -key node-${host}-key.pem -out node-${host}.csr -subj "/CN=kube-node-${cn}/O=system:nodes" > /dev/null 2>&1
|
openssl req -new -key node-${host}-key.pem -out node-${host}.csr -subj "/CN=kube-node-${cn}/O=system:nodes" > /dev/null 2>&1
|
||||||
openssl x509 -req -in node-${host}.csr -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out node-${host}.pem -days 365 > /dev/null 2>&1
|
openssl x509 -req -in node-${host}.csr -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out node-${host}.pem -days 3650 > /dev/null 2>&1
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: etcd
|
- role: etcd
|
||||||
|
- role: docker
|
||||||
|
when: not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
|
||||||
- role: download
|
- role: download
|
||||||
file: "{{ downloads.calico_rr }}"
|
file: "{{ downloads.calico_rr }}"
|
||||||
|
|
|
@ -9,7 +9,6 @@ ExecStartPre=-{{ docker_bin_dir }}/docker rm -f calico-node
|
||||||
ExecStart={{ docker_bin_dir }}/docker run --net=host --privileged \
|
ExecStart={{ docker_bin_dir }}/docker run --net=host --privileged \
|
||||||
--name=calico-node \
|
--name=calico-node \
|
||||||
-e HOSTNAME=${CALICO_HOSTNAME} \
|
-e HOSTNAME=${CALICO_HOSTNAME} \
|
||||||
-e NODENAME=${CALICO_HOSTNAME} \
|
|
||||||
-e IP=${CALICO_IP} \
|
-e IP=${CALICO_IP} \
|
||||||
-e IP6=${CALICO_IP6} \
|
-e IP6=${CALICO_IP6} \
|
||||||
-e CALICO_NETWORKING_BACKEND=${CALICO_NETWORKING_BACKEND} \
|
-e CALICO_NETWORKING_BACKEND=${CALICO_NETWORKING_BACKEND} \
|
||||||
|
|
Loading…
Reference in a new issue