mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 17:49:59 +00:00
kubectl run is being deprecated as a multi-purpose tool. This PR replaces 'kubectl run' with 'kubectl create deployment' in most places (except in the very first example, to reduce the cognitive load; and when we really want a single-shot container). It also updates the places where we use a 'run' label, since 'kubectl create deployment' uses the 'app' label instead. NOTE: this hasn't gone through end-to-end testing yet.
15 lines
241 B
YAML
15 lines
241 B
YAML
kind: NetworkPolicy
|
|
apiVersion: networking.k8s.io/v1
|
|
metadata:
|
|
name: allow-testcurl-for-testweb
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app: testweb
|
|
ingress:
|
|
- from:
|
|
- podSelector:
|
|
matchLabels:
|
|
run: testcurl
|
|
|