Skip to content

Commit

Permalink
feat(monitoring): add certificate and IAP policy
Browse files Browse the repository at this point in the history
  • Loading branch information
dsluijk committed Dec 8, 2023
1 parent 30c8fc3 commit 226623c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
8 changes: 8 additions & 0 deletions requirements/monitoring/grafana/certificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: networking.gke.io/v1
kind: ManagedCertificate
metadata:
name: monitoring
namespace: default
spec:
domains:
- montoring.wisv.ch
16 changes: 16 additions & 0 deletions requirements/monitoring/grafana/iap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: networking.gke.io/v1
kind: GCPBackendPolicy
metadata:
name: grafana-backend-policy
namespace: default
spec:
default:
iap:
enabled: true
oauth2ClientSecret:
name: iap-secret
clientID: 966138216790-us6sue108a879v3vk2om9inn3ftpobkg.apps.googleusercontent.com
targetRef:
group: ""
kind: Service
name: grafana
6 changes: 6 additions & 0 deletions requirements/monitoring/grafana/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- release.yaml
- certificate.yaml
- iap.yaml
File renamed without changes.
2 changes: 1 addition & 1 deletion requirements/monitoring/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- grafana.yaml
- grafana
- victoriametrics.yaml

0 comments on commit 226623c

Please sign in to comment.