fitst version
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: turbo-race
|
||||
labels:
|
||||
app: turbo-race
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: turbo-race
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: turbo-race
|
||||
spec:
|
||||
containers:
|
||||
- name: turbo-race
|
||||
image: turbo-race:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: PORT
|
||||
value: "8080"
|
||||
- name: MAX_PLAYERS
|
||||
value: "20"
|
||||
- name: COUNTDOWN_S
|
||||
value: "30"
|
||||
- name: RACE_DURATION_S
|
||||
value: "90"
|
||||
- name: TRACK_LENGTH
|
||||
value: "23000"
|
||||
- name: ADMIN_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: turbo-race-secret
|
||||
key: admin-token
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 300m
|
||||
memory: 160Mi
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8080
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 5
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8080
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
secretGenerator:
|
||||
- name: turbo-race-secret
|
||||
literals:
|
||||
- admin-token=b61e4bacba3998927b6d6fd2ee69b51cf7fee31c4370a5b0
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: turbo-race
|
||||
labels:
|
||||
app: turbo-race
|
||||
spec:
|
||||
selector:
|
||||
app: turbo-race
|
||||
type: NodePort
|
||||
ports:
|
||||
- name: http
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
nodePort: 30090
|
||||
Reference in New Issue
Block a user