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
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All |
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
# Install virtual box (this will be used to run Minikube) | |
brew install cask && brew install --cask virtualbox | |
# Install Minikube | |
brew install minikube | |
# Start minikube | |
minikube start --driver=virtualbox |
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
# Install from Chocolatey | |
choco install minikube | |
# Start Minikube with the hyper-v driver (Windows) | |
minikube start --driver=hyperv | |
# Verify it's up | |
minikube status | |
# (When done, optional) Shut it down |
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
# Shut down | |
minikube stop | |
# Tell it to delete anything it created outside itself | |
minikube delete | |
# Use chocolatey to remove | |
Choco uninstall 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
# See which clusters you have configured to connect to | |
kubectl config get-clusters | |
# Get info on the default cluster | |
kubectl cluster-info | |
# Get detailed info on the default cluster | |
kubectl cluster-info dump | |
# Some debugging commands |
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
# Run `kubectl config get-contexts` | |
# NOTE: Some of the names are elided as they're long | |
# OUTPUT: | |
CURRENT NAME CLUSTER AUTHINFO NAMESPACE | |
arn:aws:eks:...:cluster/eks-poc-dev arn:aws:eks:...:cluster/eks-poc-dev arn:aws:eks:...:cluster/eks-poc-dev | |
docker-desktop docker-desktop docker-desktop | |
* minikube minikube minikube default |
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
# Find out the contexts you've configured and which is the default | |
# (will be the one with the asterisk) | |
kubectl config get-contexts | |
# Get detailed info on a specified cluster | |
kubectl cluster-info dump --context=minikube | |
# Set cluster for a specific command | |
export CLUSTER=minikube | |
kubectl cluster-info dump --context=${CLUSTER} |
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
# This is the version for the Kubernetes API for the thing being | |
# defined here, i.e. the "kind" (in this case, a namespace). You | |
# might end up with different YAMLs deployed into the same K8s | |
# cluster that all use different apiVersion numbers. | |
apiVersion: v1 | |
# This is the type of "object" we're asking Kubernetes to install | |
# and keep healthy within the cluster. | |
kind: Namespace |
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
kubectl apply -f data-layer-namespace.yaml |
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
# Base64 encode the username "root" | |
$userBytes = [System.Text.Encoding]::UTF8.GetBytes("root"); [System.Convert]::ToBase64String($userBytes) | |
# Base64 encode the password "dbpassword1" | |
$userBytes = [System.Text.Encoding]::UTF8.GetBytes("dbpassword1"); [System.Convert]::ToBase64String($userBytes) |
OlderNewer