-
-
Save oluwajubelo1/f4499aba75f64cc9bd49fbfbcb51d910 to your computer and use it in GitHub Desktop.
Kubernetes Gist
This file contains 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
alias k='kubectl' | |
alias kc='kubectl create' | |
alias kd='kubectl delete' | |
alias kda='kubectl delete all --all' | |
alias kg='kubectl get' | |
alias kga='kubectl get all' | |
alias kv='kubectl version' | |
alias m='minikube' | |
alias ma='minikube addons' | |
alias ms='minikube service' | |
alias minid='minikube delete' | |
alias minis='minikube start' | |
alias miniv='minikube version' |
- Using ConfigMap-kubernetes.io
- KUBERNETES, ENVIRONMENT VARIABLES
- ConfigMaps-Redhat OpenShfit-docs
- ConfigMaps-Google Cloud
- ConfigMap Example-kubernetes.io
- Configure a Pod to Use a ConfigMap-kubernetes.io
- Using Kubernetes Configmap with configuration files for deploying Rails applications
- Configuring Spring Boot on Kubernetes with ConfigMap
- Inject Kubernetes ConfigMap values with Java EE & WildFly
- Nginx Server Deployment using Kubernetes
- KUBERNETES: INTRO-nginx deloyment ko ver
- 10 Most Common Reasons Kubernetes Deployments Fail (Part 1)
minikube $SERVICE_NAME --url
- curl $(ms $SERVICE_NAME --url)
This file contains 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
# https://www.hiroom2.com/2017/12/07/fedora-27-kvm-en/ | |
sudo dnf install -y qemu-kvm virt-manager virt-install | |
# if libvirt group haven't, add libvirt group in system. | |
sudo groupadd libvirt. | |
# Current user add in libvirt group. | |
sudo gpasswd -a "${USER}" libvirt | |
# VNC port | |
sudo firewall-cmd --add-service=vnc-server --permanent | |
sudo firewall-cmd --reload | |
# Connect virt-manager | |
virt-manger | |
# if libvirt daemon not running. | |
sudo dnf install -y libvirt-daemon-driver-qemu.x86_64 |
This file contains 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
# https://kubernetes.io/docs/tasks/tools/install-minikube/ | |
# You choose kind of Hypervisor. | |
echo "preparation(1~4) - Install a Hypervisor" | |
# Method 1. Install KVM. -> kvm_install.sh | |
# Method 2. Install Virtualbox -> vbox_install.sh | |
echo "kubectl install" | |
# https://kubernetes.io/docs/tasks/tools/install-kubectl/ | |
# https://github.com/kubernetes/minikube |
This file contains 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
# https://www.itzgeek.com/how-tos/virtualization/install-virtualbox-4-3-on-fedora-22.html | |
cat << EOF >> /etc/yum.repos.d/virtualbox.repo | |
[virtualbox] | |
name=Fedora $releasever - $basearch - VirtualBox | |
baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc | |
EOF | |
dnf update | |
# Install kernel-headers and DKMS. | |
dnf install kernel-devel kernel-headers dkms | |
dnf install -y VirtualBox-5.2.x86_64 | |
systemctl start vboxdrv | |
usermod -a -G vboxusers $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment