Last active
June 9, 2021 09:09
-
-
Save ebuildy/407b8deb98da163240ecd21e8fcc5855 to your computer and use it in GitHub Desktop.
Setup Kibana HTTPS with Helm chart / cert-manager.io for kubernetes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: cert-manager.io/v1 | |
| kind: Certificate | |
| metadata: | |
| name: {{ https.cert_name }} | |
| spec: | |
| secretName: {{ https.cert_name }} | |
| duration: 2160h # 90d | |
| renewBefore: 360h # 15d | |
| subject: | |
| organizations: | |
| - XXX | |
| isCA: false | |
| privateKey: | |
| algorithm: RSA | |
| encoding: PKCS1 | |
| size: 2048 | |
| usages: | |
| - server auth | |
| - client auth | |
| dnsNames: | |
| - localhost | |
| - 127.0.0.1 | |
| - {{ https.dns_ingress }} | |
| - {{ https.dns_service }} | |
| issuerRef: | |
| name: bootstrap-bootstrap-tls | |
| kind: Issuer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v2 | |
| name: hot-kibana | |
| type: application | |
| version: v1.6.0 | |
| dependencies: | |
| - name: kibana | |
| repository: https://helm.elastic.co | |
| version: 7.13.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server.ssl: | |
| enabled: true | |
| key: /usr/share/kibana/config/certs/tls.key | |
| certificate: /usr/share/kibana/config/certs/tls.cert |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kibana: | |
| ingress: | |
| annotations: | |
| cert-manager.io/common-name: XXXX | |
| kubernetes.io/tls-acme: 'true' | |
| nginx.ingress.kubernetes.io/backend-protocol: HTTPS | |
| nginx.ingress.kubernetes.io/http2-push-preload: 'true' | |
| nginx.ingress.kubernetes.io/proxy-ssl-verify: 'on' | |
| enabled: true | |
| hosts: | |
| - XXXXX | |
| path: / | |
| tls: | |
| - hosts: | |
| - XXXX | |
| secretName: hot-kibana-ssl | |
| kibanaConfig: | |
| kibana.yml: .... | |
| secretMounts: | |
| - name: kibana-https-certs | |
| path: /usr/share/kibana/config/certs | |
| secretName: hot-kibana-https |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment