Skip to content

Commit

Permalink
Allow loki to have in-vpc ingress (#599)
Browse files Browse the repository at this point in the history
Allows for another auth mode for loki ingress
  • Loading branch information
michaeljguarino authored Mar 28, 2023
1 parent ad92ae7 commit 56f8b92
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 4 deletions.
2 changes: 1 addition & 1 deletion loki/helm/loki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: loki
description: helm chart for loki
type: application
version: 0.1.10
version: 0.1.11
appVersion: "v2.6.1"
dependencies:
- name: loki-distributed
Expand Down
3 changes: 0 additions & 3 deletions loki/helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ loki-distributed:
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/force-ssl-redirect: 'true'
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: basic-auth
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - foo'
compactor:
enabled: true
extraArgs:
Expand Down
18 changes: 18 additions & 0 deletions loki/helm/loki/values.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,24 @@ loki-distributed:
gateway:
ingress:
enabled: true
annotations:
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: basic-auth
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - foo'
hosts:
- host: {{ .Values.hostname | quote }}
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- {{ .Values.hostname | quote }}
secretName: loki-tls
{{ else if .Values.hostname }}
gateway:
ingress:
enabled: true
ingressClassName: internal-nginx
hosts:
- host: {{ .Values.hostname | quote }}
paths:
Expand Down
5 changes: 5 additions & 0 deletions loki/plural/recipes/loki-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ sections:
type: BUCKET
default: loki
documentation: bucket to store the logs in
- name: hostname
type: domain
default: loki
documentation: the hostname you'll deploy loki with (will only be available on a private network)
optional: true
items:
- type: TERRAFORM
name: aws
Expand Down
5 changes: 5 additions & 0 deletions loki/plural/recipes/loki-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ sections:
type: BUCKET
default: loki
documentation: storage container to store the logs in
- name: hostname
type: domain
default: loki
documentation: the hostname you'll deploy loki with (will only be available on a private network)
optional: true
items:
- type: TERRAFORM
name: azure
Expand Down
5 changes: 5 additions & 0 deletions loki/plural/recipes/loki-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ sections:
type: BUCKET
default: loki
documentation: bucket to store the logs in
- name: hostname
type: domain
default: loki
documentation: the hostname you'll deploy loki with (will only be available on a private network)
optional: true
items:
- type: TERRAFORM
name: gcp
Expand Down

0 comments on commit 56f8b92

Please sign in to comment.