Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

promotion from gitops-repo-testing to staging #1

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions service-a/base/config/300-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
newLabel1: createdInDev
newLabel2: secondLabelInDev
spec:
serviceAccountName: default-main-service-account
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
13 changes: 13 additions & 0 deletions service-a/base/config/310-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
kind: Service
apiVersion: v1
metadata:
name: nginx-service
spec:
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
selector:
app: nginx
4 changes: 4 additions & 0 deletions service-a/base/config/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
resources:
- 300-deployment.yaml
- 310-service.yaml
3 changes: 3 additions & 0 deletions service-a/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bases:
- ./config
10 changes: 10 additions & 0 deletions service-a/overlays/dev-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 1

6 changes: 6 additions & 0 deletions service-a/overlays/dev-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Service
apiVersion: v1
metadata:
name: nginx-service
labels:
env: dev
6 changes: 6 additions & 0 deletions service-a/overlays/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
bases:
- ../base
patches:
- dev-service.yaml
- dev-deployment.yaml