diff --git a/README.md b/README.md index e69de29..93d74cf 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/charts/cups-airprint/README.md b/charts/cups-airprint/README.md new file mode 100644 index 0000000..d70b3e1 --- /dev/null +++ b/charts/cups-airprint/README.md @@ -0,0 +1,9 @@ +# cups-airprint + +## Install Chart + +```console +# Helm 3 +$ helm install [RELEASE_NAME] cups-airprint + +``` diff --git a/charts/cups-airprint/templates/NOTES.txt b/charts/cups-airprint/templates/NOTES.txt index 3469451..e64a258 100644 --- a/charts/cups-airprint/templates/NOTES.txt +++ b/charts/cups-airprint/templates/NOTES.txt @@ -16,6 +16,6 @@ echo http://$SERVICE_IP:{{ .Values.service.port }} {{- 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}") - 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 {{- end }} diff --git a/charts/cups-airprint/templates/deployment.yaml b/charts/cups-airprint/templates/deployment.yaml index da44057..71cbcf1 100644 --- a/charts/cups-airprint/templates/deployment.yaml +++ b/charts/cups-airprint/templates/deployment.yaml @@ -47,6 +47,9 @@ spec: port: http resources: {{- toYaml .Values.resources | nindent 12 }} + {{- if .Values.hostNetwork }} + hostNetwork: {{ .Values.controller.hostNetwork }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/cups-airprint/values.yaml b/charts/cups-airprint/values.yaml index e48108b..617b5c7 100644 --- a/charts/cups-airprint/values.yaml +++ b/charts/cups-airprint/values.yaml @@ -5,8 +5,7 @@ replicaCount: 1 image: - registry: registry.bassengvegen.com - repository: cups-airprint + repository: registry.bassengvegen.com/cups-airprint pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. tag: latest @@ -15,6 +14,8 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +hostNetwork: false + serviceAccount: # Specifies whether a service account should be created create: false