42 lines
919 B
YAML
42 lines
919 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: silly-game-frontend-deployment
|
||
|
namespace: silly-game
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: silly-game-frontend
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: silly-game-frontend
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: silly-game-frontend
|
||
|
image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-frontend:main
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
volumeMounts:
|
||
|
- name: config-volume
|
||
|
mountPath: /app/src/environments/environment.ts
|
||
|
subPath: environment.ts
|
||
|
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
|