Skip to content

Instantly share code, notes, and snippets.

View jenting's full-sized avatar

JenTing jenting

  • Taiwan
  • 15:43 (UTC +08:00)
View GitHub Profile
@jenting
jenting / admin.yaml
Created May 20, 2024 22:20
Kubeadm ClusterRole
aggregationRule:
clusterRoleSelectors:
- matchLabels:
rbac.authorization.k8s.io/aggregate-to-admin: "true"
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
labels:
@jenting
jenting / admin.yaml
Last active May 20, 2024 22:23
Rancher ClusterRole
aggregationRule:
clusterRoleSelectors:
- matchLabels:
rbac.authorization.k8s.io/aggregate-to-admin: "true"
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
labels:
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: conditional-mutate-pod
spec:
admission: true
background: false
validationFailureAction: Audit
rules:
- name: conditional-mutate-cpu-requests
https://itnext.io/kubernetes-scheduler-deep-dive-fdfcb516be30
https://streamlit.io/
@jenting
jenting / gist:d9a0b83534a940eb9fc982f3446e9bfe
Created August 3, 2023 13:22
ArgoCD Watch failed context canceled
retrywatcher.go:130] "Watch failed" err="Get \"https://yadda/apis/apps/v1/namespaces/NAMESPACE_HERE/RESOURCE_NAME_HERE/?allowWatchBookmarks=true&resourceVersion=5645476686&watch=true\": context canceled"
https://github.com/argoproj/argo-cd/issues/11458
https://github.com/argoproj/argo-cd/releases/tag/v2.6.8
@jenting
jenting / gist:5d292c9a2a08dd668bf49c921159e85c
Last active August 6, 2023 13:58
Register a custom indexer
https://stackoverflow.com/a/57083222
https://cloud.tencent.com/developer/article/1794652
https://wbuntu.com/golang-note-11-controller-runtime/
https://github.com/kubernetes-sigs/e2e-framework/pull/125/files
https://promlabs.com/promql-cheat-sheet/
https://valyala.medium.com/promql-tutorial-for-beginners-9ab455142085
@jenting
jenting / pod.yaml
Last active November 16, 2022 09:50
PreExisting Volume
apiVersion: v1
kind: Pod
metadata:
name: workspace-pod-test
namespace: default
spec:
restartPolicy: Always
containers:
- name: volume-pv-test
image: nginx:stable-alpine
@jenting
jenting / container.yaml
Last active November 10, 2022 06:00
Pod block device
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: block-dev
spec:
accessModes:
- ReadWriteOnce
volumeMode: Block
storageClassName: rook-ceph-block
resources: