add initial config for mediawiki and teastore
All checks were successful
Mirror to GitHub / mirror (push) Successful in 8s
All checks were successful
Mirror to GitHub / mirror (push) Successful in 8s
This commit is contained in:
23
teastore/application.yaml
Normal file
23
teastore/application.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: teastore
|
||||
namespace: ptp-chat
|
||||
spec:
|
||||
project: ptp-chat
|
||||
source:
|
||||
repoURL: https://gitea.controller.bittehackmichnicht.de/argocd/kubernetes-config.git
|
||||
targetRevision: main
|
||||
path: teastore
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: ptp-chat
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
enabled: true
|
||||
ignoreDifferences:
|
||||
- kind: Secret
|
||||
jsonPointers:
|
||||
- /data
|
||||
39
teastore/istio.yaml
Normal file
39
teastore/istio.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: teastore-gateway
|
||||
namespace: ptp-chat
|
||||
spec:
|
||||
selector:
|
||||
istio: ingressgateway # Holt sich das Standard-Ingress-Gateway
|
||||
servers:
|
||||
- port:
|
||||
number: 443
|
||||
name: https-teastore
|
||||
protocol: HTTPS
|
||||
hosts:
|
||||
- teastore.k8s.bittehackmichnicht.de
|
||||
tls:
|
||||
mode: SIMPLE # TLS-Termination am Gateway, damit der VirtualService den Traffic aufteilen kann
|
||||
credentialName: istio-cert # Name des TLS-Zertifikats in Kubernetes, das für die Verschlüsselung verwendet wird
|
||||
---
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: teastore-vs
|
||||
namespace: ptp-chat
|
||||
spec:
|
||||
hosts:
|
||||
- teastore.k8s.bittehackmichnicht.de
|
||||
gateways:
|
||||
- teastore-gateway
|
||||
http:
|
||||
- match:
|
||||
- uri:
|
||||
prefix: /
|
||||
route:
|
||||
- destination:
|
||||
host: teastore-webui.ptp-chat.svc.cluster.local
|
||||
port:
|
||||
number: 8080
|
||||
22
teastore/kustomization.yaml
Normal file
22
teastore/kustomization.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: ptp-chat
|
||||
|
||||
resources:
|
||||
- istio.yaml
|
||||
- https://raw.githubusercontent.com/DescartesResearch/TeaStore/master/examples/kubernetes/teastore-clusterip.yaml
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Service
|
||||
name: teastore-webui
|
||||
patch: |-
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: teastore-webui
|
||||
spec:
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: 8080
|
||||
Reference in New Issue
Block a user