- How do I do performance testing to test the network bewteen nodes and pods?
- What tool does RedHat use to test network performance?
- OpenShift 4
for base in kubernetes openshift; do | |
readarray RESOURCES <<< \ | |
"$(etcdctl --command-timeout=30s \ | |
get --prefix / --keys-only 2>/dev/null | grep -oP "(?<=/${base}.io\/).+?(?=\/)" | sort | uniq)" | |
for res in "${RESOURCES[@]}"; do | |
BYTES=$(etcdctl --command-timeout=30s \ | |
get --prefix /${base}.io/$res -w protobuf | wc -c) | |
COUNT==$(etcdctl --command-timeout=30s \ | |
get --prefix /${base}.io/$res --keys-only | sed '/^$/d' | wc -l) | |
echo "/${base}.io/$res Count=$COUNT Bytes=$BYTES" |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: openshift4-debug | |
labels: | |
app: openshift4-debug | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount |
### DHCP to DNSmasq | |
awk ' | |
/host/ { if (hostname) print "dhcp-host=" mac "," ip "," hostname; hostname = $2 } | |
/hardware ethernet/ { mac = $3; sub(";", "", mac) } | |
/fixed-address/ { ip = $2; sub(";", "", ip) } | |
END { print "dhcp-host=" mac "," ip "," hostname } | |
' dhcpd.conf | |
# oc label mcp worker custom-kubelet=sysctl
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
apiVersion: machineconfiguration.openshift.io/v1 | |
kind: MachineConfig | |
metadata: | |
labels: | |
machineconfiguration.openshift.io/role: worker | |
name: recreate-backingfsblockdev | |
spec: | |
config: | |
ignition: | |
version: 3.2.0 |
# kubectl-dev_tool audit --subresource="*" --verb=list -o top --by=user -f audit-2023-02-07T15-02-18.917.log | |
count: 9201, first: 2023-02-07T09:46:41-05:00, last: 2023-02-07T10:02:18-05:00, duration: 15m37.691882s | |
4071x system:serviceaccount:sysdig-agent:sysdig-agent | |
574x system:serviceaccount:openshift-machine-config-operator:machine-config-daemon | |
543x system:serviceaccount:openshift-dns:dns | |
456x system:apiserver | |
360x system:serviceaccount:openshift-cluster-node-tuning-operator:tuned | |
286x system:serviceaccount:openshift-monitoring:prometheus-k8s | |
275x system:serviceaccount:openshift-operator-lifecycle-manager:olm-operator-serviceaccount | |
177x system:serviceaccount:openshift-operators:jaeger-operator |
oc get nodes -o template --template='{{ range .items }}{{ $desired := index .metadata.annotations "machineconfiguration.openshift.io/desiredConfig" }}{{ $current := index .metadata.annotations "machineconfiguration.openshift.io/currentConfig" }} {{ if $current }} {{ if eq $current $desired }} Node Name: {{ .metadata.name }} {{"\t"}}Machine Config: {{ index .metadata.annotations "machineconfiguration.openshift.io/currentConfig" }} {{ println }}{{ end }}{{ if ne $current $desired }} Current != Desired {{"\t"}} Node Name: {{ .metadata.name }} {{"\t"}} Current: {{ index .metadata.annotations "machineconfiguration.openshift.io/currentConfig" }} {{"\t"}} Desired: {{ index .metadata.annotations "machineconfiguration.openshift.io/desiredConfig" }}{{ println }}{{ end }}{{ end }}{{ end }}' |
FROM quay.io/fedora/fedora | |
RUN dnf -y update && dnf clean all && \ | |
INSTALL_PKGS="\ | |
ncat \ | |
openssl \ | |
&& \ | |
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \ |