Skip to content

Commit

Permalink
Adds namespaces to all templates (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrongestNumber9 authored Jul 20, 2023
1 parent 185edf5 commit 7e991cb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: config
namespace: {{.Values.namespace}}
data:
config.json: |-
{{ $.Files.Get "etc/config.json" | indent 4 }}
Expand Down
1 change: 1 addition & 0 deletions templates/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Pod
metadata:
name: kubelogreader
namespace: {{.Values.namespace}}
labels:
app: k8s_01
host: k8s_01
Expand Down
1 change: 1 addition & 0 deletions templates/pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: PersistentVolume
metadata:
name: statestore-pv
namespace: {{.Values.namespace}}
labels:
type: local
spec:
Expand Down
1 change: 1 addition & 0 deletions templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: statestore-pvc
namespace: {{.Values.namespace}}
spec:
accessModes:
- ReadWriteOnce
Expand Down
1 change: 1 addition & 0 deletions templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Secret
metadata:
name: kubelogreader
namespace: {{.Values.namespace}}
annotations:
kubernetes.io/service-account.name: kubelogreader
type: kubernetes.io/service-account-token
1 change: 1 addition & 0 deletions templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: kubelogreader
namespace: {{.Values.namespace}}

0 comments on commit 7e991cb

Please sign in to comment.