Skip to content

Instantly share code, notes, and snippets.

View curx's full-sized avatar

Thorsten Schifferdecker curx

View GitHub Profile
@curx
curx / kublet-cert-approver-ccm.yaml
Created June 8, 2021 12:48
a prepared kublet cert approver for ccm
apiVersion: v1
kind: Namespace
metadata:
labels:
app.kubernetes.io/instance: kubelet-serving-cert-approver
app.kubernetes.io/name: kubelet-serving-cert-approver
name: kubelet-serving-cert-approver
---
apiVersion: v1
kind: ServiceAccount
@curx
curx / openstack-ccm.yaml
Created June 8, 2021 12:02
a prepared ccm for openstack
---
apiVersion: v1
items:
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: system:cloud-node-controller
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
@curx
curx / cilium-v1.9-without-kube-proxy.yaml
Created May 12, 2021 18:33
customized cilium manifests used for talos - without kube-proxy
---
# Source: cilium/templates/cilium-agent-serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: cilium
namespace: kube-system
---
# Source: cilium/templates/cilium-operator-serviceaccount.yaml
apiVersion: v1
@curx
curx / cilium-v1.9.yaml
Created May 12, 2021 16:59
customized cilium manifests used for talos
---
# Source: cilium/templates/cilium-agent-serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: cilium
namespace: kube-system
---
# Source: cilium/templates/cilium-operator-serviceaccount.yaml
apiVersion: v1
@curx
curx / calico.yaml
Last active June 2, 2021 18:30
a prepared calico.yaml for k3s
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.
@curx
curx / youtube-dl.md
Created March 15, 2020 10:25 — forked from harishkannarao/youtube-dl.md
youtube-dl

youtube-dl

youtube-dl is an opensource command line tool to download video or audio from online video streaming services.

Videos downloaded in mkv or webm extensions can be played by VLC Media player in all major devices and operating systems including iPhone, Android devices.

Tool website: https://youtube-dl.org/

This gist shows the example commands to use the tool and doesn't support or encourage piracy or violation of copyrights of the online streaming service or the author of the content

Installing youtube-dl:

@curx
curx / 00-cloud-config.yml
Created January 11, 2020 06:02 — forked from janeczku/00-cloud-config.yml
Annotated RancherOS Cloud-init configuration snippets
#cloud-config
# Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease).
hostname: myhost
# Authorize SSH keys for the `rancher` sudoer user
ssh_authorized_keys:
- ssh-rsa AAA...ZZZ example1@rancher
@curx
curx / netpol-np-default.yaml
Created November 5, 2019 09:06
networkpolicy namespace (default)
apiVersion: extensions/v1beta1
kind: NetworkPolicy
metadata:
labels:
cattle.io/creator: norman
field.cattle.io/projectId: p-<xyz-1>
name: np-default
namespace: default
spec:
ingress:
@curx
curx / netpol-hn-nodes.yaml
Created November 5, 2019 09:04
networkpolicy hardware nodes (default)
apiVersion: extensions/v1beta1
kind: NetworkPolicy
metadata:
name: hn-nodes
namespace: default
ownerReferences:
- apiVersion: v1
kind: Namespace
name: default
spec:
@curx
curx / hack-k8s.md
Created November 3, 2019 19:55 — forked from egernst/hack-k8s.md
hacking k8s

kubeadm-config.yaml:

---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
# Allowing for CPU pinning and isolation in case of guaranteed QoS class
-featureGates:
-  PodOverhead: true
cpuManagerPolicy: static
systemReserved: