For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
| --- | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: minio-setup | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: RoleBinding | |
| metadata: | |
| name: minio-setup-edit |
| global | |
| log stdout local0 debug | |
| defaults | |
| maxconn 50000 | |
| log-format "%ci:%cp [%t] %ft %b/%s %Tw/%Tc/%Tt %B %ts %ac/%fc/%bc/%sc/%rc %sq/%bq" | |
| log global |
| #!/bin/bash | |
| set -eu | |
| FORCE_CLEAN_UP=${FORCE_CLEAN_UP:-"false"} | |
| ONLY_CLEAN_UP=${ONLY_CLEAN_UP:-"false"} | |
| RELEASE_PATH=${RELEASE_PATH:-"/var/www/html/ignition/hub"} | |
| PULL_SECRET_PATH=${PULL_SECRET_PATH:-"./pull-secret.json"} | |
| SSH_KEY_PATH=${SSH_KEY_PATH:-"${HOME}/.ssh/id_rsa.pub"} |
| ( | |
| set -x; cd "$(mktemp -d)" && | |
| OS="$(uname | tr '[:upper:]' '[:lower:]')" && | |
| ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" && | |
| KREW="krew-${OS}_${ARCH}" && | |
| curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" && | |
| tar zxvf "${KREW}.tar.gz" && | |
| ./"${KREW}" install krew | |
| ) |
| ### Create file called machine-config-daemon-force in /run ### | |
| ssh [email protected] sudo touch /run/machine-config-daemon-force | |
| ### Edit node annotations ### | |
| oc edit node <node-name> | |
| ### Check Annotations, change like below sample ### | |
| machineconfiguration.openshift.io/currentConfig: rendered-worker-ab4a1e7216bf3da2a5203f09c871b456 | |
| machineconfiguration.openshift.io/desiredConfig: rendered-worker-ab4a1e7216bf3da2a5203f09c871b456 | |
| machineconfiguration.openshift.io/reason: "" |
| apiVersion: v1 | |
| data: | |
| config.json: | | |
| { | |
| "mode" : "sriov", | |
| "pfNetdevices": ["ib0"] | |
| } | |
| kind: ConfigMap | |
| metadata: | |
| name: rdma-devices |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
| package main | |
| import ( | |
| "io" | |
| "log" | |
| "net" | |
| "time" | |
| ) | |
| func reader(r io.Reader) { |
| #!/usr/bin/env python | |
| # Benchmark transferring data, part of troubleshooting https://github.com/tensorflow/tensorflow/issues/6116 | |
| # | |
| # Take a independent workers communicating with b parameter shards | |
| # Each worker tries to add to variables stored on parameter server as fast as | |
| # possible. | |
| # | |
| # macbook | |
| # ps=1: 1.6 GB/s | |
| # ps=2: 2.6 GB/s |