Add Knative provider
This commit is contained in:
parent
3f23afb2c6
commit
13bcdebc89
38 changed files with 18589 additions and 37 deletions
33
pkg/provider/kubernetes/knative/fixtures/cluster_local.yaml
Normal file
33
pkg/provider/kubernetes/knative/fixtures/cluster_local.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
apiVersion: networking.internal.knative.dev/v1alpha1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
networking.knative.dev/ingress.class: traefik.ingress.networking.knative.dev
|
||||
name: helloworld-go
|
||||
namespace: default
|
||||
spec:
|
||||
httpOption: Enabled
|
||||
rules:
|
||||
- hosts:
|
||||
- helloworld-go.default
|
||||
- helloworld-go.default.svc
|
||||
- helloworld-go.default.svc.cluster.local
|
||||
http:
|
||||
paths:
|
||||
- splits:
|
||||
- appendHeaders:
|
||||
Knative-Serving-Namespace: default
|
||||
Knative-Serving-Revision: helloworld-go-00001
|
||||
percent: 50
|
||||
serviceName: helloworld-go-00001
|
||||
serviceNamespace: default
|
||||
servicePort: 80
|
||||
- appendHeaders:
|
||||
Knative-Serving-Namespace: default
|
||||
Knative-Serving-Revision: helloworld-go-00002
|
||||
percent: 50
|
||||
serviceName: helloworld-go-00002
|
||||
serviceNamespace: default
|
||||
servicePort: 80
|
||||
visibility: ClusterLocal
|
||||
33
pkg/provider/kubernetes/knative/fixtures/external_ip.yaml
Normal file
33
pkg/provider/kubernetes/knative/fixtures/external_ip.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
apiVersion: networking.internal.knative.dev/v1alpha1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
networking.knative.dev/ingress.class: traefik.ingress.networking.knative.dev
|
||||
name: helloworld-go
|
||||
namespace: default
|
||||
spec:
|
||||
httpOption: Enabled
|
||||
rules:
|
||||
- hosts:
|
||||
- helloworld-go.default
|
||||
- helloworld-go.default.svc
|
||||
- helloworld-go.default.svc.cluster.local
|
||||
http:
|
||||
paths:
|
||||
- splits:
|
||||
- appendHeaders:
|
||||
Knative-Serving-Namespace: default
|
||||
Knative-Serving-Revision: helloworld-go-00001
|
||||
percent: 50
|
||||
serviceName: helloworld-go-00001
|
||||
serviceNamespace: default
|
||||
servicePort: 80
|
||||
- appendHeaders:
|
||||
Knative-Serving-Namespace: default
|
||||
Knative-Serving-Revision: helloworld-go-00002
|
||||
percent: 50
|
||||
serviceName: helloworld-go-00002
|
||||
serviceNamespace: default
|
||||
servicePort: 80
|
||||
visibility: ExternalIP
|
||||
39
pkg/provider/kubernetes/knative/fixtures/services.yaml
Normal file
39
pkg/provider/kubernetes/knative/fixtures/services.yaml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: helloworld-go-00001
|
||||
namespace: default
|
||||
spec:
|
||||
clusterIP: 10.43.38.208
|
||||
clusterIPs:
|
||||
- 10.43.38.208
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: 8012
|
||||
- name: https
|
||||
port: 443
|
||||
protocol: TCP
|
||||
targetPort: 8112
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: helloworld-go-00002
|
||||
namespace: default
|
||||
spec:
|
||||
clusterIP: 10.43.44.18
|
||||
clusterIPs:
|
||||
- 10.43.44.18
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: 8012
|
||||
- name: https
|
||||
port: 443
|
||||
protocol: TCP
|
||||
targetPort: 8112
|
||||
38
pkg/provider/kubernetes/knative/fixtures/tls.yaml
Normal file
38
pkg/provider/kubernetes/knative/fixtures/tls.yaml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
apiVersion: networking.internal.knative.dev/v1alpha1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
networking.knative.dev/ingress.class: traefik.ingress.networking.knative.dev
|
||||
name: helloworld-go
|
||||
namespace: default
|
||||
spec:
|
||||
httpOption: Enabled
|
||||
tls:
|
||||
- hosts:
|
||||
- helloworld-go.default.svc.cluster.local
|
||||
secretName: secretName
|
||||
secretNamespace: secretNamespace
|
||||
rules:
|
||||
- hosts:
|
||||
- helloworld-go.default
|
||||
- helloworld-go.default.svc
|
||||
- helloworld-go.default.svc.cluster.local
|
||||
http:
|
||||
paths:
|
||||
- splits:
|
||||
- appendHeaders:
|
||||
Knative-Serving-Namespace: default
|
||||
Knative-Serving-Revision: helloworld-go-00001
|
||||
percent: 50
|
||||
serviceName: helloworld-go-00001
|
||||
serviceNamespace: default
|
||||
servicePort: 80
|
||||
- appendHeaders:
|
||||
Knative-Serving-Namespace: default
|
||||
Knative-Serving-Revision: helloworld-go-00002
|
||||
percent: 50
|
||||
serviceName: helloworld-go-00002
|
||||
serviceNamespace: default
|
||||
servicePort: 80
|
||||
visibility: ExternalIP
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
apiVersion: networking.internal.knative.dev/v1alpha1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
networking.knative.dev/ingress.class: foo.ingress.networking.knative.dev
|
||||
name: helloworld-go
|
||||
namespace: default
|
||||
Loading…
Add table
Add a link
Reference in a new issue