-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multinode: fix kindnet and dns issues
- Loading branch information
Showing
8 changed files
with
99 additions
and
59 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
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
33 changes: 18 additions & 15 deletions
33
test/integration/testdata/multinodes/multinode-pod-dns-test.yaml
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 |
---|---|---|
@@ -1,32 +1,35 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: hello | ||
name: busybox | ||
labels: | ||
app: busybox | ||
spec: | ||
replicas: 2 | ||
strategy: | ||
type: RollingUpdate | ||
rollingUpdate: | ||
maxUnavailable: 100% | ||
selector: | ||
matchLabels: | ||
app: hello | ||
app: busybox | ||
template: | ||
metadata: | ||
labels: | ||
app: hello | ||
app: busybox | ||
spec: | ||
containers: | ||
- name: busybox | ||
# flaky nslookup in busybox versions newer than 1.28: | ||
# https://github.com/docker-library/busybox/issues/48 | ||
# note: gcr.io/kubernetes-e2e-test-images/dnsutils:1.3 | ||
# has similar issues (ie, resolves but returns exit 1) | ||
image: busybox:1.28 | ||
command: | ||
- sleep | ||
- "3600" | ||
imagePullPolicy: IfNotPresent | ||
restartPolicy: Always | ||
affinity: | ||
# ⬇⬇⬇ This ensures pods will land on separate hosts | ||
podAntiAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
- labelSelector: | ||
matchExpressions: [{ key: app, operator: In, values: [hello-from] }] | ||
matchExpressions: [{ key: app, operator: In, values: [busybox] }] | ||
topologyKey: "kubernetes.io/hostname" | ||
containers: | ||
- name: hello-from | ||
image: pbitty/hello-from:latest | ||
ports: | ||
- name: http | ||
containerPort: 80 | ||
terminationGracePeriodSeconds: 1 |