6ab338cf58
This commit adds a new e2e test fot the recently introduced allowed-location-ips annotation. This test annotates the control-plane node with an allowed IP and then ensures this IPs is reachable from the curl helper Pod, which is now guaranteed to be scheduled on a worker node. Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
26 lines
481 B
YAML
26 lines
481 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
labels:
|
|
app.kubernetes.io/name: curl
|
|
name: curl
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: curl
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: curl
|
|
spec:
|
|
containers:
|
|
- command:
|
|
- /bin/sh
|
|
- -c
|
|
- while [ 1 -eq 1 ] ; do sleep 10; done
|
|
image: curlimages/curl
|
|
name: curl
|
|
restartPolicy: Always
|