Skip to content

Instantly share code, notes, and snippets.

@kincl
Last active October 24, 2024 17:51
Show Gist options
  • Save kincl/2938edd30079ac8fc03f78209ccaffb9 to your computer and use it in GitHub Desktop.
Save kincl/2938edd30079ac8fc03f78209ccaffb9 to your computer and use it in GitHub Desktop.
Debugging
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
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
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