Skip to content

Instantly share code, notes, and snippets.

@howardjohn
Created January 27, 2021 18:26
Show Gist options
  • Save howardjohn/aeea8da5f86d157d998ac2cf3cb48f59 to your computer and use it in GitHub Desktop.
Save howardjohn/aeea8da5f86d157d998ac2cf3cb48f59 to your computer and use it in GitHub Desktop.
Example to set up injection of PROXY_CONFIG into a gateway to allow non istio-system gateways
apiVersion: operator.istio.io/v1alpha1
kind: IstioOperator
metadata:
name: istio
spec:
revision: alt
components:
ingressGateways:
- name: istio-ingressgateway
enabled: true
- namespace: other
name: gateway
enabled: true
k8s:
service:
ports:
- port: 80
targetPort: 8080
name: http
values:
gateways:
istio-ingressgateway:
injectionTemplate: gateway
sidecarInjectorWebhook:
templates:
gateway: |
spec:
containers:
- name: istio-proxy
env:
- name: PROXY_CONFIG
value: {{ protoToJSON .ProxyConfig | quote }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment