Skip to content

Instantly share code, notes, and snippets.

View vigneshragupathy's full-sized avatar
🎯
Focusing

vignesh vigneshragupathy

🎯
Focusing
View GitHub Profile
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: taint-deployment
spec:
replicas: 4
template:
metadata:
labels:
app: nginx
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: "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
api:
advertiseAddress: 10.0.2.15
bindPort: 6443
controlPlaneEndpoint: ""
apiVersion: kubeadm.k8s.io/v1alpha2
auditPolicy:
logDir: /var/log/kubernetes/audit
logMaxAge: 2
path: ""
bootstrapTokens:
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
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: production
name: dev-prod
rules:
- apiGroups: ["", "extensions", "apps"]
resources: ["deployments", "replicasets", "pods"]
verbs: ["list", "get", "watch"]
# You can use ["*"] for all verbs
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: production-role-binding
namespace: production
subjects:
- kind: User
name: vikki-user-1
apiGroup: ""
roleRef:
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
creationTimestamp: 2018-09-29T12:07:18Z
generation: 3
labels:
system: DaemonSetOne
name: daemon-set-vikki-roll-update
namespace: default
resourceVersion: "32862"
@vigneshragupathy
vigneshragupathy / ds.yaml
Created November 23, 2019 08:29
daemonset for fluent
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: fluentd-elasticsearch
namespace: default
labels:
k8s-app: fluentd-logging
spec:
selector:
matchLabels: