exiting with an error when a capability cannot be found.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{{- if not .Open }}
|
||||
|
||||
apiVersion: networking.k8s.io/v1
|
||||
metadata:
|
||||
name: allow-monitoring
|
||||
namespace: {{.Name}}
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels: {}
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: prometheus
|
||||
namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: monitoring
|
||||
ports:
|
||||
- port: prometheus
|
||||
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user