Compare commits

...

17 commits

6 changed files with 144 additions and 0 deletions

View file

@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: silly-game-ingress
namespace: silly-game
spec:
ingressClassName: nginx
rules:
- host: {{{ .Env.DOMAIN }}}
http:
paths:
- path: /silly-game
pathType: Prefix
backend:
service:
name: silly-game-frontend-service
port:
number: 80
- path: /silly-game-api
pathType: Prefix
backend:
service:
name: silly-game-backend-service
port:
number: 8080

View file

@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jumpingGameBackend
namespace: jumpingGame
spec:
replicas: 1
selector:
matchLabels:
app: jumpingGameBackend
template:
metadata:
labels:
app: jumpingGameBackend
spec:
containers:
- name: jumpingGameBackend
image: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/Michal.Wrobel/-/packages
ports:
- containerPort: 8080

View file

@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jumpingGameFrontend
namespace: jumpingGame
spec:
replicas: 1
selector:
matchLabels:
app: jumpingGameFrontend
template:
metadata:
labels:
app: jumpingGameFrontend
spec:
containers:
- name: jumpingGameFrontend
image: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/Michal.Wrobel/-/packages
ports:
- containerPort: 8080

View file

@ -0,0 +1,29 @@
apiVersion: v1
kind: Service
metadata:
name: jumpingGameFrontendService
namespace: jumpingGame
spec:
selector:
app: jumpingGameFrontend
ports:
- protocol: TCP
port: 80
targetPort: 8080
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: jumpingGameBackendService
namespace: jumpingGame
spec:
selector:
app: jumpingGameBackend
ports:
- protocol: TCP
port: 8080
targetPort: 8080
type: ClusterIP

View file

@ -0,0 +1,25 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: silly-game-backend
namespace: argocd
labels:
env: dev
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/michals-silly-game-backend
targetRevision: HEAD
path: "k8"
destination:
name: in-cluster
namespace: silly-game
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
selfHeal: true
retry:
limit: -1

View file

@ -0,0 +1,25 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: silly-game-frontend
namespace: argocd
labels:
env: dev
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/michals-silly-game-frontend
targetRevision: HEAD
path: "k8"
destination:
name: in-cluster
namespace: silly-game
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
selfHeal: true
retry:
limit: -1