refactor
This commit is contained in:
parent
487dd5451e
commit
7f5ee35bba
|
|
@ -8,6 +8,9 @@ spec:
|
|||
namespace: webrtc-be
|
||||
server: 'https://kubernetes.default.svc'
|
||||
source:
|
||||
helm:
|
||||
valueFiles:
|
||||
- values-{{ .Values.environment }}.yaml
|
||||
path: k8s/webrtc-be
|
||||
repoURL: 'git@bitbucket.org:jamkazam/video-iac.git'
|
||||
targetRevision: HEAD
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
apiVersion: cert-manager.io/v1
|
||||
kind: ClusterIssuer
|
||||
metadata:
|
||||
name: letsencrypt-haproxy-production
|
||||
spec:
|
||||
acme:
|
||||
# You must replace this email address with your own.
|
||||
# Let's Encrypt will use this to contact you about expiring
|
||||
# certificates, and issues related to your account.
|
||||
email: victor.barba.martin@toptal.com
|
||||
server: https://acme-v02.api.letsencrypt.org/directory
|
||||
privateKeySecretRef:
|
||||
# Secret resource that will be used to store the account's private key.
|
||||
name: haproxy-issuer-account-key
|
||||
# Add a single challenge solver, HTTP01 using nginx
|
||||
solvers:
|
||||
- http01:
|
||||
ingress:
|
||||
class: haproxy
|
||||
|
||||
|
|
@ -4,5 +4,4 @@ kind: Kustomization
|
|||
|
||||
resources:
|
||||
- https://github.com/jetstack/cert-manager/releases/download/v1.6.0/cert-manager.yaml
|
||||
- cluster-issuer-nginx.yaml
|
||||
#- cluster-issuer-haproxy.yaml
|
||||
- cluster-issuer-nginx.yaml
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: argocd
|
||||
|
||||
resources:
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
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,18 +0,0 @@
|
|||
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PodMonitor
|
||||
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
|
||||
podMetricsEndpoints:
|
||||
- port: exporter
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
apiVersion: v2
|
||||
name: webrtc
|
||||
version: '1.0'
|
||||
|
|
@ -9,7 +9,7 @@ metadata:
|
|||
name: webrtc-be
|
||||
spec:
|
||||
rules:
|
||||
- host: &host webrtc-be.staging.video.jamkazam.com
|
||||
- host: &host {{ .Values.domain }}
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
|
|
@ -0,0 +1 @@
|
|||
domain: "webrtc-be.staging.video.jamkazam.com"
|
||||
Loading…
Reference in New Issue