You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-ingress-except
namespace: harbor
spec:
podSelector:
matchLabels:
component: portal
policyTypes:
- Ingress
ingress:
# Deny traffic from the IP 2.4.3.2
- from:
- ipBlock:
cidr: 0.0.0.0/0 # Internet access (all IPs)
except:
- 2.4.3.2/32 # Deny only this IP
ports:
- protocol: TCP
port: 443 # Allow only port 443 for the service
Applying define network policy and I cut access completely from EVERYWHERE, is something that am I missing ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So, I have defined an ingress in namespace harbor, for a harbor helm deployment
Applying define network policy and I cut access completely from EVERYWHERE, is something that am I missing ?
Beta Was this translation helpful? Give feedback.
All reactions