-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
711 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: backend1 | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: backend1 | ||
template: | ||
metadata: | ||
labels: | ||
app: backend1 | ||
spec: | ||
containers: | ||
- name: backend1 | ||
image: nginxdemos/hello:plain-text | ||
ports: | ||
- containerPort: 80 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: backend1-svc | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 80 | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app: backend1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: backend2 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: backend2 | ||
template: | ||
metadata: | ||
labels: | ||
app: backend2 | ||
spec: | ||
containers: | ||
- name: backend2 | ||
image: nginx | ||
ports: | ||
- containerPort: 80 | ||
volumeMounts: | ||
- name: secret | ||
mountPath: "/etc/nginx/ssl" | ||
readOnly: true | ||
- name: config-volume | ||
mountPath: /etc/nginx/conf.d | ||
volumes: | ||
- name: secret | ||
secret: | ||
secretName: app-tls-secret | ||
- name: config-volume | ||
configMap: | ||
name: secure-config | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: backend2-svc | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 443 | ||
protocol: TCP | ||
name: https | ||
selector: | ||
app: backend2 | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: secure-config | ||
data: | ||
app.conf: |- | ||
server { | ||
listen 443 ssl; | ||
server_name app.example.com; | ||
ssl_certificate /etc/nginx/ssl/tls.crt; | ||
ssl_certificate_key /etc/nginx/ssl/tls.key; | ||
default_type text/plain; | ||
location / { | ||
return 200 "here is your response via ssl port $server_port with X-Forwarded-Port $http_x_forwarded_port\n"; | ||
} | ||
} | ||
--- | ||
apiVersion: v1 | ||
data: | ||
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVCakNDQXU2Z0F3SUJBZ0lKQUpicWVnTHB0U2JhTUEwR0NTcUdTSWIzRFFFQkJRVUFNRjh4Q3pBSkJnTlYKQkFZVEFrZENNUk13RVFZRFZRUUlFd3BUYjIxbExWTjBZWFJsTVNFd0h3WURWUVFLRXhoSmJuUmxjbTVsZENCWAphV1JuYVhSeklGQjBlU0JNZEdReEdEQVdCZ05WQkFNVEQyRndjQzVsZUdGdGNHeGxMbU52YlRBZUZ3MHhPREF5Ck1USXdNREF6TkRWYUZ3MHhPVEF5TVRJd01EQXpORFZhTUY4eEN6QUpCZ05WQkFZVEFrZENNUk13RVFZRFZRUUkKRXdwVGIyMWxMVk4wWVhSbE1TRXdId1lEVlFRS0V4aEpiblJsY201bGRDQlhhV1JuYVhSeklGQjBlU0JNZEdReApHREFXQmdOVkJBTVREMkZ3Y0M1bGVHRnRjR3hsTG1OdmJUQ0NBU0l3RFFZSktvWklodmNOQVFFQkJRQURnZ0VQCkFEQ0NBUW9DZ2dFQkFLenNmMll0R2hVU0lyYWpTS1ZLSVBrTmFzODcrTzJDaHlsZTduL212V012WFJZZWI2R3oKQktKV3FkSS9UajlQQlJxTWVzajByMjF5UlAwaVc0VVBTYjZNT3psNisyYjBJeS9nTEhJRGxJN0NDTVU5cThHSAorL3Y4ZjAyMXJWYmUrNGdsWmZWVTZJbXg2Vlc0ODkzVTcwQXR6Y1hGNnFDUGRUWDNjWW02MTVmNE02M1YzdTdqClJGN1JINzBDL1N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JxTTQ3NUoKVnJlMWlIUXF5b2tDcEM0d0wvTWx2SkhhNW1FMExkdGdyNG9UOUVsMkwrNy9qNHlUL01CUHB2a2M2UWtKaEFLcgpYQ2pIN29seHhWVmhjaVUwZG9JUlYwL0VjRjAwS1NnQnBXR1dOU2UyVm44cTdFelhISHpQVC80PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo= | ||
kind: Secret | ||
metadata: | ||
name: app-tls-secret | ||
type: Opaque |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: backend1 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: backend1 | ||
template: | ||
metadata: | ||
labels: | ||
app: backend1 | ||
spec: | ||
containers: | ||
- name: backend1 | ||
image: nginxdemos/hello:plain-text | ||
ports: | ||
- containerPort: 80 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: backend1-svc | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 80 | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app: backend1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: backend3 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: backend3 | ||
template: | ||
metadata: | ||
labels: | ||
app: backend3 | ||
spec: | ||
containers: | ||
- name: backend3 | ||
image: nginxdemos/hello:plain-text | ||
ports: | ||
- containerPort: 80 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: backend3-svc | ||
labels: | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 80 | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app: backend3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: backend2 | ||
namespace: backend2-namespace | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: backend2 | ||
template: | ||
metadata: | ||
labels: | ||
app: backend2 | ||
spec: | ||
containers: | ||
- name: backend2 | ||
image: nginx | ||
ports: | ||
- containerPort: 80 | ||
volumeMounts: | ||
- name: secret | ||
mountPath: "/etc/nginx/ssl" | ||
readOnly: true | ||
- name: config-volume | ||
mountPath: /etc/nginx/conf.d | ||
volumes: | ||
- name: secret | ||
secret: | ||
secretName: app-tls-secret | ||
- name: config-volume | ||
configMap: | ||
name: secure-config | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: backend2-svc | ||
namespace: backend2-namespace | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 443 | ||
protocol: TCP | ||
name: https | ||
selector: | ||
app: backend2 | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: secure-config | ||
namespace: backend2-namespace | ||
data: | ||
app.conf: |- | ||
server { | ||
listen 443 ssl; | ||
server_name app.example.com; | ||
ssl_certificate /etc/nginx/ssl/tls.crt; | ||
ssl_certificate_key /etc/nginx/ssl/tls.key; | ||
default_type text/plain; | ||
location / { | ||
return 200 "here is your response via ssl port $server_port with X-Forwarded-Port $http_x_forwarded_port\n"; | ||
} | ||
} | ||
--- | ||
apiVersion: v1 | ||
data: | ||
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVCakNDQXU2Z0F3SUJBZ0lKQUpicWVnTHB0U2JhTUEwR0NTcUdTSWIzRFFFQkJRVUFNRjh4Q3pBSkJnTlYKQkFZVEFrZENNUk13RVFZRFZRUUlFd3BUYjIxbExWTjBZWFJsTVNFd0h3WURW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llczJsN2c3bmlEUDJ5ZnRaCnpJSkU0OUs2SVJzT3c4ZHkrS3hrQzJaZDdWcy9BM2x1Q2hYZWVWOHhBb0dBSG9yTGdXU1A0K2gzU3Z0MUkwalMKbXBjQ1cvTGpBNXVvbWs0UDZDczhzb1VNOHdpMklQMXBDQUVpdGFzd1BmQjRrR29xN3ZOUVdrVzRKTHZUSmZPdQpFMFlZczdHQjhmZVBBc1FMbzZhYlYvMCs4QkFNQ1doQ1BVQ0wxQjhueUl0MDNlVzlSUmFyd25aQ1NkTVdOYVV5CnMxcVlKVnZRQm94S3RwN3ZnOW4rWm5NQ2dZRUFsUmJmNnJCbEdzb0dsYzg1ZmI4UXJpR0RBQ2wwOUNVTituQjAKdVFUTnF6N2luUEtZamV4YWJ2RjFzUEpocXhUeDVLcnhSWlptWldCamNWQ2RwcEhzRUl1dlpUakxHZ1UxVmxJMQpiZ1lGRFFhNVB1alJPYzNQN0JMckRCbytrYllJbXJ4VEdCUCtUSmg4YnFCVVlQZXV6VkJnOFVwdGtJQ3IxVU9LCk5ybnpFb0VDZ1lFQXh5a3JTblQreGdjZHFSaXBQenFnL1NJT0VJTXp2VHp2alQ2cG9nb1FhOGhYUkJxTTQ3NUoKVnJlMWlIUXF5b2tDcEM0d0wvTWx2SkhhNW1FMExkdGdyNG9UOUVsMkwrNy9qNHlUL01CUHB2a2M2UWtKaEFLcgpYQ2pIN29seHhWVmhjaVUwZG9JUlYwL0VjRjAwS1NnQnBXR1dOU2UyVm44cTdFelhISHpQVC80PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo= | ||
kind: Secret | ||
metadata: | ||
name: app-tls-secret | ||
namespace: backend2-namespace | ||
type: Opaque |
22 changes: 22 additions & 0 deletions
22
tests/data/virtual-server-route-upstream-tls/route-multiple.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServerRoute | ||
metadata: | ||
name: backends | ||
spec: | ||
host: virtual-server-route.example.com | ||
upstreams: | ||
- name: backend1 | ||
service: backend1-svc | ||
port: 80 | ||
tls: | ||
enable: | ||
- name: backend3 | ||
service: backend3-svc | ||
port: 80 | ||
tls: | ||
enable: False | ||
subroutes: | ||
- path: "/backends/backend1" | ||
upstream: backend1 | ||
- path: "/backends/backend3" | ||
upstream: backend3 |
15 changes: 15 additions & 0 deletions
15
tests/data/virtual-server-route-upstream-tls/route-single-disable-tls.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServerRoute | ||
metadata: | ||
name: backend2 | ||
spec: | ||
host: virtual-server-route.example.com | ||
upstreams: | ||
- name: backend2 | ||
service: backend2-svc | ||
port: 80 | ||
tls: | ||
enable: | ||
subroutes: | ||
- path: "/backend2" | ||
upstream: backend2 |
15 changes: 15 additions & 0 deletions
15
tests/data/virtual-server-route-upstream-tls/route-single-invalid.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServerRoute | ||
metadata: | ||
name: backend2 | ||
spec: | ||
host: virtual-server-route.example.com | ||
upstreams: | ||
- name: backend2 | ||
service: backend2-svc | ||
port: 80 | ||
tls: | ||
enable: "" | ||
subroutes: | ||
- path: "/backend2" | ||
upstream: backend2 |
15 changes: 15 additions & 0 deletions
15
tests/data/virtual-server-route-upstream-tls/route-single.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServerRoute | ||
metadata: | ||
name: backend2 | ||
spec: | ||
host: virtual-server-route.example.com | ||
upstreams: | ||
- name: backend2 | ||
service: backend2-svc | ||
port: 80 | ||
tls: | ||
enable: True | ||
subroutes: | ||
- path: "/backend2" | ||
upstream: backend2 |
11 changes: 11 additions & 0 deletions
11
tests/data/virtual-server-route-upstream-tls/standard/virtual-server.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServer | ||
metadata: | ||
name: virtual-server-route | ||
spec: | ||
host: virtual-server-route.example.com | ||
routes: | ||
- path: "/backends" | ||
route: backends-namespace/backends | ||
- path: "/backend2" | ||
route: backend2-namespace/backend2 |
22 changes: 22 additions & 0 deletions
22
tests/data/virtual-server-upstream-tls/standard/virtual-server.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServer | ||
metadata: | ||
name: virtual-server | ||
spec: | ||
host: virtual-server.example.com | ||
upstreams: | ||
- name: backend2 | ||
service: backend2-svc | ||
port: 80 | ||
tls: | ||
enable: True | ||
- name: backend1 | ||
service: backend1-svc | ||
port: 80 | ||
tls: | ||
enable: False | ||
routes: | ||
- path: "/backend1" | ||
upstream: backend1 | ||
- path: "/backend2" | ||
upstream: backend2 |
22 changes: 22 additions & 0 deletions
22
tests/data/virtual-server-upstream-tls/virtual-server-disable-tls.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServer | ||
metadata: | ||
name: virtual-server | ||
spec: | ||
host: virtual-server.example.com | ||
upstreams: | ||
- name: backend2 | ||
service: backend2-svc | ||
port: 80 | ||
tls: | ||
enable: | ||
- name: backend1 | ||
service: backend1-svc | ||
port: 80 | ||
tls: | ||
enable: False | ||
routes: | ||
- path: "/backend1" | ||
upstream: backend1 | ||
- path: "/backend2" | ||
upstream: backend2 |
Oops, something went wrong.