Skip to content

Commit

Permalink
feat(k8s/amour/cilium/hubble_ui): Tailscale Ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
uhthomas committed Nov 6, 2023
1 parent 207ef2a commit 29152f2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions k8s/amour/cilium/hubble_ui/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cue_library(
"cluster_role_list.cue",
"config_map_list.cue",
"deployment_list.cue",
"ingress_list.cue",
"list.cue",
"service_account_list.cue",
"service_list.cue",
Expand All @@ -18,6 +19,7 @@ cue_library(
"//cue.mod/gen/github.com/cert-manager/cert-manager/pkg/apis/certmanager/v1:cue_v1_library",
"//cue.mod/gen/k8s.io/api/apps/v1:cue_v1_library",
"//cue.mod/gen/k8s.io/api/core/v1:cue_v1_library",
"//cue.mod/gen/k8s.io/api/networking/v1:cue_v1_library",
"//cue.mod/gen/k8s.io/api/rbac/v1:cue_v1_library",
],
)
24 changes: 24 additions & 0 deletions k8s/amour/cilium/hubble_ui/ingress_list.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package hubble_ui

import networkingv1 "k8s.io/api/networking/v1"

#IngressList: networkingv1.#IngressList & {
apiVersion: "networking.k8s.io/v1"
kind: "IngressList"
items: [...{
apiVersion: "networking.k8s.io/v1"
kind: "Ingress"
}]
}

#IngressList: items: [{
metadata: name: "hubble-ui"
spec: {
ingressClassName: "tailscale"
defaultBackend: service: {
name: #Name
port: name: "http"
}
tls: [{hosts: ["hubble-amour-k8s"]}]
}
}]
1 change: 1 addition & 0 deletions k8s/amour/cilium/hubble_ui/list.cue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ _items: [
#ClusterRoleList.items,
#ConfigMapList.items,
#DeploymentList.items,
#IngressList.items,
#ServiceAccountList.items,
#ServiceList.items,
]

0 comments on commit 29152f2

Please sign in to comment.