Compare commits
10 commits
4e6bc267d3
...
2022106cb0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2022106cb0 | ||
|
|
ae8848cfd2 | ||
|
|
c964431c7f | ||
|
|
7fac795f11 | ||
|
|
964ecdbdb2 | ||
|
|
4e135403f1 | ||
|
|
025efc732f | ||
|
|
def30cded8 | ||
|
|
d95ea8de9e | ||
|
|
a623f85238 |
5 changed files with 52 additions and 60 deletions
25
template/stacks/core/ingress-apps/silly-game.yaml
Normal file
25
template/stacks/core/ingress-apps/silly-game.yaml
Normal 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
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: silly-game
|
name: silly-game-backend
|
||||||
namespace: silly-game
|
namespace: argocd
|
||||||
labels:
|
labels:
|
||||||
env: dev
|
env: dev
|
||||||
finalizers:
|
finalizers:
|
||||||
25
template/stacks/ref-implementation/silly-game-frontend.yaml
Normal file
25
template/stacks/ref-implementation/silly-game-frontend.yaml
Normal 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
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: silly-game-config
|
|
||||||
namespace: silly-game
|
|
||||||
data:
|
|
||||||
game-config.properties: |
|
|
||||||
spring.application.name=silly-game
|
|
||||||
|
|
||||||
spring.mail.host=mailhog.mailhog.svc.cluster.local
|
|
||||||
spring.mail.port=1025
|
|
||||||
spring.mail.username=
|
|
||||||
spring.mail.password=
|
|
||||||
spring.mail.properties.mail.smtp.auth=false
|
|
||||||
spring.mail.properties.mail.smtp.starttls.enable=false
|
|
||||||
|
|
||||||
cors.allowed-origin=http://silly-game-service.silly-game.svc.cluster.local
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: silly-game-deployment
|
|
||||||
namespace: silly-game
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: silly-game
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: silly-game
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: silly-game
|
|
||||||
image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-backend:main
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
volumeMounts:
|
|
||||||
- name: config-volume
|
|
||||||
mountPath: /config
|
|
||||||
volumes:
|
|
||||||
- name: config-volume
|
|
||||||
configMap:
|
|
||||||
name: silly-game-config
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: silly-game-service
|
|
||||||
namespace: silly-game
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: silly-game
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 8080
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue