Skip to content

Instantly share code, notes, and snippets.

View vigneshragupathy's full-sized avatar
🎯
Focusing

vignesh vigneshragupathy

🎯
Focusing
View GitHub Profile
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
labels:
run: nginx
name: nginx-nfs-pv
spec:
replicas: 1
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
labels:
run: nginx
name: nginx-nfs-pv
namespace: default
spec:
apiVersion: v1
kind: Pod
metadata:
name: shell-demo
spec:
containers:
- name: nginx
image: nginx
volumeMounts:
- name: car-vol
apiVersion: v1
kind: Pod
metadata:
name: shell-demo
spec:
containers:
- name: nginx
image: nginx
envFrom:
- configMapRef:
apiVersion: v1
kind: Pod
metadata:
name: shell-demo
spec:
containers:
- name: nginx
image: nginx
env:
- name: ilike
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
system: secondary
name: nginx-service
namespace: accounting
spec:
replicas: 2
template:
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
creationTimestamp: 2018-09-29T13:04:57Z
generation: 2
labels:
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: daemon-set-vikki
spec:
template:
metadata:
labels:
system: DaemonSetOne
spec:
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: 2018-09-29T07:38:40Z
generateName: replicate-set-vikki-
labels:
@vigneshragupathy
vigneshragupathy / replicate_set.yaml
Created September 29, 2018 07:40
yaml file to create a simple replica sets
apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
name: replicate-set-vikki
spec:
replicas: 2
template:
metadata:
labels:
system: ReplicaOne