mirror of
https://github.com/argoproj/argocd-example-apps.git
synced 2024-11-12 09:23:55 +01:00
65 lines
1.5 KiB
YAML
65 lines
1.5 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: orders
|
|
labels:
|
|
name: orders
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
name: orders
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: orders
|
|
spec:
|
|
containers:
|
|
- name: orders
|
|
image: weaveworksdemos/orders:0.4.7
|
|
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
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 500Mi
|
|
requests:
|
|
cpu: 200m
|
|
memory: 500Mi
|
|
ports:
|
|
- containerPort: 80
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 10001
|
|
capabilities:
|
|
drop:
|
|
- all
|
|
add:
|
|
- NET_BIND_SERVICE
|
|
readOnlyRootFilesystem: true
|
|
volumeMounts:
|
|
- mountPath: /tmp
|
|
name: tmp-volume
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 80
|
|
initialDelaySeconds: 300
|
|
periodSeconds: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 80
|
|
initialDelaySeconds: 180
|
|
periodSeconds: 3
|
|
volumes:
|
|
- name: tmp-volume
|
|
emptyDir:
|
|
medium: Memory
|
|
nodeSelector:
|
|
beta.kubernetes.io/os: linux
|