Multiple Ways to Create Kubernetes Secrets

Multiple Ways to Create Kubernetes Secrets

The installation in the above-mentioned article uses the following secrets on the K8s pod: 1, github-repo-cred to access the GitHub repo; used as an environment variable or file mount 2, gitlab-registry-cred to push Docker images to GitLab Container Registry (CR); used as an environment variable or file mount 3, gitlab-pull-cred to allow K8s to pull images from GitLab CR; used with imagePullSecrets in the pod definition or added to the service account 4, kubectl-config to perform kubectl operations within the container; used as file mount

This article describes how to create Kubernetes (K8s) secrets as part of an installation guide to the Machine Learning Operations (MLOps) pipeline detailed in my post “MLOps on Kubernetes with Docker Desktop”.

Photo by Kristina Flour on Unsplash

The installation in the above-mentioned article uses the following secrets on the K8s pod:

  1. github-repo-cred to access the GitHub repo; used as an environment variable or file mount
  2. gitlab-registry-cred to push Docker images to GitLab Container Registry (CR); used as an environment variable or file mount
  3. gitlab-pull-cred to allow K8s to pull images from GitLab CR; used with imagePullSecrets in the pod definition or added to the service account
  4. kubectl-config to perform _kubectl _operations within the container; used as file mount

In the following, I detail how to create each of them.

1.**github-repo-cred**holds GitHub credentials and is used to clone a repository from inside the container.

secrets machine-learning docker mlops kubernetes

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

50+ Useful Kubernetes Tools for 2020 - Part 2

Our original Kubernetes tool list was so popular that we've curated another great list of tools to help you improve your functionality with the platform.

Hire Machine Learning Developers in India

We supply you with world class machine learning experts / ML Developers with years of domain experience who can add more value to your business.

Applications of machine learning in different industry domains

We supply you with world class machine learning experts / ML Developers with years of domain experience who can add more value to your business.

Hire Machine Learning Developer | Hire ML Experts in India

We supply you with world class machine learning experts / ML Developers with years of domain experience who can add more value to your business.

Using Docker and Kubernetes to Simplify Machine Learning

Using Docker and Kubernetes to Simplify Machine Learning: Managing the hardware, drivers, libraries and packages that make up a ML development environment can be hard. In this talk, I will introduce how Docker can be used to simplify the process of setting up a local ML development environment, and how we can use Kubernetes and Kubeflow to scale that standardised environment to provide scalable, web-based Jupyter environments for a large number of users, that can be served from both public cloud providers and from on-premise clusters.