Skip to content

Instantly share code, notes, and snippets.

@therealmitchconnors
Last active October 8, 2020 16:45
Show Gist options
  • Save therealmitchconnors/793db4a12807f5d864014ead57a42043 to your computer and use it in GitHub Desktop.
Save therealmitchconnors/793db4a12807f5d864014ead57a42043 to your computer and use it in GitHub Desktop.
Operator Overlay for ASM+IAP integration
cat <<EOF | kubectl apply -n istio-system -f -
apiVersion: cloud.google.com/v1beta1
kind: BackendConfig
metadata:
name: http-hc-config
spec:
healthCheck:
checkIntervalSec: 2
timeoutSec: 1
healthyThreshold: 1
unhealthyThreshold: 10
port: ${HC_INGRESS_PORT}
type: HTTP
requestPath: ${HC_INGRESS_PATH}
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
name: foobar
spec:
components:
ingressGateways:
- enabled: true
name: istio-ingressgateway
k8s:
service:
type: NodePort
ports:
- name: status-port
nodePort: 31223
port: 15021
protocol: TCP
targetPort: 15021
- port: 80
targetPort: 8080
name: http2
- port: 443
targetPort: 8443
name: https
- port: 15012
targetPort: 15012
name: tcp-istiod
- port: 15443
targetPort: 15443
name: tls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment