Skip to content

Commit

Permalink
add namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mycrEEpy committed Aug 14, 2023
1 parent 23a6021 commit 036709f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions deploy/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: v1
kind: Service
metadata:
name: pgopher
namespace: default
spec:
ports:
- name: http
Expand All @@ -15,7 +14,6 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: pgopher
namespace: default
spec:
replicas: 1
selector:
Expand Down
3 changes: 2 additions & 1 deletion deploy/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
namespace: pgopher
commonLabels:
app.kubernetes.io/name: pgopher
resources:
- namespace.yml
- deploy.yml
configMapGenerator:
- name: pgopher
Expand Down
4 changes: 4 additions & 0 deletions deploy/namespace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: pgopher

0 comments on commit 036709f

Please sign in to comment.