Skip to content

Instantly share code, notes, and snippets.

View vigneshragupathy's full-sized avatar
🎯
Focusing

vignesh vigneshragupathy

🎯
Focusing
View GitHub Profile
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: developer-role-binding
namespace: development
subjects:
- kind: User
name: vikki-user-1
apiGroup: ""
roleRef:
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
namespace: development
name: developer
rules:
- apiGroups: ["", "extensions", "apps"]
resources: ["deployments", "replicasets", "pods"]
verbs: ["list", "get", "watch", "create", "update", "patch", "delete"]
# You can use ["*"] for all verbs
api:
advertiseAddress: 10.0.2.15
bindPort: 6443
controlPlaneEndpoint: ""
apiVersion: kubeadm.k8s.io/v1alpha2
auditPolicy:
logDir: /var/log/kubernetes/audit
logMaxAge: 2
path: ""
bootstrapTokens:
apiVersion: "testing.vikki.in/v1"
# This is from the group and version of new CRD
kind: CronTab
# The kind from the new CRD
metadata:
name: new-cron-object
spec:
cronSpec: "*/5 * * * *"
image: some-cron-image
#Does not exist
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: crontabs.testing.vikki.in
# This name must match names below.
# <plural>.<group> syntax
spec:
scope: Cluster #Could also be Namespaced
group: testing.vikki.in
version: v1
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: taint-deployment
spec:
replicas: 4
template:
metadata:
labels:
app: nginx
apiVersion: v1
kind: Pod
metadata:
name: vip
spec:
containers:
- name: vip1
image: busybox
args:
- sleep
apiVersion: v1
kind: Pod
metadata:
name: vip
spec:
containers:
- name: vip1
image: busybox
args:
- sleep
apiVersion: v1
kind: Pod
metadata:
name: vip
spec:
containers:
- name: vip1
image: busybox
args:
- sleep
apiVersion: v1
kind: PersistentVolume
metadata:
name: pvvol-1-vikki
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle