Add managed network mode

Signed-off-by: Wouter Born <eclipse@maindrain.net>
This commit is contained in:
Wouter Born 2017-12-14 21:18:33 +01:00
parent 1660872487
commit 987d609430
No known key found for this signature in database
GPG Key ID: E3D2BBC0184688A1
8 changed files with 12 additions and 0 deletions

View File

@ -28,7 +28,9 @@ services:
labels:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
{{- if ne .Values.NETWORK_MODE "managed"}}
network_mode: ${NETWORK_MODE}
{{- end}}
ports:
- ${HTTP_PORT}:${HTTP_PORT}
- ${HTTPS_PORT}:${HTTPS_PORT}

View File

@ -38,6 +38,7 @@ catalog:
options:
- host
- bridge
- managed
- none
- variable: "HOST_LABEL"

View File

@ -28,7 +28,9 @@ services:
labels:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
{{- if ne .Values.NETWORK_MODE "managed"}}
network_mode: ${NETWORK_MODE}
{{- end}}
ports:
- ${HTTP_PORT}:${HTTP_PORT}
- ${HTTPS_PORT}:${HTTPS_PORT}

View File

@ -39,6 +39,7 @@ catalog:
options:
- host
- bridge
- managed
- none
- variable: "HOST_LABEL"

View File

@ -28,7 +28,9 @@ services:
labels:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
{{- if ne .Values.NETWORK_MODE "managed"}}
network_mode: ${NETWORK_MODE}
{{- end}}
ports:
- ${HTTP_PORT}:${HTTP_PORT}
- ${HTTPS_PORT}:${HTTPS_PORT}

View File

@ -39,6 +39,7 @@ catalog:
options:
- host
- bridge
- managed
- none
- variable: "HOST_LABEL"

View File

@ -29,7 +29,9 @@ services:
{{- if ne .Values.HOST_LABEL ""}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
{{- if ne .Values.NETWORK_MODE "managed"}}
network_mode: ${NETWORK_MODE}
{{- end}}
ports:
- ${HTTP_PORT}:${HTTP_PORT}
- ${HTTPS_PORT}:${HTTPS_PORT}

View File

@ -39,6 +39,7 @@ catalog:
options:
- host
- bridge
- managed
- none
- variable: "HOST_LABEL"