Skip to content

Instantly share code, notes, and snippets.

View superbrothers's full-sized avatar
🌏
Working from the earth

Kazuki Suda superbrothers

🌏
Working from the earth
View GitHub Profile

v1.31.0

Documentation

Downloads for v1.31.0

Source Code

filename sha512 hash
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: hubble-ca-issuer
namespace: kube-system
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Certificate

v1.29.0

Documentation

Downloads for v1.29.0

Source Code

filename sha512 hash

v1.28.0

Documentation

Downloads for v1.28.0

Source Code

filename sha512 hash

v1.27.0

Documentation

Downloads for v1.27.0

Source Code

filename sha512 hash
@superbrothers
superbrothers / go.mod
Last active May 4, 2023 07:52
A workaround for "Failed to initialize NVML: Unknown Error after calling systemctl daemon-reload https://github.com/NVIDIA/nvidia-docker/issues/1650
module github.com/pfnet-research/nvidia-create-symlinks
go 1.19
require (
github.com/NVIDIA/nvidia-container-toolkit v1.12.0-rc.2.0.20230127101129-9fc2c5912242 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect

v1.26.0

Documentation

Downloads for v1.26.0

Source Code

filename sha512 hash
$ kubectl create token default >token
$ awk -F. '{print $2}' token
eyJhdWQiOlsiaHR0cHM6Ly9rdWJlcm5ldGVzLmRlZmF1bHQuc3ZjLmNsdXN0ZXIubG9jYWwiXSwiZXhwIjoxNjYxMTcyMzc2LCJpYXQiOjE2NjExNjg3NzYsImlzcyI6Imh0dHBzOi8va3ViZXJuZXRlcy5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsIiwia3ViZXJuZXRlcy5pbyI6eyJuYW1lc3BhY2UiOiJkZWZhdWx0Iiwic2VydmljZWFjY291bnQiOnsibmFtZSI6ImRlZmF1bHQiLCJ1aWQiOiI3OGZkNjM0MS0yMDUyLTQ5ZjYtOWViZC1hMWY0OTEyODBiMDQifX0sIm5iZiI6MTY2MTE2ODc3Niwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50OmRlZmF1bHQ6ZGVmYXVsdCJ9
$ awk -F. '{print $2}' token | base64 -d
{"aud":["https://kubernetes.default.svc.cluster.local"],"exp":1661172376,"iat":1661168776,"iss":"https://kubernetes.default.svc.cluster.local","kubernetes.io":{"namespace":"default","serviceaccount":{"name":"default","uid":"78fd6341-2052-49f6-9ebd-a1f491280b04"}},"nbf":1661168776,"sub":"system:serviceaccount:default:default"}
$ awk -F. '{print $2}' token | base64 -d | jq -r '.exp'
1661172376

v1.24.0

Documentation

Downloads for v1.24.0

Source Code

filename sha512 hash
@superbrothers
superbrothers / components.yaml
Last active July 4, 2024 06:41
Metrics proxy server for Kubernetes components
# based on https://github.com/kubermatic/kubeone/issues/1215#issuecomment-992471229
apiVersion: v1
kind: ConfigMap
metadata:
name: metrics-proxy-config
namespace: monitoring
data:
haproxy.cfg: |
defaults
mode http