Created
January 13, 2024 12:51
-
-
Save zetaab/b45dfada89e7fa82970d554b24fe4968 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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