apiVersion: v1 kind: Namespace metadata: labels: app.kubernetes.io/part-of: bluejay-infra name: intranet --- apiVersion: apps/v1 kind: Deployment metadata: name: intranet-web namespace: intranet labels: app: intranet-web app.kubernetes.io/part-of: bluejay-infra spec: replicas: 1 selector: matchLabels: app: intranet-web template: metadata: labels: app: intranet-web spec: containers: - name: intranet-web image: localhost/fc-intranet-web:latest imagePullPolicy: Never ports: - containerPort: 5300 name: http env: - name: ASPNETCORE_ENVIRONMENT value: Production - name: ASPNETCORE_URLS value: "http://+:5300" resources: requests: memory: "128Mi" cpu: "100m" limits: memory: "512Mi" cpu: "500m" livenessProbe: httpGet: path: /health port: 5300 initialDelaySeconds: 10 periodSeconds: 30 readinessProbe: httpGet: path: /health port: 5300 initialDelaySeconds: 5 periodSeconds: 10 --- apiVersion: v1 kind: Service metadata: name: intranet-web namespace: intranet labels: app.kubernetes.io/part-of: bluejay-infra spec: selector: app: intranet-web ports: - port: 5300 targetPort: 5300 name: http --- apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: intranet namespace: intranet labels: app.kubernetes.io/part-of: bluejay-infra spec: entryPoints: - websecure routes: - match: Host(`intranet.iamworkin.lan`) kind: Rule services: - name: intranet-web port: 5300 tls: certResolver: step-ca