diff --git a/deploy/kubernetes/easyhaproxy.yml b/deploy/kubernetes/easyhaproxy.yml index cedfdfb..53e1f19 100644 --- a/deploy/kubernetes/easyhaproxy.yml +++ b/deploy/kubernetes/easyhaproxy.yml @@ -4,6 +4,7 @@ apiVersion: v1 kind: ServiceAccount metadata: name: manual-easyhaproxy-ingress + namespace: easyhaproxy labels: helm.sh/chart: easyhaproxy-ingress-0.1.0 app.kubernetes.io/name: easyhaproxy-ingress @@ -16,6 +17,7 @@ kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: manual-easyhaproxy-ingress + namespace: easyhaproxy labels: helm.sh/chart: easyhaproxy-ingress-0.1.0 app.kubernetes.io/name: easyhaproxy-ingress @@ -81,6 +83,7 @@ kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: manual-easyhaproxy-ingress + namespace: easyhaproxy labels: helm.sh/chart: easyhaproxy-ingress-0.1.0 app.kubernetes.io/name: easyhaproxy-ingress @@ -94,12 +97,14 @@ roleRef: subjects: - kind: ServiceAccount name: manual-easyhaproxy-ingress + namespace: easyhaproxy --- # Source: easyhaproxy-ingress/templates/deployment.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: manual-easyhaproxy-ingress + namespace: easyhaproxy labels: helm.sh/chart: easyhaproxy-ingress-0.1.0 app.kubernetes.io/name: easyhaproxy-ingress diff --git a/helm/easyhaproxy-ingress/templates/clusterrole.yaml b/helm/easyhaproxy-ingress/templates/clusterrole.yaml index 05a42d4..77aaa1f 100644 --- a/helm/easyhaproxy-ingress/templates/clusterrole.yaml +++ b/helm/easyhaproxy-ingress/templates/clusterrole.yaml @@ -4,6 +4,7 @@ kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ include "easyhaproxy-ingress.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "easyhaproxy-ingress.labels" . | nindent 4 }} {{- with .Values.serviceAccount.annotations }} diff --git a/helm/easyhaproxy-ingress/templates/clusterrolebinding.yaml b/helm/easyhaproxy-ingress/templates/clusterrolebinding.yaml index 9678a9b..c806403 100644 --- a/helm/easyhaproxy-ingress/templates/clusterrolebinding.yaml +++ b/helm/easyhaproxy-ingress/templates/clusterrolebinding.yaml @@ -4,6 +4,7 @@ kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ include "easyhaproxy-ingress.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "easyhaproxy-ingress.labels" . | nindent 4 }} {{- with .Values.serviceAccount.annotations }} @@ -17,4 +18,5 @@ roleRef: subjects: - kind: ServiceAccount name: {{ include "easyhaproxy-ingress.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} {{- end }} diff --git a/helm/easyhaproxy-ingress/templates/deployment.yaml b/helm/easyhaproxy-ingress/templates/deployment.yaml index 9df1e67..3ef6c3a 100644 --- a/helm/easyhaproxy-ingress/templates/deployment.yaml +++ b/helm/easyhaproxy-ingress/templates/deployment.yaml @@ -3,6 +3,7 @@ apiVersion: apps/v1 kind: DaemonSet metadata: name: {{ include "easyhaproxy-ingress.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "easyhaproxy-ingress.labels" . | nindent 4 }} spec: diff --git a/helm/easyhaproxy-ingress/templates/serviceaccount.yaml b/helm/easyhaproxy-ingress/templates/serviceaccount.yaml index fd85feb..9d1310e 100644 --- a/helm/easyhaproxy-ingress/templates/serviceaccount.yaml +++ b/helm/easyhaproxy-ingress/templates/serviceaccount.yaml @@ -3,6 +3,7 @@ apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "easyhaproxy-ingress.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "easyhaproxy-ingress.labels" . | nindent 4 }} {{- with .Values.serviceAccount.annotations }}