Skip to content

Instantly share code, notes, and snippets.

@zetaab
Created January 13, 2024 12:51
Show Gist options
  • Save zetaab/b45dfada89e7fa82970d554b24fe4968 to your computer and use it in GitHub Desktop.
Save zetaab/b45dfada89e7fa82970d554b24fe4968 to your computer and use it in GitHub Desktop.
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: helloworld-internal
spec:
template:
spec:
containers:
- image: ghcr.io/knative/helloworld-go:latest
env:
- name: TARGET
value: "hello internal"
---
apiVersion: serving.knative.dev/v1beta1
kind: DomainMapping
metadata:
name: knativetest.domain.com
annotations:
networking.knative.dev/ingress-class: internal
spec:
ref:
name: helloworld-internal
kind: Service
apiVersion: serving.knative.dev/v1
tls:
secretName: default-tls
---
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: helloworld-external
spec:
template:
spec:
containers:
- image: ghcr.io/knative/helloworld-go:latest
env:
- name: TARGET
value: "hello external"
---
apiVersion: serving.knative.dev/v1beta1
kind: DomainMapping
metadata:
name: knativetestext.domain.com
annotations:
networking.knative.dev/ingress-class: external
spec:
ref:
name: helloworld-external
kind: Service
apiVersion: serving.knative.dev/v1
tls:
secretName: default-tls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment