Code Monkey home page Code Monkey logo

upylab-helm-depot's Introduction

Deploying UpyLab with Helm

To install a Kubernetes cluster on Google Cloud Platform (GCP) and deploy applications using Helm releases, you can follow these general steps:

  1. Create a Google Cloud Account: If you haven't already, sign up for a Google Cloud Platform account at Google Cloud.

  2. Install and Set Up Google Cloud SDK: Install the Google Cloud SDK, which provides the command-line interface for interacting with GCP services. Follow the instructions provided in the Google Cloud SDK documentation.

  3. Set Up Billing and Create a Project: Ensure that billing is enabled for your Google Cloud account. Create a new project for your Kubernetes cluster.

  4. Create a Kubernetes Cluster: Use Google Kubernetes Engine (GKE) to create a Kubernetes cluster. You can do this through the Google Cloud interface by clicking on create on the cluster tab. Select the appropriate location for your cluster.

  5. Connect to the Cluster : After the cluster is created, you need to connect to it using kubectl, the Kubernetes command-line tool.

    gcloud container clusters get-credentials <my-cluster> --region <my-region>
  6. Create Static IP :

    gcloud compute addresses create static-ip --global
    gcloud compute addresses describe static-ip --global
  7. Edit you DNS : Configure the DNS records for your domains to point to your IP address. To find the static IP address you created, run the following command:

    gcloud compute addresses describe ADDRESS_NAME --global
  8. Add the Helm Repository : Add the Helm repository where your Helm chart is hosted.

    helm repo add <repo-name> https://bperraud.github.io/upylab-helm-depot/
  9. Edit configuration file : Edit the values.yaml file for your specific needs :

    helm show values <repo-name>/upylab > custom-values.yaml
    nano custom-values.yaml
  10. Deploy the Helm Release : Now, you can deploy your Helm release to the Kubernetes cluster.

    helm install <release-name> <repo-name>/upylab -f custom-values.yaml
  11. Verify Deployment : Check that your application is deployed and running correctly:

    kubectl get all
    
  12. Wait for the Google-managed certificate to finish provisioning for the https access. This might take up to 60 minutes. You can check the status of the certificate using the following command:

    kubectl describe managedcertificate managed-cert
    

gcloud container clusters update [CLUSTER_NAME]
--update-addons=GcpFilestoreCsiDriver=ENABLED
--region=[REGION]

API: Kubernetes Engine API Certificate Manager API HELM API ?

dashboard :

kubectl proxy

Then open the following URL in your browser:

http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

To get the admin user token, run:

kubectl -n kubernetes-dashboard create token admin-user

secret :

Generate a new CSRF token

CSRF_TOKEN=$(openssl rand -hex 32)

Create the secret

kubectl create secret generic kubernetes-dashboard-csrf -n kubernetes-dashboard --from-literal=csrf-token="$CSRF_TOKEN"

to activate API :

get credentials : gcloud auth login

activate api : gcloud services enable certificatemanager.googleapis.com --project=YOUR_PROJECT_ID

firewall : gcloud compute firewall-rules create allow-kubelet --allow=tcp:10250 --network=default update tags instance : gcloud compute instances add-tags gke-standard-lab-back-end-1c4719af-wprt --tags production --zone europe-west1-b

gcloud container clusters get-credentials standard-upylab --region europe-west1-b

kubectl set image deployment/django-upylab django-upylab=ryukenin/upylab-pylab:latest

upylab-helm-depot's People

Contributors

bperraud avatar

Watchers

 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.