Files
flagger/artifacts/steerer/deployment.yaml
Stefan Prodan 7993ae100b Refactor canary analysis
- move CRD metrics and weight setting to canary analysis
- add max weight to CRD spec
2018-09-29 11:08:40 +03:00

63 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: steerer
namespace: istio-system
labels:
app: steerer
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: steerer
template:
metadata:
labels:
app: steerer
annotations:
prometheus.io/scrape: "true"
spec:
serviceAccountName: steerer
containers:
- name: steerer
image: stefanprodan/steerer:0.0.1-rc.1
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
command:
- ./steerer
- -log-level=info
- -control-loop-interval=10s
- -metrics-server=http://prometheus.istio-system.svc.cluster.local:9090
livenessProbe:
exec:
command:
- wget
- --quiet
- --tries=1
- --timeout=2
- --spider
- http://localhost:8080/healthz
readinessProbe:
exec:
command:
- wget
- --quiet
- --tries=1
- --timeout=2
- --spider
- http://localhost:8080/healthz
resources:
limits:
memory: "512Mi"
cpu: "1000m"
requests:
memory: "32Mi"
cpu: "10m"
securityContext:
readOnlyRootFilesystem: true
runAsUser: 10001