Merge "Fix potential port conflict"
This commit is contained in:
commit
7bd693ecc3
doc/source/configuration
promenade
@ -25,6 +25,9 @@ Here is a complete sample document:
|
|||||||
ip: 192.168.77.10
|
ip: 192.168.77.10
|
||||||
armada:
|
armada:
|
||||||
target_manifest: cluster-bootstrap
|
target_manifest: cluster-bootstrap
|
||||||
|
tiller:
|
||||||
|
listen: 24134
|
||||||
|
probe_listen: 24135
|
||||||
labels:
|
labels:
|
||||||
static:
|
static:
|
||||||
- calico-etcd=enabled
|
- calico-etcd=enabled
|
||||||
|
@ -99,6 +99,14 @@ data:
|
|||||||
auxiliary_threshold:
|
auxiliary_threshold:
|
||||||
type: integer
|
type: integer
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
tiller:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
listen:
|
||||||
|
type: integer
|
||||||
|
probe_listen:
|
||||||
|
type: integer
|
||||||
|
additionalProperties: false
|
||||||
|
|
||||||
files:
|
files:
|
||||||
type: array
|
type: array
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
{# By default, use tiller ports outside of `net.ipv4.ip_local_port_range` to
|
||||||
|
avoid conflicts with apiserver connections to etcd, see [0].
|
||||||
|
[0]: https://github.com/helm/helm/issues/4886
|
||||||
|
#}
|
||||||
|
{% set tiller_listen = config['Genesis:tiller.listen'] | default(24134) %}
|
||||||
|
{% set tiller_probe_listen = config['Genesis:tiller.probe_listen'] | default(24135) %}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
@ -17,6 +23,10 @@ spec:
|
|||||||
image: {{ config['Genesis:images.helm.tiller'] }}
|
image: {{ config['Genesis:images.helm.tiller'] }}
|
||||||
command:
|
command:
|
||||||
- /tiller
|
- /tiller
|
||||||
|
- -listen
|
||||||
|
- ":{{ tiller_listen }}"
|
||||||
|
- -probe-listen
|
||||||
|
- ":{{ tiller_probe_listen }}"
|
||||||
- -logtostderr
|
- -logtostderr
|
||||||
- -v
|
- -v
|
||||||
- "5"
|
- "5"
|
||||||
@ -25,7 +35,7 @@ spec:
|
|||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /liveness
|
path: /liveness
|
||||||
port: 44135
|
port: {{ tiller_probe_listen }}
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
initialDelaySeconds: 1
|
initialDelaySeconds: 1
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
@ -33,14 +43,14 @@ spec:
|
|||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
name: tiller
|
name: tiller
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 44134
|
- containerPort: {{ tiller_listen }}
|
||||||
name: tiller
|
name: tiller
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /readiness
|
path: /readiness
|
||||||
port: 44135
|
port: {{ tiller_probe_listen }}
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
initialDelaySeconds: 1
|
initialDelaySeconds: 1
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
@ -65,6 +75,7 @@ spec:
|
|||||||
apply \
|
apply \
|
||||||
--target-manifest {{ config.get_path('Genesis:armada.target_manifest', 'cluster-bootstrap') }} \
|
--target-manifest {{ config.get_path('Genesis:armada.target_manifest', 'cluster-bootstrap') }} \
|
||||||
--tiller-host 127.0.0.1 \
|
--tiller-host 127.0.0.1 \
|
||||||
|
--tiller-port {{ tiller_listen }} \
|
||||||
/etc/genesis/armada/assets/manifest.yaml &>> "${ARMADA_LOGFILE}"; then
|
/etc/genesis/armada/assets/manifest.yaml &>> "${ARMADA_LOGFILE}"; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user