Skip to content

Commit

Permalink
Add Istio install values for e2e testing
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Feb 23, 2019
1 parent 7c6b88d commit f58de38
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 0 deletions.
62 changes: 62 additions & 0 deletions e2e/istio-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#
# Minimal Istio Configuration required by Flagger
#

# pilot configuration
pilot:
enabled: true
sidecar: true

gateways:
enabled: false
istio-ingressgateway:
autoscaleMax: 1

# citadel configuration
security:
enabled: true

# sidecar-injector webhook configuration
sidecarInjectorWebhook:
enabled: true

# galley configuration
galley:
enabled: false

# mixer configuration
mixer:
policy:
enabled: false
replicaCount: 1
autoscaleEnabled: false
telemetry:
enabled: true
replicaCount: 1
autoscaleEnabled: false
resources:
requests:
cpu: 100m
memory: 128Mi

# addon prometheus configuration
prometheus:
enabled: true
scrapeInterval: 5s

# addon jaeger tracing configuration
tracing:
enabled: false

# Common settings.
global:
proxy:
# Resources for the sidecar.
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 2000m
memory: 128Mi
useMCP: false
67 changes: 67 additions & 0 deletions e2e/workload.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: podinfo
namespace: test
labels:
app: podinfo
spec:
minReadySeconds: 5
revisionHistoryLimit: 5
progressDeadlineSeconds: 60
strategy:
rollingUpdate:
maxUnavailable: 0
type: RollingUpdate
selector:
matchLabels:
app: podinfo
template:
metadata:
annotations:
prometheus.io/scrape: "true"
labels:
app: podinfo
spec:
containers:
- name: podinfod
image: quay.io/stefanprodan/podinfo:1.4.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9898
name: http
protocol: TCP
command:
- ./podinfo
- --port=9898
- --level=info
- --random-delay=false
- --random-error=false
env:
- name: PODINFO_UI_COLOR
value: blue
livenessProbe:
exec:
command:
- podcli
- check
- http
- localhost:9898/healthz
initialDelaySeconds: 5
timeoutSeconds: 5
readinessProbe:
exec:
command:
- podcli
- check
- http
- localhost:9898/readyz
initialDelaySeconds: 5
timeoutSeconds: 5
resources:
limits:
cpu: 2000m
memory: 512Mi
requests:
cpu: 100m
memory: 64Mi

0 comments on commit f58de38

Please sign in to comment.