forked from digitalocean/kubernetes-sample-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
38 lines (38 loc) · 864 Bytes
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: game-2048
spec:
replicas: 1
selector:
matchLabels:
app: game-2048
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: game-2048
spec:
containers:
- name: backend
# Replace with your docker hub image url
image: pwalsh258/my-container-repo:game-2048
ports:
- name: http
containerPort: 8080
resources:
requests:
cpu: 200m
memory: 100Mi
limits:
cpu: 300m
memory: 200Mi
# securityContext:
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# allowPrivilegeEscalation: false
# capabilities:
# drop:
# - all