- name: secret
mountPath: /etc/etcd/ssl
readOnly: true
- - name: kube-etcd-proxy
- image: {{ container_image_names | select('search', '/etcd') | list | last }}
-{% set etcdproxys = [] -%}
-{%- for nodenumber in range(groups['caas_master']|length|int) -%}
-{%- if etcdproxys.append('https://' + (hostvars[groups.caas_master[nodenumber]]['networking']['infra_internal']['ip']|string) + ':' + (caas.etcd_api_port|string) ) -%}{%- endif -%}
-{%- endfor %}
- command:
- - /usr/bin/etcd
- args:
- - grpc-proxy
- - start
- - --endpoints={{ etcdproxys|join(',')}}
- - --listen-addr={{ ansible_host }}:{{ caas.etcd_proxy_port }}
- - --advertise-client-url={{ ansible_host }}:{{ caas.etcd_proxy_port }}
- - --resolver-prefix='___grpc_proxy_endpoint'
- - --resolver-ttl=60
- - --cert=/etc/etcd/ssl/etcd{{ nodeindex }}.pem
- - --key=/etc/etcd/ssl/etcd{{ nodeindex }}-key.pem
- - --cacert=/etc/etcd/ssl/ca.pem
- resources:
- requests:
- cpu: "10m"
- volumeMounts:
- - name: time-mount
- mountPath: /etc/localtime
- readOnly: true
- - name: secret
- mountPath: /etc/etcd/ssl
- readOnly: true
volumes:
- name: time-mount
hostPath:
%define COMPONENT etcd
%define RPM_NAME caas-%{COMPONENT}
-%define RPM_MAJOR_VERSION 3.3.13
-%define RPM_MINOR_VERSION 6
+%define RPM_MAJOR_VERSION 3.4.0
+%define RPM_MINOR_VERSION 0
%define go_version 1.12.9
%define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
%define docker_build_dir %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-build
&& cd ${go_install_dir}/src/ \
&& ./make.bash \
\
-&& mkdir -p ${GOPATH}/src/github.com/coreos/etcd \
-&& curl -fsSL -k https://github.com/coreos/etcd/archive/v${ETCD_VERSION}.tar.gz | tar zx --strip-components=1 -C ${GOPATH}/src/github.com/coreos/etcd \
-&& cd ${GOPATH}/src/github.com/coreos/etcd \
+&& mkdir -p ${GOPATH}/src/go.etcd.io/etcd \
+&& curl -fsSL -k https://github.com/coreos/etcd/archive/v${ETCD_VERSION}.tar.gz | tar zx --strip-components=1 -C ${GOPATH}/src/go.etcd.io/etcd \
+&& cd ${GOPATH}/src/go.etcd.io/etcd \
&& GOOS=linux ./build \
&& mv bin/etcd /usr/bin/ \
&& mv bin/etcdctl /usr/bin/ \