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.
65 lines
1.5 KiB
65 lines
1.5 KiB
6 years ago
|
---
|
||
6 years ago
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: carts
|
||
|
labels:
|
||
|
name: carts
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
name: carts
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
name: carts
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: carts
|
||
|
image: weaveworksdemos/carts:0.4.8
|
||
|
env:
|
||
|
- name: ZIPKIN
|
||
|
value: zipkin.jaeger.svc.cluster.local
|
||
|
- name: JAVA_OPTS
|
||
|
value: -Xms64m -Xmx128m -XX:PermSize=32m -XX:MaxPermSize=64m -XX:+UseG1GC -Djava.security.egd=file:/dev/urandom
|
||
6 years ago
|
resources:
|
||
|
limits:
|
||
|
cpu: 300m
|
||
|
memory: 500Mi
|
||
|
requests:
|
||
|
cpu: 300m
|
||
|
memory: 500Mi
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
6 years ago
|
securityContext:
|
||
|
runAsNonRoot: true
|
||
|
runAsUser: 10001
|
||
|
capabilities:
|
||
|
drop:
|
||
|
- all
|
||
|
add:
|
||
|
- NET_BIND_SERVICE
|
||
|
readOnlyRootFilesystem: true
|
||
|
volumeMounts:
|
||
|
- mountPath: /tmp
|
||
|
name: tmp-volume
|
||
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
|
volumes:
|
||
|
- name: tmp-volume
|
||
|
emptyDir:
|
||
|
medium: Memory
|
||
|
nodeSelector:
|
||
|
beta.kubernetes.io/os: linux
|