Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

vignesh vigneshragupathy

🎯
Focusing
View GitHub Profile
View kube-scheduler.service
[Unit]
Description=Kubernetes Scheduler
Documentation=https://github.com/kubernetes/kubernetes
[Service]
ExecStart=/usr/local/bin/kube-scheduler \
--kubeconfig=/var/lib/kubernetes/kube-scheduler.kubeconfig \
--address=127.0.0.1 \
--leader-elect=true \
--v=2
View kube-controller-manager.service
[Unit]
Description=Kubernetes Controller Manager
Documentation=https://github.com/kubernetes/kubernetes
[Service]
ExecStart=/usr/local/bin/kube-controller-manager \
--address=0.0.0.0 \
--cluster-cidr=192.168.5.0/24 \
--cluster-name=kubernetes-cluster \
--cluster-signing-cert-file=/var/lib/kubernetes/ca.crt \
View kube-apiserver.service
[Unit]
Description=Kubernetes API Server
Documentation=https://github.com/kubernetes/kubernetes
[Service]
ExecStart=/usr/local/bin/kube-apiserver \
--advertise-address=10.0.0.1 \
--allow-privileged=true \
--apiserver-count=3 \
--audit-log-maxage=30 \
View encryption-config.yaml
apiVersion: apiserver.config.k8s.io/v1
kind: EncryptionConfiguration
resources:
- resources:
- secrets
providers:
- aescbc:
keys:
- name: key1
secret: /WfVaHN7BB6Qj3h3GkXVvr92EaaPaPI7+yFuYaev/OE=
View etcd.service
[Unit]
Description=etcd
Documentation=https://github.com/coreos
[Service]
ExecStart=/usr/local/bin/etcd \
--name=kubernetes1 \
--cert-file=/etc/etcd/etcd-server.crt \
--key-file=/etc/etcd/etcd-server.key \
--peer-cert-file=/etc/etcd/etcd-server.crt \
View etcd.conf
[req]
req_extensions = req_ext
distinguished_name = dn
[dn]
[ req_ext ]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
View kube-apiserver.conf
[ req ]
default_bits = 2048
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn
[ dn ]
C = IN
ST = Karnataka
View pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: myapp-pod
labels:
app: myapp
spec:
containers:
- name: nginx-pod
image: nginx
View pod_custom_scheduler.yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod-custom-scheduler
spec:
schedulerName: my-scheduler
containers:
- name: nginx-pod-custom-scheduler
image: nginx
View pod_default_scheduler.yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod-default-scheduler
spec:
containers:
- name: nginx-pod-default-scheduler
image: nginx