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 repoURL: https://okgolove.github.io/helm-charts
chart: goldpinger chart: goldpinger
revision: 5.5.0 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 apiVersion: cert-manager.io/v1
kind: Certificate kind: Certificate
metadata: metadata:
name: goldpinger-cert name: argocd-cert
namespace: istio-system namespace: istio-system
spec: spec:
secretName: goldpinger-cert secretName: argocd-cert
commonName: goldpinger.teapot.masked.name commonName: argocd.teapot.masked.name
dnsNames: dnsNames:
- goldpinger.teapot.masked.name - argocd.teapot.masked.name
issuerRef: issuerRef:
name: vault-issuer name: vault-issuer
kind: ClusterIssuer kind: ClusterIssuer
@ -18,8 +18,8 @@ spec:
apiVersion: networking.istio.io/v1beta1 apiVersion: networking.istio.io/v1beta1
kind: Gateway kind: Gateway
metadata: metadata:
name: goldpinger-gateway name: argocd-gateway
namespace: goldpinger namespace: argocd
spec: spec:
selector: selector:
istio: ingressgateway-internal istio: ingressgateway-internal
@ -30,21 +30,21 @@ spec:
protocol: HTTPS protocol: HTTPS
tls: tls:
mode: SIMPLE mode: SIMPLE
credentialName: goldpinger-cert credentialName: argocd-cert
hosts: hosts:
- goldpinger.teapot.masked.name - argocd.teapot.masked.name
... ...
--- ---
apiVersion: networking.istio.io/v1beta1 apiVersion: networking.istio.io/v1beta1
kind: VirtualService kind: VirtualService
metadata: metadata:
name: goldpinger-gateway name: argocd-gateway
namespace: goldpinger namespace: argocd
spec: spec:
hosts: hosts:
- goldpinger.teapot.masked.name - argocd.teapot.masked.name
gateways: gateways:
- goldpinger-gateway - argocd-gateway
http: http:
- match: - match:
- uri: - uri:
@ -53,5 +53,5 @@ spec:
- destination: - destination:
port: port:
number: 80 number: 80
host: goldpinger host: argocd-server
... ...