-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
88 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,56 @@ | ||
--- | ||
# HTTPS Ingress | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: kibana-ingress | ||
namespace: k3s-logging | ||
namespace: {{ k3s_logging_namespace }} | ||
annotations: | ||
kubernetes.io/ingress.class: traefik | ||
# HTTPS as entry point | ||
traefik.ingress.kubernetes.io/router.entrypoints: websecure | ||
# Enable TLS | ||
traefik.ingress.kubernetes.io/router.tls: "true" | ||
# Enable cert-manager to create automatically the SSL certificate and store in Secret | ||
cert-manager.io/cluster-issuer: ca-issuer | ||
cert-manager.io/common-name: {{ kibana_dashboard_dns }} | ||
spec: | ||
tls: | ||
- hosts: | ||
- {{ kibana_dashboard_dns }} | ||
secretName: kibana-tls | ||
rules: | ||
- host: {{ kibana_dashboard_dns }} | ||
- host: {{ kibana_dashboard_dns }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: "{{ efk_cluster_name }}-kb-http" | ||
name: {{ efk_cluster_name }}-kb-http | ||
port: | ||
number: 5601 | ||
|
||
--- | ||
# http ingress for http->https redirection | ||
kind: Ingress | ||
apiVersion: networking.k8s.io/v1 | ||
metadata: | ||
name: kibana-redirect | ||
namespace: {{ k3s_logging_namespace }} | ||
annotations: | ||
# Use redirect Midleware configured | ||
traefik.ingress.kubernetes.io/router.middlewares: {{ k3s_traefik_namespace }}-redirect@kubernetescrd | ||
# HTTP as entrypoint | ||
traefik.ingress.kubernetes.io/router.entrypoints: web | ||
spec: | ||
rules: | ||
- host: {{ kibana_dashboard_dns }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ efk_cluster_name }}-kb-http | ||
port: | ||
number: 5601 |