Terraform contd ntier-aws Lets apply backend to ntier-aws to store in s3 bucket Refer Here Refer Here for the changes As we have observed when multiple users try to execute at the same time only user gets the lock and others user have to wait till the lock is released ntier-azure Refer Here for azurerm… Continue reading DevOps Classroomnotes 13/Aug/2023
Completek8s Classroomnotes 13/Aug/2023
kubernetes RBAC Users and groups are not stored in etcd, and are meant for processing outside the cluster. Service accounts exists as objects in k8s and are used by processes running inside of the cluster. User is meant to be managed by administrator of k8s cluster and distributes the credentials to the user by some… Continue reading Completek8s Classroomnotes 13/Aug/2023
AWS Classroomnotes 13/Aug/2023
Cloudformation Contd Change – 9: Create a web vm Make the following a parameter ami id Refer Here for cloudformation of ec2 Refer Here for the changes done Execution has resulted in creating an ec2 instance without public ip Refer Here for the changes to include public ip address to ec2 instance. change-10: Database Creation… Continue reading AWS Classroomnotes 13/Aug/2023
Azure Classroomnotes 13/Aug/2023
change-6: Create a nic with public ip, nsg Overview Refer Here for public ip resource and Refer Here for network interface Refer Here for the changes done Lets use variables Refer Here Refer Here for the changeset with variables Change-7: Create a parameters files with values Refer Here for docs on paramters file Refer Here… Continue reading Azure Classroomnotes 13/Aug/2023
DevOps Classroomnotes 12/Aug/2023
Terraform contd Provisioners in Terraform Refer Here for terraform provisioner offical docs Provisioner types file: This can copy file into remote machine created by terraform local-exec: this executes in the machine where terraform is executed remote-exec: This executes in resource created by terraform Provisioner Connection: To establish remote connection, we need to pass connection information… Continue reading DevOps Classroomnotes 12/Aug/2023
Completek8s Classroomnotes 12/Aug/2023
Installing kubernetes using kube-spray kube-spray can help us installing k8s cluster using ansible input: atleast 2 instances with ip addresses user should have sudo permission on both instances Steps: Ensure you have keypair in your local system ssh-keygen Now create at least 3 vms with atleast 2 vcpu and 4 GB RAM upload id_rsa from… Continue reading Completek8s Classroomnotes 12/Aug/2023
AWS Classroomnotes 12/Aug/2023
Cloud formation contd Change – 4 Create a private route table Refer Here for the changes Change – 5: Add routes to route table to make it public For manual steps refer class room video Refer Here for cloudformation resource route Now execute the changeset Change -6: Associate subnets to route table Associate web subnet… Continue reading AWS Classroomnotes 12/Aug/2023
Azure Classroomnotes 12/Aug/2023
ARM Templates (Contd) Resource Id: Refer Here Depends On: This defines order or creation Change – 4: Add network security group with static rules Create a network security group for web, open all outgoing connections incoming: Allow 443 tcp port => https Allow 80 tcp port => http Allow 22 tcp => ssh Refer Here… Continue reading Azure Classroomnotes 12/Aug/2023
Completek8s Classroomnotes 10/Aug/2023
kube-spray based installations Lets use the following docs Refer Here for official kubernetes docs Refer Here Steps Created a t2.micro ubuntu instance and installed aws cli in it Refer Here configure aws cli aws configure Install terraform Refer Here Run as described by changing the terraform.tfvars and credentials.tfvars After successful execution of terraform, execute ansible… Continue reading Completek8s Classroomnotes 10/Aug/2023
AWS Classroomnotes 10/Aug/2023
Cloudformation (Contd) The template which we have helps you in creating the vpc with 3 subnets { "Resources": { "ntiervpc": { "Type": "AWS::EC2::VPC", "Properties": { "CidrBlock": "10.10.0.0/16", "Tags": [ { "Key": "Name", "Value": "primaryvnet" } ] } }, "websubnet": { "Type": "AWS::EC2::Subnet", "Properties": { "AvailabilityZone": "ap-south-1a", "VpcId": { "Ref": "ntiervpc" }, "CidrBlock": "10.10.0.0/24", "Tags": [… Continue reading AWS Classroomnotes 10/Aug/2023
