'use strict';
import * as _0x16ff3d from '@pulumi/kubernetes';
import { clusterNames, clusterSuffixes, clusterIngress } from '@cluster/constants/cluster-constants';

var __defProp=Object['defineProperty'],__name=(_0x57e71b,_0x5424dc)=>__defProp(_0x57e71b,'name',{'value':_0x5424dc,'configurable':!![]});const appName=clusterNames['ksWeb']+'-'+clusterSuffixes['ingress'];function createNetworking(){const _0x25d94c=new _0x16ff3d['helm']['v4']['Chart'](clusterNames['ingress'],{'chart':clusterNames['ingress'],'version':'4.12.0','namespace':clusterNames['ingress'],'repositoryOpts':{'repo':'https://kubernetes.github.io/ingress-nginx'},'values':{'controller':{'service':{'type':'ClusterIP'},'extraArgs':{'default-ssl-certificate':clusterIngress['tlsSecret']},'admissionWebhooks':{'enabled':![]}},'tcp':{'31003':'postgres/postgres-postgresql:5432','30500':'registry/docker-registry:5000'}}}),_0x2b2f3a=new _0x16ff3d['networking']['v1']['Ingress'](appName,{'metadata':{'name':appName,'namespace':clusterNames['ingress'],'annotations':{[clusterIngress['proxyBodySizeAnnotation']]:'15m'}},'spec':{'ingressClassName':'nginx','rules':[{'host':'app.fernir.co','http':{'paths':[{'path':'/','pathType':'Prefix','backend':{'service':{'name':clusterNames['ksWeb'],'port':{'number':0x1f90}}}}]}}]}},{'dependsOn':[_0x25d94c]});return {'ingressNginx':_0x25d94c,'appIngress':_0x2b2f3a};}__name(createNetworking,'createNetworking');

export { createNetworking };
