File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed
charts/medcat-service-helm Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1+ {{- if .Values.networkPolicy.enabled }}
2+ apiVersion : networking.k8s.io/v1
3+ kind : NetworkPolicy
4+ metadata :
5+ name : {{ include "medcat-service.fullname" . }}
6+ labels :
7+ {{- include "medcat-service.labels" . | nindent 4 }}
8+ spec :
9+ podSelector :
10+ matchLabels :
11+ {{- include "medcat-service.selectorLabels" . | nindent 6 }}
12+ policyTypes :
13+ - Ingress
14+ {{- if .Values.networkPolicy.egress.enabled }}
15+ - Egress
16+ {{- end }}
17+ ingress :
18+ - ports :
19+ - port : {{ .Values.service.port }}
20+ {{- if .Values.networkPolicy.egress.enabled }}
21+ egress :
22+ {{- toYaml .Values.networkPolicy.egress.egressRules | nindent 4 }}
23+ {{- end }}
24+ {{ end }}
Original file line number Diff line number Diff line change @@ -217,3 +217,19 @@ nodeSelector: {}
217217tolerations : []
218218
219219affinity : {}
220+
221+ networkPolicy :
222+ # Choose to create a default network policy blocking all ingress other than to the service port.
223+ enabled : true
224+ egress :
225+ # Choose to block egress by enabling it in the network policy
226+ enabled : false
227+ # Append any custom egress rules following the standard format
228+ egressRules : []
229+ # # Example format
230+ # - to:
231+ # - podSelector:
232+ # matchLabels:
233+ # app.kubernetes.io/name: model-downloader
234+ # ports:
235+ # - port: 5000
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- minikube start
2+ minikube start --cni=calico --cpus=no-limit --memory=no-limit
33minikube addons enable metrics-server
44
55minikube dashboard --url=true &
You can’t perform that action at this time.
0 commit comments