Many times we have the requirement to use an existing domain with our Azure Active Directory. Following step by step guide will help you to configure your Azure Active Directory service for use with a custom domain name registered with an external domain registrar.
Step 1: Login to Azure Portal
Step 2: Select Azure Active Directory service for your Azure Account
Step 3: Select Custom domain names
Step 4: Click Add custom domain
Step5: Enter your domain name
Step 6: Click Add domain
Step 7: Now, in order to use the domain with your Azure AD, create a new TXT…
Using minikube to create a single node cluster
minikube version
minikube start
kubectl version
kubectl cluster-info
kubectl get nodes
kubectl create deployment kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1
kubectl get deployments
kubectl get podskubectl get pods -o wide
kubectl describe pods
kubectl logs $POD_NAME
kubectl exec $POD_NAME env
kubectl exec -ti $POD_NAME bash
To close your container connection type exit
.
kubectl get services
kubectl expose deployment/kubernetes-bootcamp --type="NodePort" --port 8080
kubectl describe services/kubernetes-bootcamp
curl $(minikube ip):$NODE_PORT
kubectl get pods -l run=kubernetes-bootcamp
kubectl get services -l run=kubernetes-bootcamp
kubectl label pod $POD_NAME app=v1
kubectl delete service -l run=kubernetes-bootcamp
kubectl scale deployments/kubernetes-bootcamp --replicas=4
kubectl scale deployments/kubernetes-bootcamp --replicas=2
…
To fix HNS Related errors, Clean Up Windows Server 2016 Host networking configuration
Run following script provide by Microsoft in PowerShell as admin to cleanup your Windows Host (Read the instructions carefully before running this script provided by Microsoft)
(Optionally) Clean Up your host manually -
Run following commands on an administrator PowerShell console :
# MAKE SURE HOST IS NOT IN SWARM MODE
docker swarm leave --force# removes all container networks on the system.
docker network prune -f# removes all containers on the system.
docker container prune -f# stop docker service
net stop docker# clean…
Practice these commands yourself, get your hands dirty check out this Hands On YouTube video demonstrating these commands -
docker version
2.Check the detailed information of Docker installed
docker info
3. Search an image in Docker hub
docker search <<imagename>> | head -20docker search ubuntu | head -20
# will search ubuntu images in the dockerhub and limit the search result to only 20
Note: head command works on bash terminal, for PowerShell terminal in windows use select -first 10
docker search ubuntu | select -first 10
4. Pull and Image from Docker hub
docker…
Digital Enthusiast