mirror of https://github.com/knative/func.git
network and domain kube configs
This commit is contained in:
parent
e1930bebb4
commit
38dd3dd6cf
|
|
@ -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: ""
|
||||
|
|
@ -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}}
|
||||
Loading…
Reference in New Issue