This commit is contained in:
Victor Barba Martin 2021-11-16 00:17:54 +01:00
parent 487dd5451e
commit 7f5ee35bba
12 changed files with 9 additions and 60 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,6 +0,0 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: argocd
resources:

View File

@ -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

View File

@ -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

3
k8s/webrtc-be/Chart.yaml Normal file
View File

@ -0,0 +1,3 @@
apiVersion: v2
name: webrtc
version: '1.0'

View File

@ -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:

View File

@ -0,0 +1 @@
domain: "webrtc-be.staging.video.jamkazam.com"