argocd kustomization
This commit is contained in:
parent
83ec1aae5b
commit
44436417d6
|
|
@ -49,9 +49,6 @@ helm install cert-manager cert-manager \
|
|||
# Create cluster-issuer
|
||||
kubectl apply -f k8s/cert-manager/cluster-issuer.yaml
|
||||
|
||||
# Create SSL Cert
|
||||
kubectl apply -f k8s/cert-manager/certificate-staging.yaml
|
||||
|
||||
# Install ArgoCD
|
||||
kubectl create namespace argocd
|
||||
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ metadata:
|
|||
haproxy-ingress.github.io/backend-protocol: "h1-ssl"
|
||||
spec:
|
||||
rules:
|
||||
- host: &host argocd.video.jamkazam.com
|
||||
- host: example.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
|
|
@ -22,5 +22,5 @@ spec:
|
|||
name: https
|
||||
tls:
|
||||
- hosts:
|
||||
- *host
|
||||
- example.com
|
||||
secretName: argocd-secret # do not change, this is provided by Argo CD
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- op: replace
|
||||
path: /spec/rules/0/host
|
||||
value: &host argocd.staging.video.jamkazam.com
|
||||
value: argocd.staging.video.jamkazam.com
|
||||
- op: replace
|
||||
path: /spec/tls/0/hosts/0
|
||||
value: *host
|
||||
value: argocd.staging.video.jamkazam.com
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
# apiVersion: v1
|
||||
# kind: Service
|
||||
# metadata:
|
||||
# name: haproxy-exporter
|
||||
# namespace: ingress-controller
|
||||
# spec:
|
||||
# ports:
|
||||
# - name: exporter
|
||||
# port: 9105
|
||||
# targetPort: exporter
|
||||
# selector:
|
||||
# app.kubernetes.io/instance: haproxy-ingress
|
||||
# app.kubernetes.io/name: haproxy-ingress
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: haproxy-exporter
|
||||
namespace: ingress-controller
|
||||
spec:
|
||||
ports:
|
||||
- name: exporter
|
||||
port: 9105
|
||||
targetPort: exporter
|
||||
selector:
|
||||
app.kubernetes.io/instance: haproxy-ingress
|
||||
app.kubernetes.io/name: haproxy-ingress
|
||||
|
|
@ -1,22 +1,3 @@
|
|||
# apiVersion: monitoring.coreos.com/v1
|
||||
# kind: ServiceMonitor
|
||||
# metadata:
|
||||
# name: haproxy
|
||||
# labels:
|
||||
# app: haproxy
|
||||
# release: monitoring
|
||||
# spec:
|
||||
# selector:
|
||||
# matchLabels:
|
||||
# app.kubernetes.io/instance: haproxy-ingress
|
||||
# app.kubernetes.io/name: haproxy-ingress
|
||||
# namespaceSelector:
|
||||
# matchNames:
|
||||
# - ingress-controller
|
||||
# endpoints:
|
||||
# - port: exporter
|
||||
# path: /metrics
|
||||
# interval: 30s
|
||||
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PodMonitor
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
metadata:
|
||||
namespace:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
prometheus: example
|
||||
|
|
|
|||
Loading…
Reference in New Issue