-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Support running DatapathConfiguration tests on single node
Recent refactoring of the manifest deployments has broken the ability to run these tests on a single note (such as microk8s / minikube). Restore this ability by adding a new `-cilium.multinode` flag which can be disabled, and autodisabling it for these two integrations. Signed-off-by: Joe Stringer <joe@cilium.io>
- Loading branch information
1 parent
9bad3ad
commit 6ed1d36
Showing
6 changed files
with
278 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,233 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: testds | ||
spec: | ||
selector: | ||
matchLabels: | ||
zgroup: testDS | ||
template: | ||
metadata: | ||
labels: | ||
zgroup: testDS | ||
spec: | ||
containers: | ||
- name: web | ||
image: docker.io/cilium/echoserver:1.10.1 | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 80 | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: 80 | ||
- name: udp | ||
image: docker.io/cilium/echoserver-udp:v2020.01.30 | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 69 | ||
protocol: UDP | ||
terminationGracePeriodSeconds: 0 | ||
tolerations: | ||
- effect: NoSchedule | ||
key: node-role.kubernetes.io/master | ||
- effect: NoSchedule | ||
key: node.cloudprovider.kubernetes.io/uninitialized | ||
value: "true" | ||
--- | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: testclient | ||
spec: | ||
selector: | ||
matchLabels: | ||
zgroup: testDSClient | ||
template: | ||
metadata: | ||
labels: | ||
zgroup: testDSClient | ||
spec: | ||
terminationGracePeriodSeconds: 0 | ||
containers: | ||
- name: web | ||
image: docker.io/cilium/demo-client:latest | ||
imagePullPolicy: IfNotPresent | ||
command: [ "sleep" ] | ||
args: | ||
- "1000h" | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test-k8s2 | ||
spec: | ||
selector: | ||
matchLabels: | ||
zgroup: test-k8s2 | ||
template: | ||
metadata: | ||
labels: | ||
zgroup: test-k8s2 | ||
spec: | ||
containers: | ||
- name: web | ||
image: docker.io/cilium/echoserver:1.10.1 | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 80 | ||
hostPort: 8080 | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: 80 | ||
- name: udp | ||
image: docker.io/cilium/echoserver-udp:v2020.01.30 | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 69 | ||
hostPort: 6969 | ||
protocol: UDP | ||
terminationGracePeriodSeconds: 0 | ||
nodeSelector: | ||
"cilium.io/ci-node": k8s1 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: testds-service | ||
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
targetPort: 80 | ||
protocol: TCP | ||
- name: tftp | ||
port: 69 | ||
targetPort: 69 | ||
protocol: UDP | ||
selector: | ||
zgroup: testDS | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test-nodeport | ||
spec: | ||
type: NodePort | ||
ports: | ||
- port: 10080 | ||
targetPort: 80 | ||
protocol: TCP | ||
name: http | ||
- port: 10069 | ||
targetPort: 69 | ||
protocol: UDP | ||
name: tftp | ||
selector: | ||
zgroup: testDS | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test-affinity | ||
spec: | ||
type: NodePort | ||
ports: | ||
- port: 10080 | ||
targetPort: 80 | ||
protocol: TCP | ||
name: http | ||
- port: 10069 | ||
targetPort: 69 | ||
protocol: UDP | ||
name: tftp | ||
sessionAffinity: ClientIP | ||
selector: | ||
zgroup: testDS | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test-nodeport-local | ||
spec: | ||
type: NodePort | ||
externalTrafficPolicy: Local | ||
ports: | ||
- port: 10080 | ||
targetPort: 80 | ||
protocol: TCP | ||
name: http | ||
- port: 10069 | ||
targetPort: 69 | ||
protocol: UDP | ||
name: tftp | ||
selector: | ||
zgroup: testDS | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test-nodeport-local-k8s2 | ||
spec: | ||
type: NodePort | ||
externalTrafficPolicy: Local | ||
ports: | ||
- port: 10080 | ||
targetPort: 80 | ||
protocol: TCP | ||
name: http | ||
- port: 10069 | ||
targetPort: 69 | ||
protocol: UDP | ||
name: tftp | ||
selector: | ||
zgroup: test-k8s2 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test-nodeport-k8s2 | ||
spec: | ||
type: NodePort | ||
ports: | ||
- port: 10080 | ||
targetPort: 80 | ||
protocol: TCP | ||
name: http | ||
- port: 10069 | ||
targetPort: 69 | ||
protocol: UDP | ||
name: tftp | ||
selector: | ||
zgroup: test-k8s2 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test-lb | ||
spec: | ||
type: LoadBalancer | ||
ports: | ||
- port: 80 | ||
targetPort: 80 | ||
protocol: TCP | ||
name: http | ||
selector: | ||
zgroup: testDS | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test-lb-local-k8s2 | ||
spec: | ||
type: LoadBalancer | ||
externalTrafficPolicy: Local | ||
ports: | ||
- port: 80 | ||
targetPort: 80 | ||
protocol: TCP | ||
name: http | ||
selector: | ||
zgroup: test-k8s2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters