Skip to content

Instantly share code, notes, and snippets.

View venkatzgithub's full-sized avatar
🏠
Working from home

venkatzgithub

🏠
Working from home
View GitHub Profile
# Source: https://gist.github.com/84324e2d6eb1e62e3569846a741cedea
####################
# Create a Cluster #
####################
minikube start
#############################
# Deploy Ingress Controller #
@Tej-Singh-Rana
Tej-Singh-Rana / gist:5c4c0221ef75d80c4ea980f94335c0cb
Created August 12, 2020 15:43
kubernetes cluster installation from kubeadm-way
##################### Master Node ##################################################
# Set the hostname
$ hostnamectl set-hostname <enter-hostname>
# To get effect in the system without reboot, run the following command:
$ exec bash
# Do entry in the /etc/hosts for master and worker nodes to identify by it's hostname.
e.g. echo "172.16.238.10 master" >> /etc/hosts
echo "172.16.238.11 worker01" >> /etc/hosts
CKAD
Core Concepts (13%)
kubectl create namespace mynamespace
kubectl run nginx --image=nginx --restart=Never -n mynamespace
kubectl run nginx --image=nginx --restart=Never --dry-run -o yaml > myfile.yaml
kubectl run busybox --image=busybox --command --restart=Never -it -- env #withoutput
kubectl run busybox --image=busybox --command --restart=Never -- env #with
kubectl logs busybox
kubectl run busybox --image=busybox --restart=Never -o yaml --dry-run --command env > myfile.yaml
kubectl apply -f myfile.yaml
@bartholomej
bartholomej / css-media-queries-cheat-sheet.css
Last active July 15, 2024 23:48
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }