├── AWS-Account-Creation.md ├── AWS-CLI-Installation.md ├── AWS-EKS-K8S.md ├── AWS-vm-eip-creation.md ├── Ansible-Installation-Ubuntu.md ├── Chocolatey.md ├── Datree-Install.md ├── Docker-installation-on-Ubuntu.md ├── GCP-vm-creation.md ├── Git-Installation.md ├── Helm-Installation.md ├── Httpd-installation-RedHat.md ├── Java-11-Installation-Ubuntu.md ├── Jenkins-Installation.md ├── Jfrog-Account-Creation.md ├── Maven-installation-ubuntu.md ├── Nexus-installation.md ├── Python-Install.md ├── README.md ├── SSH Keys for Bitbucket Authentication.md ├── SonarQube-Install-through-Docker-ubuntu.md ├── Terraform-Installation.md ├── Terragrunt-Installation.md ├── Tomcat-Installation-RedHat.md ├── VisualStudioCode.md ├── Windows-to-kubeadm-cluster-connection.md ├── docker-installation-ubuntu-script.sh ├── kubeadm-on-Gcp-ubuntu.md └── kubeconfig /AWS-Account-Creation.md: -------------------------------------------------------------------------------- 1 | ## AWS FREE-TIER ACCOUNT CREATION 2 | 3 | Browse - https://aws.amazon.com/ 4 | 5 | ``` 6 | Click on - (Create an Aws Account) 7 | ``` 8 | ### Now you can see Sign Up for AWS 9 | 10 | ``` 11 | Root User email address - pavan@gmail.com 12 | Aws Account Name - Pavan 13 | Click on (verify Email Address) 14 | ``` 15 | 16 | ### Follow Below steps 17 | 18 | - Next you will be asked to fill up your contact details such contact number, country, address and so on. You should fill them up properly because your contact number is important for further steps. 19 | - Note that unless you are creating an account for your organization, it is better to select Account Type as Personal. 20 | - After filling up the details, click on the Create Account and Continue button at the bottom of the form. 21 | - You need to enter your Credit Card details. 22 | - However, don’t worry. This will not charge anything from your account (except for a verification amount that will be refunded back). But this is required in case you exceed the free-tier limit available with a new AWS Account. 23 | - After entering the details, click on Secure Submit button. It might take a while to process the request depending on your bank/credit card company servers. 24 | - Once the credit card details are confirmed, you will need to complete the Identity Confirmation step. 25 | - Basically, you need to select a mode to confirm your identity. It could be a Text Message or a Voice call to your valid phone number. 26 | - we need to select the plan for our AWS Account. 27 | - Unless you are planning to do some professional development, i would suggest selecting the Basic Plan. It is Free of cost and great for learning purposes. 28 | - Once you select your plan, you will see the below Welcome screen. From here on, you can Sign in to your AWS Console. Here, you also have the option of personalizing your experience of using Amazon Web Services. 29 | - However, you can also simply continue by clicking Sign in to the Console. After this, you will be again presented with the sign in screen where you can now use your credentials to login. 30 | ### Check ur email AWS will send email once its appproved then u can work with AWS Services. 31 | 32 | 33 | ## Billing 34 | - Step 1 - Click on Acount Name u can see (MY BILLING DASHBOARD) 35 | - Step 2 - Click (BILLING PREFERENCES) 36 | - Step 3 - Select (Receive free tier usage alerts -> Give ur email which u registered) 37 | 38 | #### Payment methods 39 | - Dont enable (enable recruiting payment for default payment methods) 40 | 41 | ## Service Quotas 42 | 43 | #### For every service there is limit to create quotas 44 | - Click on ur profile name (service quotas) 45 | ##### If you want to create more than quotas which they assigned u need to create a case to aws 46 | 47 | 48 | #### Support Center 49 | - Click on (?) 50 | - Click on (support center) 51 | - Click on (create case){looking for service limit increase} 52 | - Click (service limit increase) 53 | ##### You provide the details 54 | - Limit type (ec2 instance) 55 | - Choose the (region) 56 | - Choose the instance type (p instance) -> New limit value (500) 57 | ##### Likewise you have to request 58 | -------------------------------------------------------------------------------- /AWS-CLI-Installation.md: -------------------------------------------------------------------------------- 1 | ## Pre requisite - You should have an aws account created and ready 2 | 3 | ### Generate Security Credentials using AWS Management Console 4 | - Go to Services -> IAM -> Users -> Add-user (if needed u can use existing) "Your-Admin-User" -> select the user -> Security Credentials -> Create Access Key 5 | 6 | 7 | - Browse - https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html 8 | 9 | 10 | Configure AWS credentials using SSH Terminal on your local desktop 11 | 12 | ## Install AWS CLI V2 13 | 14 | ``` 15 | curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg" 16 | ``` 17 | ``` 18 | sudo installer -pkg AWSCLIV2.pkg -target / 19 | ``` 20 | ``` 21 | aws --version 22 | ``` 23 | 24 | 25 | ## Configure AWS Credentials in command line 26 | ``` 27 | aws configure 28 | ``` 29 | ``` 30 | AWS Access Key ID [None]: AKIASUF7DEFKSIAWM 31 | ``` 32 | ``` 33 | AWS Secret Access Key [None]: WL9G9Tl8lGm7w9t7B3NEDny1+w3N/K5F3HW/ 34 | ``` 35 | ``` 36 | Default region name [None]: us-east-1 37 | ``` 38 | ``` 39 | Default output format [None]: json 40 | ``` 41 | 42 | 43 | 44 | ## Verify the AWS Credentials Profile 45 | 46 | ``` 47 | cat $HOME/.aws/credentials 48 | ``` 49 | 50 | - go to IAM -> User -> security credentials 51 | 52 | ### u can see accesscode at the end last 3 same as in the .aws/credentials 53 | -------------------------------------------------------------------------------- /AWS-EKS-K8S.md: -------------------------------------------------------------------------------- 1 | # EKS CLUSTER SETUP 2 | 3 | #### Create a server in AWS management console 4 | - Search (EC2) -> Click (Launch Instnace) 5 | - Choose an Amazon Macine Image (Amazon Linux 2 AMI) 6 | - Choose An Instance Type (t2.micro) 7 | - Configure Instance Details 8 | - Add Storage 9 | - Add tags (name eksctl_bootstrap) 10 | - Configure Security Group 11 | - Create a Key Pair 12 | - Launch the server 13 | - Login to the server using Mobaxterm (Remote Host -> Give IP(Public), Use Private Key (Pem file) -> Clisck (Ok) 14 | - Connect to server using mobaxterm/putty/session manager 15 | - Login as: ec2-user 16 | - switch to root user 17 | ``` 18 | sudo su 19 | ``` 20 | Check AWS Version 21 | ``` 22 | aws --version 23 | ``` 24 | By default u can able to see aws cli as we r using amazon linux if u want to do for RedHat follow the below 25 | 26 | ### Install and configure AWS CLI 27 | 28 | ``` 29 | curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" 30 | unzip awscliv2.zip 31 | sudo ./aws/install 32 | ``` 33 | 34 | ### Generate Access key & Secret key 35 | - Go to Services -> IAM -> Users -> Add-user (if needed u can use existing) "Your-Admin-User" -> select the user -> Security Credentials -> Create Access Key 36 | 37 | Execute this below each commands in clii 38 | ``` 39 | aws configure 40 | ``` 41 | ``` 42 | AWS Access Key ID [None]: 43 | AWS Secret Access Key [None]: 44 | Default region name [None]: us-east-1 45 | Default output format [None]: json 46 | ``` 47 | If u can able to see vpc's then perfect if not it should get administrator access in IAM (AdministratorAccess) 48 | ``` 49 | aws ec2 describe-vpcs 50 | ``` 51 | If u can able to see vpc's then perfect if not it should get administrator access in IAM (AdministratorAccess) 52 | 53 | ### Set Up kubectl 54 | 55 | - Reference: kubectl - https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html 56 | ``` 57 | curl -o kubectl https://s3.us-west-2.amazonaws.com/amazon-eks/1.22.6/2022-03-09/bin/linux/amd64/kubectl 58 | ``` 59 | Execution Permissions 60 | ``` 61 | chmod +x ./kubectl 62 | ``` 63 | Move kubectl to Usr local bin 64 | ``` 65 | mv ./kubectl /usr/local/bin 66 | ``` 67 | Check Version 68 | ``` 69 | kubectl version --short --client 70 | ``` 71 | ### Create an IAM Role and attache it to EC2 instance 72 | 73 | - AWS Console -> Search (IAM) -> Select (Roles) -> Click (Create role) -> we are attaching to ec2 so select (EC2) Click (Next:Permissions) 74 | - Filter Policies (IAM Full Access) Select (IAM Full Access), 75 | - Filter Policies (Cloud Formation) Select (Cloud Formation Full Access) 76 | - Filter Policies (VPC) Select (VPC Full Access) 77 | - Filter Policies (EC2) Select (EC2 Full Access) 78 | - Filter Policies (Administration) Select (Administrator Access) 79 | - Click (Next : Tags) -> Click (Next : Review) 80 | - Role Name (bootstrap_role) -> Click (Create Role) 81 | 82 | 83 | 84 | ### Now Attach It To Ec2 Instance 85 | 86 | - AWS Console -> Search (EC2) -> Select EC2 - Instance (eksctl_bootstrap) -> Select (Actions) -> Click (Security) -> Click (Modify IAM Role) 87 | - Select (bootstrap_role) -> Click (Save) 88 | 89 | ``` 90 | aws ec2 describe-vpcs 91 | ``` 92 | 93 | ### Set Up eksctl 94 | 95 | - Reference: eksctl - https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html#installing-eksctl 96 | 97 | ``` 98 | curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp 99 | ``` 100 | ``` 101 | sudo mv /tmp/eksctl /usr/local/bin 102 | ``` 103 | ``` 104 | eksctl version 105 | ``` 106 | 107 | ### Create EKS Cluster using eksctl 108 | 109 | It will take 15 minutes to 20 minutues. execute below command at together 110 | 111 | ``` 112 | eksctl create cluster --name=eksdemo1 \ 113 | --region=us-east-1 \ 114 | --zones=us-east-1a,us-east-1b \ 115 | --without-nodegroup 116 | 117 | ``` 118 | 119 | 120 | Get List of clusters 121 | 122 | ``` 123 | eksctl get cluster 124 | ``` 125 | ### Create & Associate IAM OIDC Provider for our EKS Cluster 126 | If u want to use everything effectively following in order is the best execute below 127 | ``` 128 | eksctl utils associate-iam-oidc-provider \ 129 | --region us-east-1 \ 130 | --cluster eksdemo1 \ 131 | --approve 132 | ``` 133 | 134 | 135 | ### Create EC2 Keypair 136 | 137 | - Create a new EC2 Keypair with name as kube-demo #better u select pem 138 | 139 | This keypair we will use it when creating the EKS NodeGroup. 140 | This will help us to login to the EKS Worker Nodes using Terminal. 141 | 142 | ### Create Node Group with additional Add-Ons in Public Subnets 143 | Create Public Node Group 144 | 145 | what all we create 146 | ``` 147 | eksctl create --help 148 | ``` 149 | what all options available for node group we can see here 150 | ``` 151 | eksctl create nodegroup --help 152 | ``` 153 | It will take 3 to 5 minutes. It will create t3.medium nodes with minimum 2 and maximum 4 154 | ``` 155 | eksctl create nodegroup --cluster=eksdemo1 \ 156 | --region=us-east-1 \ 157 | --name=eksdemo1-ng-public1 \ 158 | --node-type=t3.medium \ 159 | --nodes=2 \ 160 | --nodes-min=2 \ 161 | --nodes-max=4 \ 162 | --node-volume-size=20 \ 163 | --ssh-access \ 164 | --ssh-public-key=kube-demo \ 165 | --managed \ 166 | --asg-access \ 167 | --external-dns-access \ 168 | --full-ecr-access \ 169 | --appmesh-access \ 170 | --alb-ingress-access 171 | ``` 172 | 173 | Sometimes it will fail and it will recreate again 174 | List of nodes available 175 | ``` 176 | kubectl get nodes -o wide 177 | ``` 178 | - Take the pubic ip of created t3.medium nodes and do ssh with kube-demo as a pem file 179 | 180 | ## Delete EKS Cluster 181 | 182 | ### Delete Node Groups 183 | ``` 184 | # List EKS Clusters 185 | eksctl get clusters 186 | 187 | # Capture Node Group name 188 | eksctl get nodegroup --cluster=eksdemo1 189 | 190 | # Delete Node Group 191 | eksctl delete nodegroup --cluster=eksdemo1 --name=eksdemo1-ng-public1 192 | ``` 193 | 194 | ## Delete Cluster 195 | ``` 196 | eksctl delete cluster eksdemo1 197 | ``` 198 | -------------------------------------------------------------------------------- /AWS-vm-eip-creation.md: -------------------------------------------------------------------------------- 1 | # Create Virtual Machine in AWS Cloud 2 | 3 | Go to AWS Management Console -> Ec2 -> Launch Instance 4 | - Step 1: Choose an Amazon Machine Image (AMI) -> [Amazon Linux 2 AMI (HVM) - Kernel 5.10, SSD Volume Type ] 5 | - Step 2: Choose an Instance Type -> [t2.micro] 6 | - Step 3: Configure Instance Details -> Number Of Instances [1] (usually we deploy in custom vpc) 7 | - Step 4: Add Storage -> [do not change any] 8 | - Step 5: Add Tags -> Name Server 9 | - Step 6: Configure Security Group (port 22 should be opened) #by default its opened in AWS 10 | - Step 7: Key Pair - Create a key pair (Name -> mypersonalkey, Select (.pem), click (Download)) # Note: Don't loose pem file 11 | - Step 8: Review And Launch 12 | ### Connect to server using session manager in the AWS 13 | - login: ec2 - user 14 | - sudo su - 15 | ### Connect to server using mobaxterm 16 | - Click (Mobaxterm) 17 | - Click (Session) 18 | - Click (SSH) 19 | - Remote Host - Give IP(Public) 20 | - Click (Advanced SSH settings 21 | - Select (use private key - Give(Pem file)) 22 | - Click (ok) 23 | - login: ec2 - user 24 | 25 | ### Elastic IP 26 | Elastic IP address is a static IPv4 address designed for dynamic cloud computing. An Elastic IP address is allocated to your AWS account, and is yours until you release it. 27 | #### If you want to allocate Elastic IP for entire region its billable 28 | - Step 1 - You can see under network and security (or) Search (Elastic Ip) in AWS management console 29 | - Step 1.1 - click (Elastic Ip) 30 | - Step 2 - click on (allocate elastic ip address) 31 | - Step 3 - Let all be default, click (allocate). Now u have got an elastic ip 32 | - Step 4 - click on (actions -> associate ec2 instance -> select which ec2 instance u need to associate) 33 | #### If you don't want to assign Elastic IP to the server 34 | - Click (elastic ip) -> (actions -> deassociate elastic -> diassociate) -> (actions -> release elastic ip address) 35 | 36 | 37 | #### AWS Pricing Calculator 38 | Lets you explore AWS services, and create an estimate for the cost of your use cases on AWS. 39 | 40 | - Step 1 - search (Aws Pricing calculator) in Browser/google (or) https://calculator.aws/#/ 41 | - Step 2 - click (Create estimate) 42 | - Step 3 - To estimate the cost 43 | ##### Example: Search (EC2) -> click (Configure) -> (region - N virginia) -> operating system (linux) -> instance type (search instances by name (t2.micro) u can see on demand hourly cost -> utilixzation (24/7 for 30 days (100)) -> pricing strategy (ondemand ec2 instance) -> EBS (30) -> you can see total monthly cost. 44 | Its like a pay as you go model. Storage is chargable even u stop server (cpu, memory not charged) 45 | -------------------------------------------------------------------------------- /Ansible-Installation-Ubuntu.md: -------------------------------------------------------------------------------- 1 | ## Ansible Installation 2 | 3 | ``` 4 | sudo apt-add-repository ppa:ansible/ansible 5 | ``` 6 | ``` 7 | sudo apt-get update 8 | ``` 9 | ``` 10 | sudo apt-get install ansible 11 | ``` 12 | Reference 13 | - https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-ubuntu-18-04 14 | - https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-ubuntu-20-04 15 | -------------------------------------------------------------------------------- /Chocolatey.md: -------------------------------------------------------------------------------- 1 | ## Installing Chocolatey on Windows 2 | 3 | Chocolatey is a package manager for Windows that simplifies the process of installing, upgrading, and managing software. Follow these steps to install Chocolatey on your Windows machine: 4 | 5 | 1. **Open PowerShell as Administrator**: Right-click on the Start menu and select "Windows PowerShell (Admin)". 6 | 7 | 2. **Enable Execution of PowerShell Scripts**: Run the following command in the PowerShell window: 8 | ```powershell 9 | Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) 10 | 11 | 3. **Run Chocolatey Installation Command**: Copy and paste the following command into the PowerShell window and press Enter. 12 | ```powershell 13 | Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) 14 | 4. **Verify Installation**: After installation completes, you can verify if Chocolatey is installed properly by running: 15 | ```powershell 16 | choco 17 | 18 | ## Update Chocolatey: 19 | It's a good practice to update Chocolatey to the latest version after installation. You can do this by running 20 | ```powershell 21 | choco upgrade chocolatey 22 | 23 | -------------------------------------------------------------------------------- /Datree-Install.md: -------------------------------------------------------------------------------- 1 | Make sure check it before helm u unzip or not if not plugins wont work properly 2 | 3 | ``` 4 | apt-get install unzip 5 | ``` 6 | 7 | Browse - https://www.datree.io/ 8 | 9 | ``` 10 | click (docs) 11 | Click (integration) 12 | click (helm plugin) 13 | ``` 14 | 15 | ### Installation 16 | ``` 17 | helm plugin install https://github.com/datreeio/helm-datree 18 | ``` 19 | 20 | Helm plugins are not supported on Windows OS 21 | 22 | -------------------------------------------------------------------------------- /Docker-installation-on-Ubuntu.md: -------------------------------------------------------------------------------- 1 | ## Docker installation in ubuntu 2 | 3 | ``` 4 | sudo su 5 | ``` 6 | ``` 7 | sudo apt-get update 8 | ``` 9 | ``` 10 | sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common 11 | ``` 12 | ``` 13 | curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 14 | ``` 15 | ``` 16 | sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" 17 | ``` 18 | ``` 19 | sudo apt-key fingerprint 0EBFCD88 20 | ``` 21 | ``` 22 | sudo apt-get update 23 | ``` 24 | 25 | ``` 26 | sudo apt-get install docker-ce docker-ce-cli containerd.io 27 | ``` 28 | once you installed check 29 | 30 | ``` 31 | docker info 32 | ``` 33 | 34 | 35 | 36 | for more details refer https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1 37 | 38 | If you face below problem which is same as mentione below the you can refer this link 39 | 40 | https://stackoverflow.com/questions/25183063/docker-on-rhel-6-cgroup-mounting-failing 41 | 42 | Starting cgconfig service: Error: cannot create directory /cgroup/blkio 43 | /sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup, operation not allowed 44 | Failed to parse /etc/cgconfig.conf [FAILED] 45 | 46 | After doing this you need run all the commands with sudo concatenated to it. 47 | 48 | - To solve this issue we need to add current user to docker group , to do the same follow the below commands 49 | sudo groupadd docker 50 | sudo usermod -aG docker $USER ( got a error while runing docker commands with the current user) 51 | sudo usermod -aG docker jenkins (got a error while runing docker commands with jenkins user ) 52 | getent group (to check the list of users in particular group) 53 | sudo passwd jenkins to change password of jenkins user 54 | 55 | - even after following the above commands if you face any issue in ruuning commands then run below command 56 | chmod 777 /var/run/docker.sock 57 | -------------------------------------------------------------------------------- /GCP-vm-creation.md: -------------------------------------------------------------------------------- 1 | ## Instance Creation in Google Cloud Platform 2 | 3 | - Select (My-First-Project) #u can create ur own project 4 | - Select (3 lines next to google compute engine) 5 | - Select (compute engine) 6 | - Select (vm instances) 7 | #### Enable it if its first time 8 | - Click (Create Instance) 9 | - Select (New VM instance) 10 | - Name (testinstance) 11 | - Select - Boot Disc (Ubuntu) 12 | #### Access scopes 13 | - Select (Allow full access to all Cloud APIs) 14 | #### Firewall 15 | - Select (Allow HTTP Traffic) 16 | - Select (Allow HTTPS Traffic) 17 | - Click (Create) 18 | #### Now instance is running 19 | - Click (ssh Button) 20 | #### Now u can able to connect 21 | -------------------------------------------------------------------------------- /Git-Installation.md: -------------------------------------------------------------------------------- 1 | 2 | ## Git installation in ubuntu 3 | 4 | ``` 5 | apt-get update -y 6 | ``` 7 | ``` 8 | apt-get install git -y 9 | ``` 10 | To verify Git version 11 | 12 | ``` 13 | git --version 14 | ``` 15 | ### Execute below commands only once after installing git 16 | 17 | ``` 18 | git config --global user.name "pavan" 19 | ``` 20 | ``` 21 | git config --global user.email "pavan@gmail.com" 22 | ``` 23 | 24 | Check the configurations u given weather its matching or not 25 | ``` 26 | git config --global --list 27 | ``` 28 | 29 | 30 | 31 | ## Git installation in Windows 32 | 33 | Browse - https://git-scm.com/download/win 34 | 35 | - Select (64-bit Git for Windows Setup.) 36 | 37 | - Once it is downloaded click on exe -> click on next, next(until it shows install), install -> select only (launch the gitbash) select (finish) 38 | 39 | ### Execute below commands only once after installing git 40 | 41 | 42 | ``` 43 | git config --global user.name "pavan" 44 | ``` 45 | ``` 46 | git config --global user.email "pavan@gmail.com" 47 | ``` 48 | 49 | Check the configurations u given weather its matching or not 50 | ``` 51 | git config --global --list 52 | ``` 53 | 54 | -------------------------------------------------------------------------------- /Helm-Installation.md: -------------------------------------------------------------------------------- 1 | ## Helm Installation 2 | ``` 3 | curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 4 | ``` 5 | ``` 6 | chmod 700 get_helm.sh 7 | ``` 8 | ``` 9 | ./get_helm.sh 10 | ``` 11 | 12 | #### Check Version 13 | ``` 14 | helm version 15 | ``` 16 | ## Uninstall Helm 17 | To see which folder its installed 18 | ``` 19 | which helm 20 | ``` 21 | ``` 22 | rm -rf /usr/local/bin/helm 23 | ``` 24 | -------------------------------------------------------------------------------- /Httpd-installation-RedHat.md: -------------------------------------------------------------------------------- 1 | ``` 2 | sudo su - 3 | ``` 4 | ### Install Httpd 5 | 6 | ``` 7 | yum install httpd -y 8 | ``` 9 | 10 | Start httpd service 11 | 12 | ``` 13 | service httpd start 14 | ``` 15 | 16 | Check the status 17 | 18 | ``` 19 | service httpd status 20 | ``` 21 | 22 | Go to Browser access 23 | ``` 24 | http://serverip:80 25 | ``` 26 | -------------------------------------------------------------------------------- /Java-11-Installation-Ubuntu.md: -------------------------------------------------------------------------------- 1 | ## Install Java 11 2 | 3 | ``` 4 | sudo su - 5 | ``` 6 | ``` 7 | sudo apt update 8 | ``` 9 | ``` 10 | sudo apt install openjdk-11-jre 11 | ``` 12 | 13 | Check Java version 14 | ``` 15 | java -version 16 | ``` 17 | -------------------------------------------------------------------------------- /Jenkins-Installation.md: -------------------------------------------------------------------------------- 1 | ## Install Java 11 2 | ``` 3 | sudo su - 4 | ``` 5 | ``` 6 | sudo apt update 7 | ``` 8 | ``` 9 | sudo apt install openjdk-11-jre 10 | ``` 11 | ``` 12 | java -version 13 | ``` 14 | 15 | ## Install Jenkins 16 | 17 | To download the particular version - https://updates.jenkins-ci.org/download/war/ 18 | - Iam installing 2.303.3 19 | 20 | ``` 21 | wget https://updates.jenkins-ci.org/download/war/2.303.3/jenkins.war 22 | ``` 23 | 24 | Run in backgroud 25 | 26 | ``` 27 | nohup java -jar jenkins.war & 28 | ``` 29 | 30 | By default it runs on 8080 31 | # To access 32 | ``` 33 | jenkins server ip:8080 34 | ``` 35 | Once u access jenkins it will ask to give password. Login to Jenkins server and execute below command 36 | 37 | ``` 38 | cat /root/.jenkins/secrets/initialAdminPassword 39 | ``` 40 | paste password in the jenkins gui 41 | 42 | ``` 43 | Select (install suggested plugins) 44 | ``` 45 | Give random 46 | ``` 47 | Create First Admin User 48 | username: admin 49 | password: password 50 | confirm password: password 51 | Full name: Pavan 52 | Email-address: admin@admin.com 53 | ``` 54 | Give Default 55 | ``` 56 | Click (save & continue) 57 | Click (save & finish) 58 | Click (start using jenkins) 59 | ``` 60 | 61 | Now start using Jenkins 62 | -------------------------------------------------------------------------------- /Jfrog-Account-Creation.md: -------------------------------------------------------------------------------- 1 | # One Time procedure - Account Creation 2 | - Search - https://jfrog.com 3 | - Select (products - JFROG Artifactory) 4 | - Select (Free Trial) 5 | - Select (Skip Trial and Start with a Free JFrog Instance) 6 | - Select (Choose gmail) 7 | 8 | - Create a Hostname* - (give any) # Example - SaiRangaPavan 9 | - Company* - (give any) # Example - bsrp 10 | - Phone Number - (give ur number) 11 | - Hosting Preferences (aws) # Choose your cloud 12 | - Click (Create) 13 | - Now select (Gmail) - Open with gmail 14 | -------------------------------------------------------------------------------- /Maven-installation-ubuntu.md: -------------------------------------------------------------------------------- 1 | ## Prerequisites 2 | Make sure install Java on your system 3 | 4 | ``` 5 | java -version 6 | ``` 7 | 8 | If not install java - https://tecadmin.net/install-oracle-java-11-ubuntu-18-04-bionic/ 9 | ## Maven installation 10 | 11 | 12 | ``` 13 | cd /usr/local 14 | ``` 15 | ``` 16 | wget https://dlcdn.apache.org/maven/maven-3/3.8.7/binaries/apache-maven-3.8.7-bin.tar.gz 17 | ``` 18 | ``` 19 | sudo tar xvf apache-maven-3.8.7-bin.tar.gz 20 | ``` 21 | ``` 22 | ln -s apache-maven-3.8.7 apache-maven 23 | ``` 24 | ``` 25 | sudo vi /etc/profile.d/apache-maven.sh 26 | ``` 27 | Insert below lines to /etc/profile.d/apache-maven.sh 28 | ``` 29 | export JAVA_HOME=/usr/lib/jvm/java-11-oracle 30 | export M2_HOME=/usr/local/apache-maven 31 | export MAVEN_HOME=/usr/local/apache-maven 32 | export PATH=${M2_HOME}/bin:${PATH} 33 | ``` 34 | ``` 35 | source /etc/profile.d/apache-maven.sh 36 | ``` 37 | Verify version 38 | ``` 39 | mvn -version 40 | ``` 41 | Reference 42 | - https://tecadmin.net/install-apache-maven-on-ubuntu/ 43 | - https://maven.apache.org/download.cgi 44 | 45 | Other Way to install Maven 46 | 47 | ``` 48 | sudo apt install maven 49 | ``` 50 | -------------------------------------------------------------------------------- /Nexus-installation.md: -------------------------------------------------------------------------------- 1 | ## Prerequisite - Java 8 2 | 3 | ``` 4 | sudo su - 5 | ``` 6 | ``` 7 | sudo apt update 8 | ``` 9 | ``` 10 | sudo apt install openjdk-8-jdk openjdk-8-jre 11 | ``` 12 | set path 13 | 14 | ``` 15 | cat >> /etc/environment < 34 | ``` 35 | cd nexus-3.44.0-01 36 | ``` 37 | ``` 38 | cd bin 39 | ``` 40 | 41 | Start the nexus artifactory 42 | ``` 43 | ./nexus start 44 | ``` 45 | check the status of nexus artifactory 46 | ``` 47 | ./nexus status 48 | ``` 49 | Go to Browser access nexus 50 | ``` 51 | nexus machine ip:8081 52 | ``` 53 | -------------------------------------------------------------------------------- /Python-Install.md: -------------------------------------------------------------------------------- 1 | # Setting up Python 2 | 3 | ## Install Python 3.x 4 | 5 | 1. **Download Python:** 6 | - Visit the official Python website: [https://www.python.org/downloads/](https://www.python.org/downloads/). 7 | - Download the latest Python installer for your operating system. 8 | 9 | 2. **Run the Installer:** 10 | - Run the downloaded installer. 11 | - During installation, check the box that says "Add Python x.x to PATH" to add Python to your system's PATH environment variable. 12 | - Follow the installation prompts to complete the installation. 13 | 14 | 3. **Verify Python Installation:** 15 | - Open a command prompt or terminal. 16 | - Type the following command to check if Python is installed: 17 | ```bash 18 | python --version 19 | ``` 20 | or for Python 3: 21 | ```bash 22 | python3 --version 23 | ``` 24 | - You should see the installed Python version. 25 | 26 | ## Install the Python Extension for VSCode 27 | 28 | 1. **Open Visual Studio Code:** 29 | - Launch VSCode on your computer. 30 | 31 | 2. **Go to Extensions View:** 32 | - Click on the square icon on the left sidebar or use the shortcut: 33 | - Windows/Linux: `Ctrl+Shift+X` 34 | - macOS: `Cmd+Shift+X` 35 | 36 | 3. **Search for Python Extension:** 37 | - In the Extensions view search bar, type "Python" and press Enter. 38 | 39 | 4. **Install Python Extension:** 40 | - Look for the official Python extension (usually developed by Microsoft). 41 | - Click the "Install" button next to the Python extension. 42 | 43 | ## Verify Setup 44 | 45 | 1. **Open Command Prompt (Windows) or Terminal (macOS/Linux):** 46 | - Open the command prompt or terminal. 47 | 48 | 2. **Check Python Version:** 49 | - Type the following command and press Enter: 50 | ```bash 51 | python --version 52 | ``` 53 | or for Python 3: 54 | ```bash 55 | python3 --version 56 | ``` 57 | - You should see the installed Python version. 58 | 59 | 3. **Open VSCode and Create a Python File:** 60 | - Open VSCode and create a new Python file (with a `.py` extension). 61 | 62 | 4. **Write and Run Python Code:** 63 | - Write a simple Python script and run it to ensure that the Python extension is working correctly. 64 | 65 | With these steps, you should have Python installed on your system and set up in Visual Studio Code for Python development. 66 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Software-Installation 2 | This Repository consists of DevOps tools installation 3 | -------------------------------------------------------------------------------- /SSH Keys for Bitbucket Authentication.md: -------------------------------------------------------------------------------- 1 | # Setting Up SSH Keys for Bitbucket Authentication 2 | 3 | ## Generate SSH Key Pair 4 | 5 | If you haven't already generated an SSH key pair on your Git Bash, follow these steps: 6 | 7 | 1. Open a terminal or command prompt on your Git Bash. 8 | 2. Run the following command: `ssh-keygen` 9 | 3. Choose a location to save the keys (default is usually fine). 10 | 4. Set a passphrase for added security (optional). 11 | 12 | ## Retrieve Your Public Key 13 | 14 | To retrieve your public key, run the following command: 15 | 16 | ```bash 17 | cat ~/.ssh/id_rsa.pub 18 | ``` 19 | ## Adding SSH Key to Your Bitbucket Account 20 | 21 | Follow these steps to add your SSH key to your Bitbucket account for passwordless authentication: 22 | 23 | 1. **Log in to Bitbucket:** 24 | - Open your web browser and navigate to [Bitbucket](https://bitbucket.org/). 25 | - Log in to your Bitbucket account. 26 | 27 | 2. **Access Bitbucket Settings:** 28 | - Click on your profile picture or avatar located in the lower-left corner of the Bitbucket interface. 29 | 30 | 3. **Navigate to SSH Keys:** 31 | - In the settings menu, scroll down and find the "Security" section. 32 | 33 | 4. **Click on "SSH keys":** 34 | - Under the "Security" section, locate and click on the "SSH keys" option. 35 | 36 | 5. **Add SSH Key:** 37 | - Once in the "SSH keys" section, click the "Add key" button. 38 | 39 | 6. **Label Your SSH Key:** 40 | - In the "Label" field, provide a name for your SSH key (e.g., "My Public Key"). 41 | 42 | 7. **Paste Your Public Key:** 43 | - In the "Key" field, paste the public key you copied in Step 2 of the SSH key generation process. 44 | 45 | 8. **Save Your SSH Key:** 46 | - Click the "Add key" button to save your SSH key to your Bitbucket account. 47 | 48 | Now, you have successfully added your SSH key to your Bitbucket account, enabling passwordless authentication for your Git operations. 49 | -------------------------------------------------------------------------------- /SonarQube-Install-through-Docker-ubuntu.md: -------------------------------------------------------------------------------- 1 | Note: We need a Docker in SonarQube machine. You can write script. 2 | 3 | ## Prerequisites: Install Docker in SonarQube Machine 4 | ``` 5 | sudo su - 6 | ``` 7 | ``` 8 | vi docker.sh 9 | ``` 10 | 11 | ``` 12 | sudo apt-get update -y 13 | sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y 14 | curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 15 | sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" 16 | sudo apt-key fingerprint 0EBFCD88 17 | sudo apt-get update -y 18 | sudo apt-get install docker-ce docker-ce-cli containerd.io -y 19 | ``` 20 | 21 | Execute below command 22 | 23 | ``` 24 | sh docker.sh 25 | ``` 26 | - It will take time to install Docker 27 | 28 | Check Docker version 29 | ``` 30 | docker version 31 | ``` 32 | ## Install sonarqube as a docker container 33 | ``` 34 | docker run -d -p 9000:9000 sonarqube:lts 35 | ``` 36 | ### Access sonarqube DashBoard 37 | ``` 38 | sonarqube ip : 9000 39 | ``` 40 | - u can see sonarqube dashboard 41 | 42 | Give Below Credentials 43 | 44 | ``` 45 | username: admin 46 | password: admin 47 | ``` 48 | 49 | change password 50 | 51 | ``` 52 | old password: admin 53 | new password: password 54 | confirm password: password 55 | ``` 56 | 57 | - Note - u always run as a soonar user dont run as a root user. Once u login to server u switch to sonar user su - sonar 58 | 59 | -------------------------------------------------------------------------------- /Terraform-Installation.md: -------------------------------------------------------------------------------- 1 | ## Browse: https://www.terraform.io/downloads 2 | 3 | 4 | ## Terraform Installation in ubuntu 5 | 6 | ``` 7 | sudo su - 8 | ``` 9 | ``` 10 | wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg 11 | ``` 12 | ``` 13 | echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list 14 | ``` 15 | ``` 16 | sudo apt update && sudo apt install terraform 17 | ``` 18 | Check Version 19 | ``` 20 | terraform --version 21 | ``` 22 | 23 | 24 | 25 | ## Terraform Installation in Amazon-Linux 26 | 27 | ``` 28 | sudo su - 29 | ``` 30 | ``` 31 | sudo yum install -y yum-utils 32 | ``` 33 | ``` 34 | sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo 35 | ``` 36 | ``` 37 | sudo yum -y install terraform 38 | ``` 39 | ``` 40 | terraform --version 41 | ``` 42 | 43 | 44 | ## Terraform Installation in RHEL 45 | 46 | ``` 47 | sudo su - 48 | ``` 49 | ``` 50 | sudo yum install -y yum-utils 51 | ``` 52 | ``` 53 | sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo 54 | ``` 55 | ``` 56 | sudo yum -y install terraform 57 | ``` 58 | 59 | 60 | # Installing Terraform on Windows 61 | 62 | This guide provides step-by-step instructions for installing Terraform on a Windows system. 63 | 64 | --- 65 | 66 | ## Installation Steps 67 | 68 | ### 1. Download Terraform Binary 69 | 70 | - Go to the [Terraform Downloads](https://www.terraform.io/downloads.html) page on the official Terraform website. 71 | - Download the Terraform binary for Windows. 72 | 73 | ### 2. Extract Terraform Binary 74 | 75 | - Once downloaded, extract the contents of the zip file to a directory of your choice on your Windows system. 76 | 77 | ### 3. Add Terraform to PATH 78 | 79 | - Open "System (Control Panel)" > "Advanced system settings" > "Environment Variables...". 80 | - Under "System variables", select the `Path` variable and click "Edit...". 81 | - Add the full path to the directory where Terraform binary (`terraform.exe`) is located. 82 | - Click "OK" on all windows to apply the changes. 83 | 84 | ### 4. Verify Installation 85 | 86 | - Open a new command prompt window. 87 | - Type `terraform --version` and press Enter to verify that Terraform is installed correctly. 88 | 89 | --- 90 | 91 | ## Additional Resources 92 | 93 | - For more detailed installation instructions and troubleshooting, refer to the official [Terraform Installation Documentation](https://learn.hashicorp.com/tutorials/terraform/install-cli). 94 | 95 | Check Version 96 | 97 | ``` 98 | terraform --version 99 | ``` 100 | 101 | -------------------------------------------------------------------------------- /Terragrunt-Installation.md: -------------------------------------------------------------------------------- 1 | # Installing Terragrunt on Windows 2 | 3 | ## Download Terragrunt 4 | 5 | 1. Visit the official Terragrunt GitHub releases page: [Terragrunt Releases](https://github.com/gruntwork-io/terragrunt/releases) 6 | 2. Find the latest release version. 7 | 3. Download the Windows version as a ZIP file (e.g., `terragrunt_windows_amd64.zip`). 8 | 9 | ## Extract the Terragrunt Executable 10 | 11 | After downloading the ZIP file, extract its contents to a directory of your choice. 12 | 13 | ## Add Terragrunt to Your System PATH 14 | 15 | To make Terragrunt easily accessible from the command prompt, follow these steps: 16 | 17 | 1. Right-click on the Windows Start button and select "System". 18 | 2. Click on "Advanced system settings" on the left. 19 | 3. In the "System Properties" window, click the "Environment Variables" button. 20 | 4. In the "System Variables" section, find and select the "Path" variable, then click "Edit". 21 | 5. Click "New" and add the path to the directory containing the Terragrunt executable (e.g., `C:\Path\To\Terragrunt`). 22 | 6. Click "OK" to save the changes. 23 | 24 | ## Verify the Installation 25 | 26 | To verify that Terragrunt is correctly installed, open a new Command Prompt and run the following command: 27 | 28 | ```bash 29 | terragrunt --version 30 | -------------------------------------------------------------------------------- /Tomcat-Installation-RedHat.md: -------------------------------------------------------------------------------- 1 | ### Prerequsite: Java 2 | 3 | ``` 4 | sudo su - 5 | ``` 6 | Install 3rd party tools in opt directory 7 | 8 | ``` 9 | cd /opt 10 | ``` 11 | ``` 12 | yum install wget -y 13 | ``` 14 | ### Install Java 15 | ``` 16 | wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm 17 | ``` 18 | ``` 19 | yum install jdk-8u131-linux-x64.rpm -y 20 | ``` 21 | ``` 22 | java -version 23 | ``` 24 | ``` 25 | yum install java-1.8* -y 26 | ``` 27 | 28 | ### Install Tomcat 29 | 30 | Browse: https://tomcat.apache.org/download-90.cgi 31 | 32 | - u can see Binary Distributions, right click (tar.gz) -> click on (copy link address) 33 | 34 | I'm installing Tomcat 9 version 35 | ``` 36 | wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.54/bin/apache-tomcat-9.0.54.tar.gz 37 | ``` 38 | ``` 39 | tar -xvzf apache-tomcat-9.0.54.tar.gz 40 | ``` 41 | untar 42 | 43 | ``` 44 | rm -rf apache-tomcat-9.0.54.tar.gz 45 | ``` 46 | Go inside apache-tomcat-9.0.54 47 | 48 | ``` 49 | cd apache-tomcat-9.0.54 50 | cd bin/ 51 | ls 52 | ``` 53 | - u can see catalina.sh, startup.sh, shutdown.sh etc binary files 54 | 55 | - u should be in bin to start or stop the server ./shutdown.sh 56 | 57 | ``` 58 | ./startup.sh 59 | ``` 60 | 61 | ``` 62 | ps -ef | grep tomcat 63 | ``` 64 | To see which port tomcat is running 65 | ``` 66 | netstat -tunlap 67 | ``` 68 | - Go to aws open the port 8080 in the security group (custom TCP 8080 ANYWHERE) 69 | - Browse TomcatServerIp:8080 70 | ### Once you see Tomcat GUI 71 | 72 | 73 | - Click on (manager app) 74 | 75 | - u get an error 403 access denied 76 | 77 | Execute Below each Command in Tomcat Server 78 | 79 | ``` 80 | cd ~ 81 | ls 82 | cd apache-tomcat-9.0.54 83 | ls 84 | cd webapps 85 | ls 86 | cd manager/ 87 | ls 88 | cd META-INF/ 89 | vi context.xml 90 | ``` 91 | comment below line 92 | 93 | ``` 94 | 97 | --> 98 | ``` 99 | - go to browser and click on manager app you are not getting error it is asking the username and password 100 | 101 | - Go to conf directory in Tomcat Server u can use below command 102 | 103 | ``` 104 | cd ../../../conf/ 105 | ``` 106 | or you can use below commands to go to conf directory 107 | - Execute each command. If you have executed above command no need to execute below commands. 108 | 109 | ``` 110 | cd ~ 111 | cd apache-tomcat-9.0.54 112 | ls 113 | cd conf 114 | ls 115 | ``` 116 | Now u can see tomcat-users.xml u go inside and add username and password 117 | ``` 118 | vi tomcat-users.xml 119 | ``` 120 | u can see below 121 | 122 | ``` 123 | 130 | ``` 131 | u add below line after 132 | - Note: Give your username, Password 133 | ``` 134 | 135 | ``` 136 | 137 | to add one more user add like the above 138 | ``` 139 | 140 | ``` 141 | 142 | - now go to browser and login using username: admin, password: passw0rd 143 | - now succesfully logged into manager-gui 144 | 145 | - now click (host manager) 146 | - u get an error 403 access denied 147 | go to webapps u can see host manager 148 | Execute below each command 149 | ``` 150 | cd ../webapps/ 151 | ls 152 | cd host-manager 153 | ls 154 | cd META-INF 155 | ls 156 | ``` 157 | 158 | ``` 159 | vi context.xml 160 | ``` 161 | comment 162 | ``` 163 | 166 | --> 167 | ``` 168 | 169 | - Now go to browser click on (host manager) and login using username: admin, password: passw0rd 170 | - To clear the cache (ctrl+shift+delete) 171 | -------------------------------------------------------------------------------- /VisualStudioCode.md: -------------------------------------------------------------------------------- 1 | # Installing Visual Studio Code on Windows 2 | 3 | ## Download the Installer 4 | 5 | 1. Visit the official Visual Studio Code website at [https://code.visualstudio.com/download](https://code.visualstudio.com/download). 6 | 7 | ## Download for Windows 8 | 9 | 2. On the VSCode website, click the "Download for Windows" button. This will download the installer package appropriate for your Windows version. 10 | 11 | ## Run the Installer 12 | 13 | 3. Once the installer is downloaded, locate the downloaded file (usually in your Downloads folder) and double-click it to run it. The installer will start. 14 | 15 | ## Installation Wizard 16 | 17 | 4. Follow the on-screen instructions in the installation wizard: 18 | 19 | - Select "I accept the agreement". 20 | - Click "Next" to start the installation. 21 | - Choose the installation location if you have a preference, or leave it as the default, and click "Next". 22 | - Select the additional tasks you'd like to perform, such as adding VSCode to the system PATH or creating a desktop shortcut. These are optional, and you can leave them as the default settings if you're unsure. 23 | - Click "Next" to confirm your settings. 24 | - Click "Install" to begin the installation process. 25 | 26 | ## Completing the Installation 27 | 28 | 5. Once the installation is complete, you'll see a "Completing the Visual Studio Code Setup Wizard" screen. Make sure the "Launch Visual Studio Code" option is checked, and then click "Finish". 29 | 30 | ## VSCode First Launch 31 | 32 | 6. Visual Studio Code will open for the first time. You'll see the welcome screen and can start using the editor right away. 33 | 34 | That's it! You've successfully installed Visual Studio Code on your Windows computer. You can start writing and editing code, and you can also customize your VSCode environment and install extensions to enhance your development experience. 35 | -------------------------------------------------------------------------------- /Windows-to-kubeadm-cluster-connection.md: -------------------------------------------------------------------------------- 1 | ### Install Chocolatey in windows 2 | 3 | Browse - https://chocolatey.org/ 4 | 5 | - Open (windows powershell) -> Run as a administrator 6 | 7 | ``` 8 | Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) 9 | ``` 10 | Check version 11 | 12 | ``` 13 | choco 14 | ``` 15 | 16 | 17 | ### Install kubectl in windows 18 | 19 | ``` 20 | choco install kubernetes-cli 21 | ``` 22 | 23 | Check version 24 | 25 | ``` 26 | kubectl 27 | ``` 28 | 29 | - Now open the c drive -> users -> batha 30 | - Note - u will see ur user name. My user name is batha 31 | - create .kube folder if its not there 32 | - open the vscode -> create a config file 33 | - Go to master server execute below command 34 | ``` 35 | cat ~/.kube/config 36 | ``` 37 | - paste in the config file so u can able to connect to kubernetes cluster. It looks like below 38 | 39 | ``` 40 | apiVersion: v1 41 | clusters: 42 | - cluster: 43 | #certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMvakNDQWVhZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJeU1USXdNakF3TXpReE9Wb1hEVE15TVRFe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09ZWjBNM2tSOFd1OApDeCt0NDVVNmY2YmdpbDJoNXAvTmhxQ0cvZ3JScExaKzdRalBWMWNubUdXVS8rTnQvS21OMkxPdnRhSTJiV3dJCjRWZkhlZHRJRCtwVnErOFlJeUEzVGRKSEpxYU9TTk9yUjl5UmZlbkhHYUc0cjhScHNyVGRpZ3R6UTNpa1l2eGYKS0pJPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg== 44 | server: https://34.125.202.236:6443 45 | insecure-skip-tls-verify: true 46 | name: kubernetes 47 | contexts: 48 | - context: 49 | cluster: kubernetes 50 | user: kubernetes-admin 51 | name: kubernetes-admin@kubernetes 52 | current-context: kubernetes-admin@kubernetes 53 | kind: Config 54 | preferences: {} 55 | users: 56 | - name: kubernetes-admin 57 | user: 58 | client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURJVENDQWdtZ0F3SUJBZ0lJRXpEMjlMUGtCSDB3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB5TWpFeU1ESXdNRE0wTVRsYUZ3MHlNekV5TURJd01ETTBNakZhTURReApGekFWQmdOVkJBb1REbk41YzNSbGJUcHRZWE4wWlhKek1Sa3dGd1lEVlFRREV4QnJkV0psY201bGRHVnpMV0ZrCmJXbHVNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQS9KeTlSRHdPL3gwWDVaNVkKbnV3MU5KeXg4bXZPc2Z2SkJUYkdrS3R6aEN0RjRncGFFZFNOWVprTThhZ2NKWXdDSUx6MVNWd1pyU0V0S3AycQpPOHcwd21JaHBKM0RYNXVPZkx5QWxacmR4eFNLNzRUMEdwRDVtRFVZanRNSnhranZwL2dpWm5haXBjNjgrSnVtCmlnV1NvUjNFMi9wWGxqdHV1V09scVhxdW9OVGgwWGlaeFVncUdCK04zbk11ME90TVE0VmxvMjVuYTJRS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| 65 | check nodes from vscode 66 | 67 | ``` 68 | kubectl get nodes 69 | ``` 70 | -------------------------------------------------------------------------------- /docker-installation-ubuntu-script.sh: -------------------------------------------------------------------------------- 1 | sudo apt-get update -y 2 | sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y 3 | curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 4 | sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" 5 | sudo apt-key fingerprint 0EBFCD88 6 | sudo apt-get update -y 7 | sudo apt-get install docker-ce docker-ce-cli containerd.io -y 8 | -------------------------------------------------------------------------------- /kubeadm-on-Gcp-ubuntu.md: -------------------------------------------------------------------------------- 1 | #### Execute In Master Server 2 | 3 | ``` 4 | sudo su 5 | sudo apt update 6 | sudo apt -y install curl apt-transport-https 7 | curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - 8 | echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list 9 | ``` 10 | Install kubelet, kubeadm and kubectl 11 | 12 | ``` 13 | sudo apt update 14 | sudo apt -y install vim git curl wget kubelet kubeadm kubectl 15 | sudo apt-mark hold kubelet kubeadm kubectl 16 | ``` 17 | 18 | Confirm installation by checking the version of kubectl. 19 | 20 | ``` 21 | kubectl version --client && kubeadm version 22 | ``` 23 | 24 | Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.2", GitCommit:"8b5a19147530eaac9476b0ab82980b4088bbc1b2", GitTreeState:"clean", BuildDate:"2021-09-15T21:38:50Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"linux/amd64"} 25 | kubeadm version: &version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.2", GitCommit:"8b5a19147530eaac9476b0ab82980b4088bbc1b2", GitTreeState:"clean", BuildDate:"2021-09-15T21:37:34Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"linux/amd64"} 26 | 27 | 28 | Turn off swap. 29 | ``` 30 | sudo sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab 31 | sudo swapoff -a 32 | ``` 33 | Enable kernel modules and configure sysctl. 34 | 35 | 36 | ``` 37 | sudo modprobe overlay 38 | sudo modprobe br_netfilter 39 | ``` 40 | 41 | Add some settings to sysctl 42 | ``` 43 | sudo tee /etc/sysctl.d/kubernetes.conf<