Merge "Update kibana authentication values in endpoints and deployment"
This commit is contained in:
commit
d93649da5f
@ -21,7 +21,7 @@ limitations under the License.
|
|||||||
</Location>
|
</Location>
|
||||||
<Proxy *>
|
<Proxy *>
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
AuthName "Authentication Required"
|
AuthName "Authentication Required for Elasticsearch"
|
||||||
AuthUserFile {{.Values.conf.apache.htpasswd | quote}}
|
AuthUserFile {{.Values.conf.apache.htpasswd | quote}}
|
||||||
Require valid-user
|
Require valid-user
|
||||||
</Proxy>
|
</Proxy>
|
||||||
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
{{- if .Values.manifests.secret_admin }}
|
{{- if .Values.manifests.secret_elasticsearch }}
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- $secretName := index $envAll.Values.secrets.elasticsearch.user }}
|
{{- $secretName := index $envAll.Values.secrets.elasticsearch.user }}
|
||||||
|
|
@ -406,7 +406,7 @@ manifests:
|
|||||||
job_snapshot_repository: false
|
job_snapshot_repository: false
|
||||||
helm_tests: true
|
helm_tests: true
|
||||||
pvc_snapshots: false
|
pvc_snapshots: false
|
||||||
secret_admin: true
|
secret_elasticsearch: true
|
||||||
monitoring:
|
monitoring:
|
||||||
prometheus:
|
prometheus:
|
||||||
configmap_bin_exporter: true
|
configmap_bin_exporter: true
|
||||||
|
@ -16,6 +16,7 @@ limitations under the License.
|
|||||||
|
|
||||||
{{- if .Values.manifests.deployment }}
|
{{- if .Values.manifests.deployment }}
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
|
|
||||||
{{- $esUserSecret := .Values.secrets.elasticsearch.user }}
|
{{- $esUserSecret := .Values.secrets.elasticsearch.user }}
|
||||||
|
|
||||||
{{- $serviceAccountName := "kibana" }}
|
{{- $serviceAccountName := "kibana" }}
|
||||||
@ -59,13 +60,13 @@ spec:
|
|||||||
- name: KIBANA_USERNAME
|
- name: KIBANA_USERNAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: kibana-admin-creds
|
name: {{ $esUserSecret }}
|
||||||
key: KIBANA_USERNAME
|
key: ELASTICSEARCH_USERNAME
|
||||||
- name: KIBANA_PASSWORD
|
- name: KIBANA_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: kibana-admin-creds
|
name: {{ $esUserSecret }}
|
||||||
key: KIBANA_PASSWORD
|
key: ELASTICSEARCH_PASSWORD
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: kibana-bin
|
- name: kibana-bin
|
||||||
mountPath: /tmp/apache.sh
|
mountPath: /tmp/apache.sh
|
||||||
|
@ -21,7 +21,7 @@ limitations under the License.
|
|||||||
</Location>
|
</Location>
|
||||||
<Proxy *>
|
<Proxy *>
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
AuthName "Authentication Required"
|
AuthName "Authentication Required for Kibana"
|
||||||
AuthUserFile {{.Values.conf.apache.htpasswd | quote}}
|
AuthUserFile {{.Values.conf.apache.htpasswd | quote}}
|
||||||
Require valid-user
|
Require valid-user
|
||||||
</Proxy>
|
</Proxy>
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
{{/*
|
|
||||||
Copyright 2017 The Openstack-Helm Authors.
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
*/}}
|
|
||||||
|
|
||||||
{{- if .Values.manifests.secret_admin }}
|
|
||||||
{{- $envAll := . }}
|
|
||||||
{{- $secretName := index $envAll.Values.secrets.kibana.admin }}
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: {{ $secretName }}
|
|
||||||
type: Opaque
|
|
||||||
data:
|
|
||||||
KIBANA_USERNAME: {{ .Values.endpoints.kibana.auth.admin.username | b64enc }}
|
|
||||||
KIBANA_PASSWORD: {{ .Values.endpoints.kibana.auth.admin.password | b64enc }}
|
|
||||||
{{- end }}
|
|
@ -71,8 +71,6 @@ pod:
|
|||||||
secrets:
|
secrets:
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
user: kibana-elasticsearch-user
|
user: kibana-elasticsearch-user
|
||||||
kibana:
|
|
||||||
admin: kibana-admin-creds
|
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
dynamic:
|
dynamic:
|
||||||
@ -156,10 +154,6 @@ endpoints:
|
|||||||
kibana:
|
kibana:
|
||||||
name: kibana
|
name: kibana
|
||||||
namespace: null
|
namespace: null
|
||||||
auth:
|
|
||||||
admin:
|
|
||||||
username: admin
|
|
||||||
password: changeme
|
|
||||||
hosts:
|
hosts:
|
||||||
default: kibana-dash
|
default: kibana-dash
|
||||||
public: kibana
|
public: kibana
|
||||||
@ -196,6 +190,5 @@ manifests:
|
|||||||
ingress: true
|
ingress: true
|
||||||
job_image_repo_sync: true
|
job_image_repo_sync: true
|
||||||
secret_elasticsearch: true
|
secret_elasticsearch: true
|
||||||
secret_admin: true
|
|
||||||
service: true
|
service: true
|
||||||
service_ingress: true
|
service_ingress: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user