diff --git a/e2e/istio-values.yaml b/e2e/istio-values.yaml new file mode 100644 index 000000000..131065bad --- /dev/null +++ b/e2e/istio-values.yaml @@ -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 diff --git a/e2e/workload.yaml b/e2e/workload.yaml new file mode 100644 index 000000000..57ed8a419 --- /dev/null +++ b/e2e/workload.yaml @@ -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