Skip to content

Commit

Permalink
kustomize files added
Browse files Browse the repository at this point in the history
  • Loading branch information
justmeandopensource committed Aug 30, 2020
1 parent c2e207b commit 9b19949
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kustomize-demo/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namePrefix: kustomize-

resources:
- nginx-deployment.yaml
- nginx-svc.yaml
20 changes: 20 additions & 0 deletions kustomize-demo/nginx-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: nginx
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx
name: nginx
16 changes: 16 additions & 0 deletions kustomize-demo/nginx-svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: nginx
name: nginx
namespace: default
spec:
clusterIP: 10.43.10.76
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: nginx
type: ClusterIP

0 comments on commit 9b19949

Please sign in to comment.