dev #27

Merged
ofilter merged 22 commits from dev into main 2023-04-25 08:18:00 +02:00
3 changed files with 48 additions and 89 deletions
Showing only changes of commit cdff7c620c - Show all commits

View File

@ -8,12 +8,11 @@ metadata:
spec:
ports:
- port: 8080
name: tcp-a
name: http-web
targetPort: 80
protocol: TCP
- port: 8443
name: tcp-b
name: https-web
targetPort: 443
protocol: TCP
selector:
@ -34,16 +33,14 @@ spec:
metadata:
labels:
app: helloworld
sidecar.istio.io/inject: "true"
spec:
containers:
- name: helloworld
# image: nginx
image: oriolfilter/https-nginx-demo
resources:
requests:
cpu: "100m"
imagePullPolicy: IfNotPresent #Always
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
- containerPort: 443

View File

@ -0,0 +1,45 @@
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: helloworld-gateway
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: tcp-1
protocol: TCP
hosts:
- "*"
- port:
number: 443
name: tcp-2
protocol: TCP
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: helloworld-vs
spec:
hosts:
- "*"
gateways:
- helloworld-gateway
tcp:
- match:
- port: 80
route:
- destination:
host: helloworld.default.svc.cluster.local
port:
number: 8080
- match:
- port: 443
route:
- destination:
host: helloworld.default.svc.cluster.local
port:
number: 8443

View File

@ -1,83 +0,0 @@
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: helloworld-gateway
spec:
selector:
istio: ingressgateway
servers:
# - port:
# number: 443
# name: secure-http2
# protocol: HTTP2
# hosts:
# - "*"
- port:
number: 80
name: tcp-2
protocol: TCP
hosts:
- "*"
- port:
number: 443
name: tcp-i
protocol: TCP
hosts:
- "*"
# tls:
# credentialName: my-tls-cert-secret
# minProtocolVersion: TLSV1_2
# mode: PASSTHROUGH
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: helloworld-vs
spec:
hosts:
- "*"
gateways:
- helloworld-gateway
http:
- match:
- port: 80
# hosts:
# - "hello.si"
name: helloworld
route:
- destination:
host: helloworld
port:
number: 80
tcp:
- match:
- port: 80
route:
- destination:
host: helloworld
port:
number: 8080
- match:
- port: 443
route:
- destination:
host: helloworld
port:
number: 8443
#
# tls:
# - match:
# - port: 443
# sniHosts:
# - "hello.si"
## - uri:
## exact: /helloworld
# route:
# - destination:
# host: helloworld
# port:
# number: 8443
## protocol: HTTPS
## rewrite:
## uri: "/"