Debugging
Last active
October 24, 2024 17:51
-
-
Save kincl/2938edd30079ac8fc03f78209ccaffb9 to your computer and use it in GitHub Desktop.
Debugging
This file contains hidden or 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: fio | |
namespace: default | |
spec: | |
strategy: | |
type: Recreate | |
selector: | |
matchLabels: | |
app: fio | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: fio | |
spec: | |
terminationGracePeriodSeconds: 1 | |
# affinity: | |
# podAntiAffinity: | |
# requiredDurinagSchedulingIgnoredDuringExecution: | |
# - labelSelector: | |
# matchExpressions: | |
# - key: app | |
# operator: In | |
# values: | |
# - fio | |
# topologyKey: "kubernetes.io/hostname" | |
# hostNetwork: true | |
containers: | |
- name: debug | |
image: quay.io/cloud-bulldozer/fio:latest | |
command: | |
- /bin/cat | |
stdin: true | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- name: data | |
mountPath: /data | |
volumes: | |
- name: data | |
persistentVolumeClaim: | |
claimName: testing |
This file contains hidden or 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: iperf | |
namespace: default | |
spec: | |
strategy: | |
type: Recreate | |
selector: | |
matchLabels: | |
app: iperf | |
replicas: 2 | |
template: | |
metadata: | |
labels: | |
app: iperf | |
spec: | |
terminationGracePeriodSeconds: 1 | |
affinity: | |
podAntiAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
- labelSelector: | |
matchExpressions: | |
- key: app | |
operator: In | |
values: | |
- iperf | |
topologyKey: "kubernetes.io/hostname" | |
hostNetwork: true | |
containers: | |
- name: debug | |
image: quay.io/skupper/iperf3:latest | |
command: | |
- /bin/cat | |
stdin: true |
This file contains hidden or 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
apiVersion: nmstate.io/v1 | |
kind: NodeNetworkConfigurationPolicy | |
metadata: | |
name: bond0-vlan101-myhost | |
spec: | |
desiredState: | |
interfaces: | |
- ipv4: | |
address: | |
- ip: 192.168.122.250 | |
prefix-length: 24 | |
enabled: true | |
ipv6: | |
enabled: false | |
name: bond0.101 | |
type: vlan | |
state: up | |
vlan: | |
base-iface: bond0 | |
id: 101 | |
nodeSelector: | |
kubernetes.io/hostname: myhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment