-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(networking): add internal Hubble ingress
- add ingress manifests for Hubble UI behind pomerium when auth is enabled - update networking schema to allow overriding defaults - update schemas documentation - update go-models Note: this does not update EKS schema because cilium is not an option there.
- Loading branch information
Showing
12 changed files
with
139 additions
and
18 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
45 changes: 45 additions & 0 deletions
45
templates/distribution/manifests/networking/resources/ingress-infra.yml.tpl
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
|
||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
labels: | ||
cluster.kfd.sighup.io/useful-link.enable: "true" | ||
annotations: | ||
cluster.kfd.sighup.io/useful-link.url: https://{{ template "hubbleUrl" .spec }} | ||
cluster.kfd.sighup.io/useful-link.name: "Cilium Hubble" | ||
forecastle.stakater.com/expose: "true" | ||
forecastle.stakater.com/appName: "Cilium Hubble" | ||
forecastle.stakater.com/icon: "https://cilium.io/static/hubble-light-1-812e65cbb72a7f4efed59fcea48df840.svg" | ||
{{ if not .spec.distribution.modules.networking.overrides.ingresses.hubble.disableAuth }}{{ template "ingressAuth" . }}{{ end }} | ||
{{ template "certManagerClusterIssuer" . }} | ||
name: hubble | ||
{{ if and (not .spec.distribution.modules.networking.overrides.ingresses.hubble.disableAuth) (eq .spec.distribution.modules.auth.provider.type "sso") }} | ||
namespace: pomerium | ||
{{ else }} | ||
namespace: kube-system | ||
{{ end }} | ||
spec: | ||
ingressClassName: {{ template "ingressClass" (dict "module" "networking" "package" "hubble" "type" "internal" "spec" .spec) }} | ||
rules: | ||
- host: {{ template "hubbleUrl" .spec }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
{{ if and (not .spec.distribution.modules.networking.overrides.ingresses.hubble.disableAuth) (eq .spec.distribution.modules.auth.provider.type "sso") }} | ||
service: | ||
name: pomerium | ||
port: | ||
number: 80 | ||
{{ else }} | ||
service: | ||
name: hubble-ui | ||
port: | ||
name: http | ||
{{ end }} | ||
{{- template "ingressTls" (dict "module" "networking" "package" "hubble" "prefix" "hubble." "spec" .spec) }} |