Skip to content

Instantly share code, notes, and snippets.

View parashuramn's full-sized avatar
🇮🇳
Go Green. Save Nature.

Parashuram Nayak parashuramn

🇮🇳
Go Green. Save Nature.
  • Bangalore, INDIA
View GitHub Profile
@parashuramn
parashuramn / devops_training_materials
Last active June 26, 2023 10:52
Training materials for DevOps
======
Videos
======
DevOps
What is DevOps? by Rackspace - Really great introduction to DevOps
https://www.youtube.com/watch?v=_I94-tJlovg
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)
# Create a pod that reads and writes to the
# NFS server via an NFS volume.
kind: Pod
apiVersion: v1
metadata:
name: pod-using-nfs
spec:
# Add the server as an NFS volume for the pod
volumes:
@parashuramn
parashuramn / config-map.yaml
Created June 6, 2023 18:09
config-map.yaml
kind: ConfigMap
apiVersion: v1
metadata:
name: example-configmap
data:
# Configuration values can be set as key-value properties
database: mongodb
database_uri: mongodb://localhost:27017
# Or set as complete file contents (even JSON!)
@parashuramn
parashuramn / pod-env-var.yaml
Created June 6, 2023 18:08
pod-env-var.yaml
kind: Pod
apiVersion: v1
metadata:
name: pod-env-var
spec:
containers:
- name: env-var-configmap
image: nginx:1.7.9
envFrom:
- configMapRef:
@parashuramn
parashuramn / service.yaml
Created June 6, 2023 18:07
service.yaml
kind: Service
apiVersion: v1
metadata:
name: hostname-service
spec:
# Expose the service on a static port on each node
# so that we can access the service from outside the cluster
type: NodePort
# When the node receives a request on the static port (30163)
@parashuramn
parashuramn / pod.yaml
Last active June 6, 2023 18:05
pod.yaml
kind: Pod
apiVersion: v1
metadata:
name: pod-using-configmap
spec:
# Add the ConfigMap as a volume to the Pod
volumes:
# `name` here must match the name
# specified in the volume mount