This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: https://gist.github.com/84324e2d6eb1e62e3569846a741cedea | |
#################### | |
# Create a Cluster # | |
#################### | |
minikube start | |
############################# | |
# Deploy Ingress Controller # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################### 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*------------------------------------------ | |
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) { } |