Add istio for argo, add prom to argo

This commit is contained in:
Amarpreet Minhas 2023-07-08 15:22:57 -04:00
parent 802ec6ef13
commit da8a9e303d
4 changed files with 18 additions and 29 deletions

View file

@ -5,3 +5,8 @@ helmApps:
repoURL: https://okgolove.github.io/helm-charts
chart: goldpinger
revision: 5.5.0
- app: prometheus
namespace: prometheus
repoURL: https://prometheus-community.github.io/helm-charts
chart: kube-prometheus-stack
revision: 47.4.0

View file

@ -1,13 +0,0 @@
#!/bin/bash
CHART_VERSION=5.5.0
helm repo add okgolove https://okgolove.github.io/helm-charts
helm repo update
helm upgrade --install \
goldpinger \
okgolove/goldpinger \
-n goldpinger \
--version ${CHART_VERSION} \
--create-namespace \
--values values.yaml \
--cleanup-on-fail

View file

@ -1,3 +0,0 @@
---
service:
type: ClusterIP

View file

@ -2,13 +2,13 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: goldpinger-cert
name: argocd-cert
namespace: istio-system
spec:
secretName: goldpinger-cert
commonName: goldpinger.teapot.masked.name
secretName: argocd-cert
commonName: argocd.teapot.masked.name
dnsNames:
- goldpinger.teapot.masked.name
- argocd.teapot.masked.name
issuerRef:
name: vault-issuer
kind: ClusterIssuer
@ -18,8 +18,8 @@ spec:
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: goldpinger-gateway
namespace: goldpinger
name: argocd-gateway
namespace: argocd
spec:
selector:
istio: ingressgateway-internal
@ -30,21 +30,21 @@ spec:
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: goldpinger-cert
credentialName: argocd-cert
hosts:
- goldpinger.teapot.masked.name
- argocd.teapot.masked.name
...
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: goldpinger-gateway
namespace: goldpinger
name: argocd-gateway
namespace: argocd
spec:
hosts:
- goldpinger.teapot.masked.name
- argocd.teapot.masked.name
gateways:
- goldpinger-gateway
- argocd-gateway
http:
- match:
- uri:
@ -53,5 +53,5 @@ spec:
- destination:
port:
number: 80
host: goldpinger
host: argocd-server
...