Commit 5afaec6e authored by Will JALLET's avatar Will JALLET 💸

update, inject namespace during install

parent 978eabc9
Pipeline #4327 failed with stage
in 10 seconds
{{- define "site.namespace" -}}
{{- if (ne .Release.Namespace "default") -}}
namespace: {{ .Release.Namespace }}
{{- else -}}
namespace: {{ .Release.Name }}-app
{{- end -}}
{{- end -}}
{{/* Generate basic labels */}}
{{- define "site.labels" }}
labels:
......
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ .Release.Name }}
{{ template "site.namespace" . }}
namespace: {{ .Release.Namespace }}
{{- template "site.labels" . }}
annotations:
flux.weave.works/automated: 'true'
......
......@@ -5,7 +5,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ .Release.Name }}
{{ template "site.namespace" . }}
namespace: {{ .Release.Namespace }}
{{- template "site.labels" . }}
spec:
rules:
......
......@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}
{{ template "site.namespace" . }}
namespace: {{ .Release.Namespace }}
{{- template "site.labels" . }}
spec:
type: {{ .Values.service.type }}
......
image:
repository: registry.binets.fr/wilson.jallet/creneaux/master:latest
repository: registry.binets.fr/wilson.jallet/creneaux/master:latest
ingress:
enabled: true
hosts:
- creneaux.kubeapps.binets.fr
\ No newline at end of file
replicaCount: 1
image:
## @required Dépôt de l'image Docker
repository:
ingress:
enabled: true
hosts:
- kubeapps.binets.fr
image:
## @required Dépôt de l'image Docker
repository:
service:
type: ClusterIP
## Le port sur lequel tourne le service.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment