network and domain kube configs

This commit is contained in:
Luke K 2020-04-11 19:41:42 +00:00
parent e1930bebb4
commit 38dd3dd6cf
No known key found for this signature in database
GPG Key ID: 4896F75BAF2E1966
2 changed files with 26 additions and 0 deletions

11
k8s/config-domain.yaml Normal file
View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: config-domain
namespace: knative-serving
data:
boson-project.org: |
selector:
faas.domain: "boson-project.org"
# Default is local only.
svc.cluster.local: ""

15
k8s/config-network.yaml Normal file
View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: config-network
namespace: knative-serving
data:
# If there exists an annotation `faas.subdomain` on the service,
# use it instead of the default name.namespace
domainTemplate: |-
{{if index .Annotations "faas.subdomain" -}}
{{- index .Annotations "faas.subdomain" -}}
{{else -}}
{{- .Name}}.{{.Namespace -}}
{{end -}}
.{{.Domain}}