Skip to content

Commit 06af49f

Browse files
committed
feat(ops): onboard event-bingo to argocd
1 parent 1f81c51 commit 06af49f

11 files changed

Lines changed: 206 additions & 0 deletions
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: event-bingo
5+
namespace: argocd
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: default
10+
source:
11+
repoURL: https://github.com/Pseudo-Lab/DevFactory-Ops.git
12+
targetRevision: main
13+
path: services/event-bingo/overlays/prod
14+
destination:
15+
server: https://kubernetes.default.svc
16+
namespace: event-bingo
17+
syncPolicy:
18+
automated:
19+
prune: true
20+
selfHeal: true
21+
syncOptions:
22+
- CreateNamespace=true
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: event-bingo-backend
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: event-bingo
10+
component: backend
11+
template:
12+
metadata:
13+
labels:
14+
app: event-bingo
15+
component: backend
16+
spec:
17+
imagePullSecrets:
18+
- name: ghcr-creds
19+
containers:
20+
- name: backend
21+
image: ghcr.io/pseudo-lab/event-bingo-backend
22+
imagePullPolicy: Always
23+
envFrom:
24+
- secretRef:
25+
name: event-bingo-runtime-secrets
26+
ports:
27+
- containerPort: 8000
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: event-bingo-backend
5+
spec:
6+
selector:
7+
app: event-bingo
8+
component: backend
9+
ports:
10+
- port: 8000
11+
targetPort: 8000
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: event-bingo-frontend
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: event-bingo
10+
component: frontend
11+
template:
12+
metadata:
13+
labels:
14+
app: event-bingo
15+
component: frontend
16+
spec:
17+
imagePullSecrets:
18+
- name: ghcr-creds
19+
containers:
20+
- name: frontend
21+
image: ghcr.io/pseudo-lab/event-bingo-frontend
22+
imagePullPolicy: Always
23+
ports:
24+
- containerPort: 80
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: event-bingo-frontend
5+
spec:
6+
selector:
7+
app: event-bingo
8+
component: frontend
9+
ports:
10+
- port: 80
11+
targetPort: 80
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- frontend-deployment.yaml
5+
- frontend-service.yaml
6+
- backend-deployment.yaml
7+
- backend-service.yaml
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
apiVersion: bitnami.com/v1alpha1
3+
kind: SealedSecret
4+
metadata:
5+
annotations:
6+
sealedsecrets.bitnami.com/cluster-wide: "true"
7+
creationTimestamp: null
8+
name: ghcr-creds
9+
namespace: event-bingo
10+
spec:
11+
encryptedData:
12+
.dockerconfigjson: AgAC20R9FUZ24WFFH6I7bT6eDeEJnwueGsduII6HcRSFrws7RbpII8yPADy40E27Z090Yv8HQO4UhPucTzVKM6ukwI1HRxJIdPZFOGn5DAQj1yCQIpqdsTEomEdMcm2TVRN1NzBI2//93Q+ynRaixlL+Dr67JpFcqVdjJ78o8B2fh5Im6pTZVlo6E2JlKMkAa36dB8tJHoTBiZAEJIxTGELaRAVn081+E3iS5QvEOfqjeOohWGuQyKxphTCznX4iU8vQnuMW2rDSK8FD3ShN5pHW6W7d5SU5oPjuYYOdgLsq+Cp8AOVT3pMDv9kbfLHwD6fTnxik5P7aAPLioo7qM9YZicX4E7a2riEl56iRolmcbtOPOYm8AsxGtSP1JqoUzzVYDiWytmeHgwE5IY3EGmCmQQUrcPGJhfzNpVZ/d585L916VkDsmjl5iykutVhQFy5XI1LhFt8MlFA7TtZUPQG+YqkBUUC1VuB88wvSjpYfgL/kcnptyQ7To9TG99A7pboL7jQcEBWNrbPbCx5XGPRrXPC7eYk+ndamaulNEJj4Lms2X0imyr9BhYlNPJGgBZP80uaQkZf5IlS25dGwhkVkA0GHLlDcvD/iqgqxxrGa6+0xl/0VO5GuNEC8hEujvRe/Bf+Rq1wc/9vSISFWF8ljTY46AkBdQUkIKv7rA0VWAd8WXQ40C3yruu7sYg5Gy+0gLPxF92ysTLm9gJmH6D+u7r+xaqskDYMTvlGjDQqyU4Iquxo6zFAjT3P+jtW6xeqT1Pqf3CkjslwNW8IYuc6vRBghxhDQNIz3SRtC3uQuMOlM79Bcg/ByrO20K0ISaM0nydBhUoEJRcR7vjeMTaMTPRnmGDr6JiCS2LJrdLAvVEeSn9vTLVNjQThCwPvAnHV6v5qWr5tnKlo5BSbddwbe/8r/ki+P658JVHzKA6wGiKzyDWYzu54H
13+
template:
14+
metadata:
15+
annotations:
16+
sealedsecrets.bitnami.com/cluster-wide: "true"
17+
creationTimestamp: null
18+
name: ghcr-creds
19+
namespace: event-bingo
20+
type: kubernetes.io/dockerconfigjson
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: Ingress
3+
metadata:
4+
name: event-bingo-ingress
5+
annotations:
6+
cert-manager.io/cluster-issuer: "letsencrypt-prod"
7+
nginx.ingress.kubernetes.io/ssl-redirect: "true"
8+
spec:
9+
ingressClassName: nginx
10+
tls:
11+
- hosts:
12+
- bingo.pseudolab-devfactory.com
13+
secretName: event-bingo-tls
14+
rules:
15+
- host: bingo.pseudolab-devfactory.com
16+
http:
17+
paths:
18+
- path: /api
19+
pathType: Prefix
20+
backend:
21+
service:
22+
name: event-bingo-backend
23+
port:
24+
number: 8000
25+
- path: /
26+
pathType: Prefix
27+
backend:
28+
service:
29+
name: event-bingo-frontend
30+
port:
31+
number: 80
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
namespace: event-bingo
4+
5+
resources:
6+
- ../../base
7+
- namespace.yaml
8+
- ingress.yaml
9+
- ghcr-pull-secret.yaml
10+
- sealed-secret.yaml
11+
12+
commonLabels:
13+
environment: production
14+
project: event-bingo
15+
16+
images:
17+
- name: ghcr.io/pseudo-lab/event-bingo-frontend
18+
newName: ghcr.io/pseudo-lab/event-bingo-frontend
19+
newTag: latest
20+
- name: ghcr.io/pseudo-lab/event-bingo-backend
21+
newName: ghcr.io/pseudo-lab/event-bingo-backend
22+
newTag: latest
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: event-bingo

0 commit comments

Comments
 (0)