apiVersion: apps/v1
kind: Deployment
metadata:
name: silly-game
namespace: silly-game
spec:
replicas: 1
selector:
matchLabels:
app: silly-game
template:
labels:
containers:
- name: silly-game
image: mygit-silly-game-backend:main
ports:
- containerPort: 8080
volumeMounts:
- name: config-volume
mountPath: /config
volumes:
configMap:
name: silly-game-config
---
apiVersion: v1
kind: Service
name: silly-game-service
- port: 80
targetPort: 8080