🌳
pt0/deployF/harvF/limitHarvHostnameF.mts
2import * as _ from 'lodash-es'
7export const k8sHarvDashboardHn = async ({hostnameA}: {hostnameA: string[]}) => {
8 // limited harvester dashboard hostname from wildcard hostnameA
9 const {clusterVip} = getKlusterCtx()
10 assertDefined(clusterVip)
12 const name = 'rancher-expose'
13 // const name = 'expose-rancher' // was this renamed to ^ in recent harv version
14 const namespace = 'cattle-system'
15 const resources = [
16 genericIngressTmpl({name, svcName: 'rancher', namespace, hostnameA, ingressAnnotationsH: {
17 'nginx.ingress.kubernetes.io/server-alias': clusterVip, // IMPORTANT otherwise nodes cant join
18 }}),
19 ]
20 await resourcesAction({resources})