Error: kubernetes cluster unreachable: exec plugin: invalid apiversion "client.authentication.k8s.io/v1alpha1"
Hands on DevOps Coaching provided using AWS & Azure Cloud. please contact Coach AK at devops.coaching@gmail.com for more info.
Monday, October 30, 2023
Fix for Kubernetes Deployment Error using helm chart | Error: kubernetes cluster unreachable: exec plugin: invalid apiversion "client.authentication.k8s.io/v1alpha1"
Sunday, October 8, 2023
How to Reset Jenkins Admin password | Jenkins admin password unlock | Forgotten Jenkins Admin Password | How to Recover Jenkins admin password
Let's say you have forgotten Jenkins admin password. How to reset or retrieve admin password? Here below are the steps for resetting Jenkins admin password:
sudo vi /var/lib/jenkins/config.xml
you need to disable security to Jenkins by below change
2. Find this <useSecurity>true</useSecurity> and change it to <useSecurity>false</useSecurity>
3. Restart jenkins by below command:
sudo service jenkins restart
4. Access Jenkins now, click on Manage Jenkins, click on configure Global security
5. click on Enable security
7. click on apply and save
8. Now click on Manage users, click on admin, click on configure
How to Install JFrog Artifactory on Ubuntu | Setup JFrog Artifactory on Ubuntu | Install JFrog Artifactory 7.X on Ubuntu 22.0.4
Artifactory is one of the popular binary repository managers. It is Java based open source tool, used for storing build artifacts and docker images.
- Supports 27 different package types including helm charts, docker images regardless of tech stack.
- A single source of truth for all your binaries
- Integration with all CICD tools
- role based authorization with teams to manage artifacts
- you can create local, remote and virtual repositories
Artifactory can be integrated with many Continuous integration and Continuous delivery tools. Artifactory is mainly used by Ant, Maven and Gradle build tools. Let us see how to install Artifactory on Ubuntu 22.0.4 using Deb packages.
Pre-requisites:
- VM needs to have at least 4GB RAM, for AWS choose at least medium instance type.
- Default ports 8081 and 8082 needs to be opened. 8081 for Artifactory REST APIs. 8082 for everything else (UI, and all other product’s APIs).
sudo hostnamectl set-hostname Artifactory
Update Ubuntu OS
sudo apt update
Add JFrog Artifactory APT repository
Install Artifactory
sudo apt install jfrog-artifactory-oss -y
The above message should confirm Artifactory have been successfully installed.
Now let us start Artifactory service.
Start Artifactory
sudo systemctl start artifactory.service
Create symbolic link
sudo systemctl enable artifactory.service
Check whether Artifactory is running?
sudo systemctl status artifactory.service
sudo tail -f /var/opt/jfrog/artifactory/log/artifactory-service.log
Check if service is running locally on 8081 port
Go to browser and open public IP/DNS name along with port no:8081
http://your_public_dns_name:8081
admin/password
After Login, click on Get started.
How to Integrate Artifactory and Jenkins?
https://www.coachdevops.com/2020/04/integrate-artifactory-with-jenkins.html
You can watch the steps in details on our YouTube channel:
Wednesday, September 6, 2023
How to Automate Infra setup in Azure Cloud using Terraform and Azure DevOps | Automate App Service or Web App creation in Azure cloud using Terraform and Azure DevOps and store Terraform state remotely
Automating infrastructure setup in Azure Cloud using Terraform and Azure DevOps is a powerful approach to managing your infrastructure as code (IaC). This allows you to define and manage your Azure resources programmatically, version control your infrastructure configurations, and automate the deployment process.
We will be creating a Java based WebApp(app service) in Azure cloud using Terraform and automate the process using Azure Devops Pipelines.
- Azure subscription
- Azure DevOps organization and project
- Terraform Build & Release Tasks extension in Azure DevOps
- Terraform files created and stored in SCM for creating resources in Azure cloud
- Create a resource group first in Azure cloud
- Create storage account, container for Terraform to store state information in Azure cloud remotely.
- Create pipeline and add Terraform tasks
- Execute pipeline to deploy resources(App service plan and WebApp) in Azure cloud
- Verify resources are created in Azure cloud
- Confirm if the terraform.tfstate file is updated
Click on create
Monday, September 4, 2023
How to connect to Azure Virtual Machine from your local machine? | Connect to Azure VM from your local machine | Connect to Azure VM from your local machine
Let's learn how to connect to a Virtual machine running in Azure cloud from your local machine. Your local machine can be a Windows laptop or MacBook laptop.
1. Keys(for e.g., yourkey.pem) already downloaded in your local machine, preferably in downloads folder.
2. Azure VM is up and running
3. SSH client - for Windows laptop, you need to install an SSH client such as Git bash or putty. You can download Git from this URL - https://git-scm.com/downloads. For Apple laptop you need to download iTerm from here.
Steps to connect to your Azure VM instance:
1. Go to Azure console --> https://portal.azure.com
4. copy the values from step # 4
5. Go to your local machine, Open Git Bash in Windows
type below commands:
Now copy the value from Example in the above screen
and then execute below command to make sure the keys have only read permissions.
-
Let's learn how to connect to an EC2 instance running in AWS from your local machine. Your local machine can be Windows laptop or MacBoo...
-
We get these questions a lot from the teams we are coaching at my customer's work place How to create microservices? How to break...
-
Amazon Elastic Container Registry (ECR) is a fully managed container registry service provided by Amazon Web Services (AWS). It allows user...
















































