GithubHelp home page GithubHelp logo

infra's Introduction

Infra repository

Azure https://docs.microsoft.com/ru-ru/azure/developer/terraform/create-k8s-cluster-with-tf-and-aks

Для создания аутентификации Service Principal необходимо:

az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/SUBSCRIPTION_ID"

Для инициализации backend:

terraform init \
    -backend-config="storage_account_name=****************" \
    -backend-config="container_name=**********" \
    -backend-config="key=***************" \
    -backend-config="access_key=*************************"

echo "$(terraform output kube_config)" > ./azurek8s export KUBECONFIG=./azurek8s kubectl get nodes

k8s Web UI

 az aks browse --resource-group myResourceGroup --name myAKSCluster

ArgoCD

Install

kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'

argocd proj create service -d https://kubernetes.default.svc,prod -s https://github.com/KKisilevsky/infra.git

argocd proj add-destination redis https://kubernetes.default.svc stage

argocd proj allow-cluster-resource redis "" ""

https://www.browserling.com/tools/bcrypt

kubectl -n argocd patch secret argocd-secret \
  -p '{"stringData": {
    "admin.password": "$2a$10$rRyBsGSHK6.uc8fntPwVIuLVHgsAhAX7TcdrqW/RADU0uh7CaChLa",
    "admin.passwordMtime": "'$(date +%FT%T%Z)'"
  }}'

argocd login SERVER:PORT

Kubernetes

kubectl create secret generic mssql --from-literal=SA_PASSWORD="*******" -n dev

kubectl port-forward svc/platform -n dev 8070:80

kubectl get nodes -o wide

kubectl exec -i -t aks-ssh-7649d749d-k9sc7 -- /bin/bash

ssh -i id_rsa [email protected]

infra's People

Contributors

omnidark avatar

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.