Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[incubator/rundeck] allow configurable nginx conf. Add example #22639

Merged
merged 3 commits into from
Jun 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion incubator/rundeck/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
description: A Rundeck chart for Kubernetes
name: rundeck
home: https://github.com/rundeck/rundeck
version: 0.1.2
version: 0.1.3
appVersion: 3.1.12
keywords:
- rundeck
Expand Down
1 change: 1 addition & 0 deletions incubator/rundeck/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ rundeck.env | The rundeck environment variables that you would want to set | Def
rundeck.sshSecrets | A reference to the Kubernetes Secret that contains the ssh keys. | ""
rundeck.awsCredentialsSecret | A reference to the Kubernetes Secret that contains the aws credentials. | ""
rundeck.awsVolumeId | A Volume ID from a pre-existent AWS EBS volume to persist Rundeck data from /home/rundeck/server/data path. | ""
nginxConfOverride | An optional multi-line value that can replace the default nginx.conf. | ""
4 changes: 4 additions & 0 deletions incubator/rundeck/templates/nginx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ metadata:
type: Opaque
data:
nginx.conf: |-
{{- if .Values.nginxConfOverride }}
{{ tpl .Values.nginxConfOverride . | indent 4 }}
{{- else }}
{{ .Files.Get "files/nginx/nginx.conf" | indent 4 }}
{{- end }}
30 changes: 30 additions & 0 deletions incubator/rundeck/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,33 @@ nodeSelector: {}
tolerations: []

affinity: {}

## Replace the nginx.conf file in this chart with a customised config.
nginxConfOverride: ""
# # This example adds configuration for external auth e.g. via oauth2-proxy
# # It also demonstrates templating in another arbitrary value (authRoles)
# # to create a map of external users to rundeck roles
# events {
# worker_connections 1024;
# }
# http {
# map $http_x_forwarded_user $x_forwarded_roles {
# {{- .Values.authRoles | nindent 4 }}
# }
# server {
# location /metrics/ {
# proxy_pass http://localhost:4440;
# proxy_set_header Host $http_host;
# proxy_set_header X-Forwarded-User metrics;
# proxy_set_header X-Forwarded-Roles user;
# }
# location / {
# recursive_error_pages on;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_set_header X-Forwarded-Roles $x_forwarded_roles;
# proxy_set_header User-Agent $http_user_agent;
# proxy_pass http://localhost:4440;
# }
# }
# }