Add managed network mode
Signed-off-by: Wouter Born <eclipse@maindrain.net>
This commit is contained in:
parent
1660872487
commit
987d609430
@ -28,7 +28,9 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
{{- if ne .Values.NETWORK_MODE "managed"}}
|
||||||
network_mode: ${NETWORK_MODE}
|
network_mode: ${NETWORK_MODE}
|
||||||
|
{{- end}}
|
||||||
ports:
|
ports:
|
||||||
- ${HTTP_PORT}:${HTTP_PORT}
|
- ${HTTP_PORT}:${HTTP_PORT}
|
||||||
- ${HTTPS_PORT}:${HTTPS_PORT}
|
- ${HTTPS_PORT}:${HTTPS_PORT}
|
||||||
|
@ -38,6 +38,7 @@ catalog:
|
|||||||
options:
|
options:
|
||||||
- host
|
- host
|
||||||
- bridge
|
- bridge
|
||||||
|
- managed
|
||||||
- none
|
- none
|
||||||
|
|
||||||
- variable: "HOST_LABEL"
|
- variable: "HOST_LABEL"
|
||||||
|
@ -28,7 +28,9 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
{{- if ne .Values.NETWORK_MODE "managed"}}
|
||||||
network_mode: ${NETWORK_MODE}
|
network_mode: ${NETWORK_MODE}
|
||||||
|
{{- end}}
|
||||||
ports:
|
ports:
|
||||||
- ${HTTP_PORT}:${HTTP_PORT}
|
- ${HTTP_PORT}:${HTTP_PORT}
|
||||||
- ${HTTPS_PORT}:${HTTPS_PORT}
|
- ${HTTPS_PORT}:${HTTPS_PORT}
|
||||||
|
@ -39,6 +39,7 @@ catalog:
|
|||||||
options:
|
options:
|
||||||
- host
|
- host
|
||||||
- bridge
|
- bridge
|
||||||
|
- managed
|
||||||
- none
|
- none
|
||||||
|
|
||||||
- variable: "HOST_LABEL"
|
- variable: "HOST_LABEL"
|
||||||
|
@ -28,7 +28,9 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
{{- if ne .Values.NETWORK_MODE "managed"}}
|
||||||
network_mode: ${NETWORK_MODE}
|
network_mode: ${NETWORK_MODE}
|
||||||
|
{{- end}}
|
||||||
ports:
|
ports:
|
||||||
- ${HTTP_PORT}:${HTTP_PORT}
|
- ${HTTP_PORT}:${HTTP_PORT}
|
||||||
- ${HTTPS_PORT}:${HTTPS_PORT}
|
- ${HTTPS_PORT}:${HTTPS_PORT}
|
||||||
|
@ -39,6 +39,7 @@ catalog:
|
|||||||
options:
|
options:
|
||||||
- host
|
- host
|
||||||
- bridge
|
- bridge
|
||||||
|
- managed
|
||||||
- none
|
- none
|
||||||
|
|
||||||
- variable: "HOST_LABEL"
|
- variable: "HOST_LABEL"
|
||||||
|
@ -29,7 +29,9 @@ services:
|
|||||||
{{- if ne .Values.HOST_LABEL ""}}
|
{{- if ne .Values.HOST_LABEL ""}}
|
||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
{{- if ne .Values.NETWORK_MODE "managed"}}
|
||||||
network_mode: ${NETWORK_MODE}
|
network_mode: ${NETWORK_MODE}
|
||||||
|
{{- end}}
|
||||||
ports:
|
ports:
|
||||||
- ${HTTP_PORT}:${HTTP_PORT}
|
- ${HTTP_PORT}:${HTTP_PORT}
|
||||||
- ${HTTPS_PORT}:${HTTPS_PORT}
|
- ${HTTPS_PORT}:${HTTPS_PORT}
|
||||||
|
@ -39,6 +39,7 @@ catalog:
|
|||||||
options:
|
options:
|
||||||
- host
|
- host
|
||||||
- bridge
|
- bridge
|
||||||
|
- managed
|
||||||
- none
|
- none
|
||||||
|
|
||||||
- variable: "HOST_LABEL"
|
- variable: "HOST_LABEL"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user