diff --git a/helm/demo/templates/service.yaml b/helm/demo/templates/service.yaml new file mode 100644 index 0000000..caabe90 --- /dev/null +++ b/helm/demo/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: demo-service + namespace: demo +spec: + ports: + - name: http + port: 80 + protocol: TCP + targetPort: 80 + selector: + app.kubernetes.io/instance: demo + app.kubernetes.io/name: demo + type: ClusterIP \ No newline at end of file diff --git a/helm/demo/templates/virtualservice.yaml b/helm/demo/templates/virtualservice.yaml new file mode 100644 index 0000000..3ebc0a0 --- /dev/null +++ b/helm/demo/templates/virtualservice.yaml @@ -0,0 +1,17 @@ +apiVersion: networking.istio.io/v1 +kind: VirtualService +metadata: + name: demo + namespace: demo +spec: + hosts: + - "demo.apps.linvogel.internal" + gateways: + - istio-ingress/istio-gateway + http: + - name: "demo-route" + route: + - destination: + host: demo.demo.svc.cluster.local + port: + number: 80 \ No newline at end of file