41 lines
762 B
YAML
41 lines
762 B
YAML
|
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: mygit-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
|