mirror of
https://github.com/alibaba/higress.git
synced 2026-05-28 14:47:29 +08:00
115 lines
2.3 KiB
YAML
115 lines
2.3 KiB
YAML
apiVersion: gateway.networking.k8s.io/v1alpha3
|
|
kind: BackendTLSPolicy
|
|
metadata:
|
|
name: tls-upstream-echo
|
|
namespace: default
|
|
spec:
|
|
targetRefs:
|
|
- kind: Service
|
|
name: echo
|
|
group: ""
|
|
validation:
|
|
caCertificateRefs:
|
|
- kind: ConfigMap
|
|
name: auth-cert
|
|
group: ""
|
|
hostname: auth.example.com
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1alpha3
|
|
kind: BackendTLSPolicy
|
|
metadata:
|
|
name: existing-status
|
|
namespace: default
|
|
spec:
|
|
targetRefs:
|
|
- kind: Service
|
|
name: httpbin
|
|
group: ""
|
|
validation:
|
|
caCertificateRefs:
|
|
- kind: ConfigMap
|
|
name: auth-cert
|
|
group: ""
|
|
hostname: auth.example.com
|
|
status:
|
|
ancestors:
|
|
- ancestorRef:
|
|
group: ""
|
|
kind: Service
|
|
name: httpbin
|
|
conditions:
|
|
- lastTransitionTime: 2000-01-01T01:01:01Z
|
|
message: hello
|
|
reason: Accepted
|
|
status: "True"
|
|
type: Accepted
|
|
controllerName: example.com/some-other-controller
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1alpha3
|
|
kind: BackendTLSPolicy
|
|
metadata:
|
|
name: bad-service
|
|
namespace: default
|
|
spec:
|
|
targetRefs:
|
|
- kind: Service
|
|
name: does-not-exist
|
|
group: ""
|
|
validation:
|
|
caCertificateRefs:
|
|
- kind: ConfigMap
|
|
name: auth-cert
|
|
group: ""
|
|
hostname: auth.example.com
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1alpha3
|
|
kind: BackendTLSPolicy
|
|
metadata:
|
|
name: unknown-configmap
|
|
namespace: default
|
|
spec:
|
|
targetRefs:
|
|
- kind: Service
|
|
name: httpbin-second
|
|
group: ""
|
|
validation:
|
|
caCertificateRefs:
|
|
- kind: ConfigMap
|
|
name: does-not-exist
|
|
group: ""
|
|
hostname: auth.example.com
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1alpha3
|
|
kind: BackendTLSPolicy
|
|
metadata:
|
|
name: malformed-configmap
|
|
namespace: default
|
|
spec:
|
|
targetRefs:
|
|
- kind: Service
|
|
name: httpbin-other
|
|
group: ""
|
|
validation:
|
|
caCertificateRefs:
|
|
- kind: ConfigMap
|
|
name: malformed
|
|
group: ""
|
|
hostname: auth.example.com
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1alpha3
|
|
kind: BackendTLSPolicy
|
|
metadata:
|
|
name: bad-configmap-type
|
|
namespace: default
|
|
spec:
|
|
targetRefs:
|
|
- kind: Service
|
|
name: foo-svc
|
|
group: ""
|
|
validation:
|
|
caCertificateRefs:
|
|
- kind: UnknownKind
|
|
name: blah
|
|
group: ""
|
|
hostname: auth.example.com
|