--- title: Brief 6 executive summary description: View the slide with "Slide Mode". slideOptions: theme: black transition: 'concave' backgroundTransition: 'convex' transitionSpeed: 'default' parallaxBackgroundImage: 'https://i.imgur.com/yGbBtub.jpg' parallaxBackgroundHorizontal: 500 parallaxBackgroundVertical: 500 --- <!-- .slide: data-background="https://cncf-branding.netlify.app/img/projects/kubernetes/stacked/black/kubernetes-stacked-black.png" data-background-size="1500px" --> # Brief 6: executive summary [github du brief](https://github.com/simplon-gabrielsarais/brief_6) [résultat](https://rajaxpression.distributeur-de-pain.best/) [présentation](https://hackmd.io/p/eYNLlBf6R9iAoI-p6g2iYA) --- ## Objectifs ---- - utiliser kubernetes et aks - déployer application de vote - BDD redis - stockage persistant pour la BDD - zone DNS - application gateway via ingress ---- <section data-visibility="hidden"> ## installation de kubctl - sudo `apt-get install -y kubect` - création d'un groupe de ressource azure (dans mon cas "gabriel_brief6") - création d'un cluster aks (dans mon cas "kuber") `az aks create -g gabriel_brief6 -n kuber --ssh-key-value /chemin/de/la/clé --node-count 4 --enable-managed-identity -a ingress-appgw --appgw-name myApplicationGateway --appgw-subnet-cidr "10.225.0.0/16"` - connexion de kubectl et aks `az aks get-credentials --resource-group gabriel_brief6 --name kuber` </section> --- ## création du certificat SSL via OVH et certbot cercificat -> K8s secrets -> ingress [rajaxpression.distributeur-de-pain.best](https://rajaxpression.distributeur-de-pain.best/) --- ## ressources azure - azure kubernetes service - 4 nodes - ingress application gateway --- ## création des templates k8s ---- - Secrets - mot de passe pour redis - certificat TLS - clé privée TLS - storage - storageclass - PersistentVolumeClaim - redis - deployment redis - clusterIP redis ---- - ingress - ingress azure application gateway - voting app - deployment voteapp - clusterIP voteapp - HorizontalPodAutoscaler --- ## déploiement du cluster - `kubectl apply -f chemin/du/dossier` --- ## test de charge Horizontal pod autoscaler permet en réponse à une monté en charge des pods présents d'en déployer jusqu'à 8. --- ## explication k8s - open-source - orchestration de conteneurs - configuration déclarative - gestion d'applications à grandes échelles - déploiement de pods et de services sur des nodes - yaml/Json -> contrôleur -> nodes --- <!-- .slide: data-background="https://cncf-branding.netlify.app/img/projects/kubernetes/stacked/black/kubernetes-stacked-black.png" data-background-size="1500px" --> ### avez-vous des questions?
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up