Skip to content

Instantly share code, notes, and snippets.

View vigneshragupathy's full-sized avatar
🎯
Focusing

vignesh vigneshragupathy

🎯
Focusing
View GitHub Profile
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod-label
labels:
env: test
spec:
containers:
- name: nginx-pod-label
image: nginx
@vigneshragupathy
vigneshragupathy / ss.yaml
Created November 24, 2019 06:56
statefulset
apiVersion: v1
kind: Service
metadata:
name: nginx
labels:
app: nginx
spec:
ports:
- port: 80
name: web
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: nginx-pod
name: nginx-pod
spec:
containers:
- image: nginx
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: vikki-pv-volume-claim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
apiVersion: v1
kind: PersistentVolume
metadata:
name: vikki-pv-volume
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
@vigneshragupathy
vigneshragupathy / ds_new.yaml
Last active November 23, 2019 08:57
daemonset with updateStrategy OnDelete
apiVersion: apps/v1
kind: DaemonSet
metadata:
annotations:
deprecated.daemonset.template.generation: "3"
creationTimestamp: "2019-11-23T07:30:57Z"
generation: 4
labels:
k8s-app: fluentd-logging
name: fluentd-elasticsearch
@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:
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"
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: production-role-binding
namespace: production
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