add hostnetwork

master
Marius Ensrud 5 years ago
parent 9656280cda
commit c22c3b932a

@ -0,0 +1,9 @@
***Setup helm and chartmuseum***
```
helm plugin install https://github.com/chartmuseum/helm-push.git
helm repo add chartmuseum https://helm.dyn.bassengvegen.com/
cd carts
helm push cups-airprint/ chartmuseum
```

@ -0,0 +1,9 @@
# cups-airprint
## Install Chart
```console
# Helm 3
$ helm install [RELEASE_NAME] cups-airprint
```

@ -16,6 +16,6 @@
echo http://$SERVICE_IP:{{ .Values.service.port }} echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }} {{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "cups-airprint.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "cups-airprint.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:8080 to use your application" echo "Visit http://127.0.0.1:631 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80
{{- end }} {{- end }}

@ -47,6 +47,9 @@ spec:
port: http port: http
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.hostNetwork }}
hostNetwork: {{ .Values.controller.hostNetwork }}
{{- end }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}

@ -5,8 +5,7 @@
replicaCount: 1 replicaCount: 1
image: image:
registry: registry.bassengvegen.com repository: registry.bassengvegen.com/cups-airprint
repository: cups-airprint
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: latest tag: latest
@ -15,6 +14,8 @@ imagePullSecrets: []
nameOverride: "" nameOverride: ""
fullnameOverride: "" fullnameOverride: ""
hostNetwork: false
serviceAccount: serviceAccount:
# Specifies whether a service account should be created # Specifies whether a service account should be created
create: false create: false

Loading…
Cancel
Save