GithubHelp home page GithubHelp logo

evaluation-aks's Introduction

evaluation-aks

kubectl exec -it pod/mypod -- bash

kubectl exec -it pod/hrui-deployment-75c7dd4c44-9gxzv -n front-ns -- bash

apt update apt-get install dnsutils nslookup seq-cip-svc

Container ID: hrui-deployment-7966d5fcfc-pqg2b, Container IP: 10.244.3.5

kubectl get pods -n front-ns


ssh -i C:\Users\mohamed.ssh\redhat101_key.pem [email protected]

ssh -i C:\Users\mohamed.ssh\admin_key.pem [email protected]

ssh -i C:\Users\mohamed.ssh\master1_key.pem [email protected] ssh -i C:\Users\mohamed.ssh\master2_key.pem mtaha@ ssh -i C:\Users\mohamed.ssh\master3_key.pem mtaha@

ssh -i C:\Users\mohamed.ssh\worker1_key.pem [email protected] ssh -i C:\Users\mohamed.ssh\worker2_key.pem [email protected] ssh -i C:\Users\mohamed.ssh\worker3_key.pem [email protected]

Then you can join any number of worker nodes by running the following on each as root:

kubeadm join 172.18.0.4:6443 --token abcdef.0123456789abcdef --discovery-token-ca-cert-hash sha256:246177ba512bdd121d1bd562814f9b01afb405dfcaaf733629e01cefb23c50a2

bash k8sSecond.sh

git clone https://github.com/mtahaelmaghrabi/LFD259-LAB.git


Active namespace kubectl config set-context --current --namespace=front-ns

kubectl config set-context --current --namespace=policy-ns

http://localhost:8889/api/Home

kubectl config use-context docker-desktop

kubectl config use-context AKS-LAB

kubectl config get-contexts

10.240.0.6 10.240.0.4

10.0.230.195 30160

http://10.240.0.4:30160/api/Home

kubectl get all -o wide

kubectl get all -o wide -n front-ns 20.86.195.221

kubectl get all -o wide -n back-ns

kubectl set image deployment.apps/hrui-deployment hruiservice=mtahaelmaghrabi/hrmvc:latest -n front-ns

λ kubectl set image deployment.apps/eval-deployment evaluationcontainer=mtahaelmaghrabi/evaluation:latest -n back-ns

kubectl scale --replicas=0 deployment.apps/hrui-deployment -n front-ns kubectl scale --replicas=2 deployment.apps/hrui-deployment -n front-ns

kubectl scale --replicas=0 deployment.apps/eval-deployment -n back-ns kubectl scale --replicas=2 deployment.apps/eval-deployment -n back-ns

kubectl exec -it pod/hrui-deployment-788d55bff-bf68b -n front-ns -- bash apt update apt-get install dnsutils nslookup evaluation-clusterip-srv

//"EvaluationApiConnection": "http://evaluation-cip-svc.back-ns.svc.cluster.local" //"EvaluationApiConnection": "http://20.93.174.27/"

docker build -t mtahaelmaghrabi/hrmvc:latest . docker image push mtahaelmaghrabi/hrmvc:latest

docker run --name seq -d --restart unless-stopped -e ACCEPT_EULA=Y -p 5341:80 datalust/seq:latest

kubectl run Seq --image=datalust/seq:latest --env="ACCEPT_EULA=Y" --restart=unless-stopped http://seq-cip-svc.default.svc.cluster.local:5341 seq-cip-svc.default.svc.cluster.local

STORAGE_KEY=$(az storage account keys list --resource-group AKS-RG --account-name qpphrlogs --query "[0].value" -o tsv)

echo $STORAGE_KEY

kubectl create secret generic azure-secret --from-literal=azurestorageaccountname=qppaksfileshare --from-literal=azurestorageaccountkey=**********

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.