You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
6 years ago
|
---
|
||
6 years ago
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: user
|
||
|
labels:
|
||
|
name: user
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
name: user
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
name: user
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: user
|
||
|
image: weaveworksdemos/user:0.4.7
|
||
6 years ago
|
resources:
|
||
|
limits:
|
||
|
cpu: 300m
|
||
|
memory: 100Mi
|
||
|
requests:
|
||
|
cpu: 100m
|
||
|
memory: 100Mi
|
||
6 years ago
|
ports:
|
||
|
- containerPort: 80
|
||
|
env:
|
||
|
- name: MONGO_HOST
|
||
|
value: user-db:27017
|
||
|
securityContext:
|
||
|
runAsNonRoot: true
|
||
|
runAsUser: 10001
|
||
|
capabilities:
|
||
|
drop:
|
||
|
- all
|
||
|
add:
|
||
|
- NET_BIND_SERVICE
|
||
|
readOnlyRootFilesystem: true
|
||
6 years ago
|
livenessProbe:
|
||
|
httpGet:
|
||
|
path: /health
|
||
|
port: 80
|
||
|
initialDelaySeconds: 300
|
||
|
periodSeconds: 3
|
||
|
readinessProbe:
|
||
|
httpGet:
|
||
|
path: /health
|
||
|
port: 80
|
||
|
initialDelaySeconds: 180
|
||
|
periodSeconds: 3
|
||
6 years ago
|
nodeSelector:
|
||
6 years ago
|
beta.kubernetes.io/os: linux
|