Day-15 | Ultimate Azure CI/CD Pipeline using Azure Pipelines & Argo CD | Multi Microservice Project
Вставка
- Опубліковано 13 лют 2024
- Support my work
www.buymeacoffee.com/abhishekprd
This video is Day-15 of Azure Zero to Hero (Free Azure Course including Azure DevOps). You can follow the link below to watch all the videos in this playlist.
• Azure Zero to Hero
Have any questions while learning ? Don't worry, Join our Doubts Clearing Group.
Join our Doubts Clearing Group
www.youtube.com/@AbhishekVeer...
Notes for the playlist - github.com/iam-veeramalla/Azu....
- Azure DevOps CI/CD Pipelines
- A front-end web app in Python which lets you vote between two options
- A Redis which collects new votes
- A .NET worker which consumes votes and stores them
- A Postgres database backed by a Docker volume
- A Node.js web app which shows the results of the voting in real time
Here are some more very useful Zero to Hero playlists on the channel.
- Free DevOps Playlist: • DEVOPS ZERO TO HERO CO...
- AWS Zero to Hero Playlist: • AWS Zero to Hero - AWS...
- Terraform Zero to Hero Playlist: • Terraform Zero to Hero
- Python for DevOps Playlist: • Python for DevOps
About me:
========
Instagram: / abhishekveeramalla_off...
Telegram Channel : t.me/abhishekveeramalla
LinkedIn: / abhishek-veeramalla
GitHub: github.com/iam-veeramalla
Medium: / abhishekveeramalla-av
DevOps Project Ideas
Advanced DevOps Projects
Best DevOps Projects
DevOps Projects 2024
DevOps CI/CD Projects
Free Azure Course
Azure DevOps
Learn Azure
Best Azure Course
Azure course 2024
Learn Azure from Basics
Azure DevOps with examples
Azure DevOps projects
Azure simplified
Learn Azure for Free
Azure DevOps Playlists
Azure DevOps Projects
Azure DevOps Interview Questions
Azure Fundamentals
AZ-900 course
AZ-900 certification courses
AZ-900 playlist
Videos to clear AZ-900 .
.
Disclaimer: Unauthorized copying, reproduction, or distribution of this video content, in whole or in part, is strictly prohibited. Any attempt to upload, share, or use this content for commercial or non-commercial purposes without explicit permission from the owner will be subject to legal action. All rights reserved.
If u face
'
' command not found issue during updation of the manifest files in the Update stage.
This issue exists for windows users and can be fixed by running the below shell commands.
sudo apt-get install dos2unix
dos2unix // script file name
And then use the generated script in repo.
still facing same issue, could u pls drop a short video
/usr/bin/bash /home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh vote votingapp 64
/home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh: line 2: $'
': command not found
/home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh: line 3: set: -
: invalid option
Reading state information...
E: Unable to locate package dos2unix
/home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh: line 6: $'
': command not found
/home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh: line 7: script.sh: No such file or directory
/home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh: line 8: $'
': command not found
/home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh: line 11: $'
': command not found
fatal: destination path '/tmp/temp_repo?' already exists and is not an empty directory.
/home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh: line 14: $'
': command not found
/home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh: line 17: $'
': command not found
sed: can't read k8s-specifications/vote-deployment.yaml
: No such file or directory
/home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh: line 21: $'
': command not found
fatal: pathspec '.?' did not match any files
/home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh: line 24: $'
': command not found
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
/home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh: line 27: $'
': command not found
git: 'push
' is not a git command. See 'git --help'.
The most similar command is
push
/home/azurevmagent/myagent/_work/1/s/scripts/k8supdate.sh: line 30: $'
': command not found
Finishing: ShellScript
HI @abhishek, Thank you for posting this, I am able to do this ----sudo apt-get install dos2unix and can you please elaborate-------------dos2unix // script file name
And then use the generated script in repo.
Can you pls share the converted sh script@@Purenderk
its not working abhishek.First one worked second giving error
/usr/bin/bash /home/azureuser/myagent/_work/2/s/scripts/updateK8sManifests.sh vote votingapp 81
/home/azureuser/myagent/_work/2/s/scripts/updateK8sManifests.sh: line 2: $'
': command not found
/home/azureuser/myagent/_work/2/s/scripts/updateK8sManifests.sh: line 3: set: -
: invalid option
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
/home/azureuser/myagent/_work/2/s/scripts/updateK8sManifests.sh: line 4: $'
': command not found
/home/azureuser/myagent/_work/2/s/scripts/updateK8sManifests.sh: line 7: $'
': command not found
fatal: destination path '/tmp/temp_repo?' already exists and is not an empty directory.
/home/azureuser/myagent/_work/2/s/scripts/updateK8sManifests.sh: line 10: $'
': command not found
/home/azureuser/myagent/_work/2/s/scripts/updateK8sManifests.sh: line 13: $'
': command not found
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!sed: can't read k8s-specifications/vote-deployment.yaml
: No such file or directory!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WHY ITS SAYING NO FILE THERE IS FILE AVAILABLE IN MY REPOSITORY
/home/azureuser/myagent/_work/2/s/scripts/updateK8sManifests.sh: line 17: $'
': command not found
fatal: pathspec '.?' did not match any files
/home/azureuser/myagent/_work/2/s/scripts/updateK8sManifests.sh: line 20: $'
': command not found
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
/home/azureuser/myagent/_work/2/s/scripts/updateK8sManifests.sh: line 23: $'
': command not found
git: 'push
' is not a git command. See 'git --help'.
The most similar command is
push
/home/azureuser/myagent/_work/2/s/scripts/updateK8sManifests.sh: line 26: $'
': command not found..
NEED MORE HELP ON THIS PLEASE 🙏
I was getting error "E: Unable to locate package dos2unix" while executing the above command. So, I executed below two commands, and it worked
sudo apt-get update
sudo apt-get install dos2unix
Exclusive Video with amazing knowledge .Really awesome.Thanks Abhi 😍
Great project i love the troubleshoothing docker image tag script and the secret one.
completed this hands on.. Learnt a lot Abhi... Thanks
Thank you,Abhishek deployed all the microservices and also updated the result app source code to reflect the changes.The End to End CD worked like a charm
U r a rockstar
brother would you telll me what exactly needs to be changed in result app source code because i have done rest of the part everything is happening but i am unable to see changes in result app page.
Bhai you're just great. Never got anyone explaining things so detailed and from scratch.
❤️❤️❤️
its like see clock watch every time at sharp 9 ,new video has come or not waiting everyday i have been addicted to your content sir.
love u sir for your effort and time
Thank you so much 😀
Very good approach to keep recording of failed attempts. That's where the majority of interview questions goes.
Thanks 🙏
@@AbhishekVeeramallaI have followed all the steps but the image in the manifest is not getting updated😢
@@kodjoviamedimele3066 Even I am stuck in the same stage
Thank you very much. This project is so great. I will try this project and please let me add this project to my resume.
Thank you for your efforts bro and its on time sharp @9:00pm🙌👏
🙌
It's clear and giving hands on knowledge. While watching this videos , we r recollectiong other possible errors as well 🎉 The Best one ❤
It's my pleasure
Awesome demo❣. Thank you Abhishek.
My pleasure 😊
Thanks Abhishek bhai for your efforts, I have deployed all three microservices to AKS cluster via argoCD, but the issue i got with argoCD that it is trying to generate new replica set or pod every time I am updating the image in same deployment, it should replace the old deploy/rs/pod to the new one, right ? I gave it like 15-20 minutes but no luck then I manually deleted old replicasets from argoCD UI to get it running.
first of all thank you Abhishek bro for given valuable content
My pleasure
this video is a big step for beginners in azure playlist ,but yeah as always your explaination can make it easy
Glad you think so!
Done CI part and excited to execute this as well, thanks for your time and efforts it's not easy to manage both work and give such quality content. Cheers mate take care of your health as well.🙌👌
Thanks 🙏
Successfully executed CD part as well, but after making changes in the pipeline while the build is triggered, new images are created and Argo CD is able to pull the latest image but K8S cluster is unable to deploy the latest pod, the error I am seeing is pod still in progress unable to deploy because node is full. But if I stop and start the k8s is running with latest pod. Why it’s happening ?
OSM explanation. thank you ;)
Most welcome!
Hi Ahishek, I implemented result app and its working as expected. I also made some changes to the redis and progress ports. ArgoCD is making those changes with ease. Appreciate all your good work. I know the effort you put in. Big thank you.
Great 👍 Good to know 😍
❤ damn sure this will also hits lakhs of views 👏 kudos for all your efforts
😍😍
I am your new subscriber, the work you are doing, i become a fan of your, i started learning devops now from you, thank uu for lovely content❤
Thanks and welcome
Can we create a VM instead of azure cli and connect it to mobaxterm. Also are the commands same?
thank you abhishek you are great 😍😍😍😍
Most welcome 😊
Hi annaya Devops & AWS rendu kalili training tisko mantara and Leda Devops separate and AWS separate training tisko mantara anna elaga nerchukunte easy ardam avutadi plss reply annaya
@AbhishekVeeramalla i have uploaded the shell script file from your respository into azure repository of mine and edited the necessary details and it is worked smoothly😍😍😍
Great 👍
Hi Abhishek, Can we use Azure Release Pipeline itself instead of Argo CD for Delivery. If so, do we have any demo for this?
Hello Abhishek, I was following the teachings, but I did not see an EXTERNAL IP for the NodePort to open the ArgoCD
Awesome anna, thanks for creating this
Welcome 😊
I am pretty new to this profile, My organization works on landing zones and deployments of resources, would the steps for deploying resources from azure devops will be same?
Awesome explanation ❤❤❤
Glad you liked it
Awesome explanation @abhishek
Thanks
Thank you for your efforts sir 🙏Done CI part and excited to execute this as well.
All the best
@everyone
Getting an error when trying to install argocd kubectl command not found can you help
Hi Abhishek bro
Thank you for the project.
for me It took one whole day to make it work but worth.
Had multiple issues including the issues shown in video and '/r' issue took 3-4 hours to findout what is the issue but it just took 2 minuts time to resolve and most of the issues are cleared with help of chat-gpt.
Thank you for your effort and time...❤❤❤
Very nice 👌
How you solved it??
I am stuck at it
@@user-cj1uv2qz2y If is related to '/r' issue. Then follow the below steps.
if you are using windows system install Notepad++ > open new file > paste the whole shell script > select all the lines (ctrl + a) > go to edit > EOL conversation > change to unix > save file with same name (updateK8smanifests.sh)
then come to azure repo and instead of creating new file in scripts folder, upload the saved file. automatically the file will be saved as unix-style file in azure repo as well as in agent workspace...
hey brother can you please help me I am also facing the same issue
plz help with $'
': command not found
Hi Abhishek, while connecting argoCD to azure repo, I types kubectl edit secret argoCD and then the echo password but getting an error.
You are a Legend!!
Thanks
Wish you had added the last video repos as well , for us to continue whenever we can otherwise have to go back and create but then again i was also facing issues
kubectl get svc -n argocd this command open notepad file please help me how to edit and execute again
Hi Abhishek, i am new subscriber and learn azure Devops. i am trying to clone the project in \tmp\temp_repo folder but after run the shell script command. in \tmp folder contain this type name of folder 'temp_repo'$'
' so image name did not update in kubernete yaml file. can you suggest what i am doing wrong here.
Thank you, Abhishek!! for this amazing CD project implementation, this is a similar set up which I had in my previous organisation. The only difference is that we used Jenkins as the pipeline instead of Azure Pipelines.
I was able to complete the Result app set up as well, but the only issue i'm encountering is the Result app votes result percentage is displayed, but the names are not getting updated from Cats and Dogs eventhough the Vote App selection is set to Kubernetes and DockerSwarm.
Please let me know how this can be resolved?
Awesome 👏, Kudos on implementing the Voting service as explained in the video.
We need to update the result app source code as well.
How can we use our application to use users using our domain name...and also with a subdomain to use argo CD? please help here....also this project is very helpful to me. Thanks Sent LinkedIn connection to you sir.
I can't find the git repo of this repos. please can you share it with me?
Thank you!
Hello Abhishek Anna,
First of Thank you for your great content. I have completed the terraform zero to hero course and used it to implement in GCP Cloud and was able to do it successfully. I have little confusion with Count and for each, Can you please explain this one.
Also, I am requesting please make a video on Ultimate GCP CI/CD Pipeline using GCP Services/Kubernetes. Please consider this video in your playlist.
Thanks for your efforts but i have one question why are you not using Azure devops CD(yaml) to deploy to AKS or release pipelines?
I explained that in the video, why I am using the GitOps approach.
Hi Abhishek,
Can you please upload the architecture image in day-15
Awesome video and explanation keep up the good job and I admire your dedication to teaching and sharing your knowledge. Just a small suggestion if possible could you upload the commonly used commands which you ran in the video so we could keep it as a reference.
Thanks and Sure
Thank you😊
Perfect 😊
Tq for the class, but i have one doubt u select one server for cluster configuration in node pool section is that same as agent pool i mean runner of azure pipeline or there any other
They are different. Please watch the CI video.
Sir one doubt, in freee devops playlist what are the playlist included? kub 0 to hero is also there in it or we need to watch seperately? becuase Kub 0 to hero playlist isn not in order. Please help sir
Kubernetes is covered in the devops zero to hero. But fyi.. kubernetes playlist is also sorted. Dont look at the day numbers.
@@AbhishekVeeramalla ok sir thanks for reply
We can use managed identities attach a acr and aks for pulling images and I came to know that using service principal is good as it's secret values remain same in managed identities as it should update the tokens it makes more calls is it right
Managed Identities is good. It updates automatically.
@@AbhishekVeeramalla thank you for the reply Abhishek 🤩
Thank you
You're welcome
Please can someone help me with how to clone github repository and run on localhost.I am getting error.Please someone add the process which abhishek did for day 14 video
Hi Abhishek,
Why can’t we use CD pipeline in the azure devops itself like CI pipeline instead of using argocd?
I explained the advantages in the video. Basically to get the GitOps use cases
Hi Abhishek 👋, firstly thanks to share your knowledge to grow with you💐. I need a small clarification on PR merge, let assume i have 2 branches one is release, 2nd master. PR created and merged with master. Here after merge completion, few changes were not reflecting in master branch. May i know the root cause for these kind of issues?
Advance thanks for your valuable Insights🤝🏻
Hi, In merging we have different methods(merge fast forward,rebasd and other 2). Every methods has some different feature.....For the first time U try merge fast-forward option it will solve your issue....please let me know if it done
Hello Abhishek, Thanks for your efforts. However, I found too many manual operations here. Since you are using Argocd, why don’t you create argocd application through the pipeline itself (either application.yaml or argocd cli commands) and set the image using argocd app set -kustomize-image by taking outputs from image build stage.
Updating manifests via script adds up too many commits to the main branch. Some organisations prefer to trigger their pipelines from main to prod and might cause issues.
Hey Sunil,
1. Creating Argo CD application through UI or Cli is a one time activity. So there is no point of creating it through pipeline.
2. In the GitOps approach, you can also store your manifests to a different git repo, so the number of commits will not be a problem. I explained this in the GitOps playlist.
I hope it helps.
While entering username as admin on argocd and password it says invalid username or password. Tried many times. Please help
Attendance 🎉 😊
😍😍😍
Azuredevops to connect and deploy in AWS eks or other services in AWS is this possible anna..?
Yes it's possible
'
' command not found issue during updation of the manifest files in the Update stage. ?? Could you please explain more ? I am not clear about this ?
Check the pinned comment.
It is a very clear explanation about co/cd pipeline thank you so much for your efforts.
I have small doubt, based on the commit deployment process is happend in the above video.
Is there any option for deployment like tag(will create tag on specific commit, based on the tag deployment is happening). For product specially,
If you have time please give the answer
Yes u can do. Just change the trigger
@@AbhishekVeeramalla thank you Abhishek
for anyone whose deployment isnt updating replace ** with vote/Dockerfile in azure devops pipeline
@joylinejenifer7933 i dont use windows
Hi abhishek
we worked on the public project with CI/CD but im not able to do with private project can please briefly explain with one video
This is private project
❤❤❤ awesome 👍😊
Thanks 🤗
I have updated the code from CATS & DOGS to AWS & Microsoft Azure, its working fine in the vote page but when I navigate to the results page by changing the port to 30001, it still shows CATS & DOGS. I have updated the worker and result manifest also. Why am I getting this?
same issue
hi sir, my pipeline is taking more than 40 min to to 1 hour sometime the build gets failed because of private project limitation how can i reduse the pipeline build time
Try to change the region of your k8s cluster
Hi Abhishek. Is this part of azure playlist. It's not visible
Yes it is
I tried every damn possible way but
command not found error jaa hi nhi rha 😭
How do you see Argo Image updater instead of writing shell script
I explained that in the video. Please check
sir How did you connect azure devops project from terminal??just like your terminal showing VOTING-APP%????PLEASE HELP
Please watch beforr videos, I explained
@RavijyotiBM bro did you got the answer
If anyone know the answer, please let us know.
(Enable Public IP per Node) 30 IP are not allowed
Tqsm sir ❤
😍
Hi Abhishek,
I was able to run the demo successfully but the small thing is not working i.e. image tag and repository is not getting updated in the vote deployment yaml file.
Even I don't see any issues in the pipeline flow. Any idea what might have happened?
Thanks for your support !
Look at the shell script stage, there can be an error.
yes, did u got it now bro
@@AbhishekVeeramalla the shell script gives error cant read the file sed: can't read k8s-specifications/vote-deployment.yaml
@@medapatimohan3712 did it solved?
super awsome
Thank you
I have followed all the steps but the image in the manifest is not getting updated
and also
why there is "_work" in line no. 9 in shellscript in update job, while I have "result" in place of that ????
i am facing same error ?what did u do for image not getting updated?
Awesome👍🏻👍🏻🔥
Thanks ✌️
@@AbhishekVeeramalla Actually thank u Abhishek for this wonderful course!! 😅🔥
Hi Abhishek , I am facing error $'
': command not found while executing the script of updatek8s-manifest.But when i manually doing it's executing in agent node.Agent node is ubuntu machine only.Where am i doing wrong , could you please help me.
Copy that file from abishek git repository and upload into your azure repository ( rename the existing one)
@@hidass2006 yes , I did it. Was using azure repo only
@@md.mosharafkarim7543 is it working for you?
Thanks you
😍
Unable to create application: permission denied, when I click on create option in Argo cd. What did I miss?
You must have installed namespace scoped argo cd instance and trying to deploy to a different namespace
@@AbhishekVeeramalla thank you for reply. However I am following the video. Could you help me how to fix it now. Not able to get answer from ChatGPT.
not able to setup a argo cd through powershell and gitbash .
getting below error :
In powershell
The term 'kubectl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + kubectl create namespace argocd + ~~~~~~~ + CategoryInfo : ObjectNotFound: (kubectl:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
In gitbash,
command not found
You need to install kubectl
@@AbhishekVeeramalla , Thank you . But now I am facing new issue.
.yaml file in k8s-specifications folder is not updating with latest image . Can you please suggest anything on this.
@@shubhamband1107 If you are using a windows based text editor then u need to convert the script to dos format, use a step above where Abhishek has used a script in settings to execute just use a another task like for command dos2unix, this will convert the sh file before it is executed by the next task
Anna AWS devops ki 2 years experience ki calls ravadam ledhu anna epudu nundi start avuthai
Vastunnay bro
Can u include trunk base developement
Will try
when creating the application in agrocd getting error " unable to create the application:Permission denied"
created rbac.ymal manifest file and applied to the agrocd name space and recreate the application. Now its working fine @abhishek
getting quota issue abhishek changed multiple region but still facing the same issue.
i have pay-as-go subscription actully.
Try later or contact Azure support.
@@AbhishekVeeramalla yes changed the node pool its worked
unable to decode secret in windows, is there anything specific command for windows users we need to do
Tried [System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String(texttobedecoded')) but getting some text in chinese unable to login to argo cd
got it , used this --- [text.encoding]::utf8.getstring([convert]::frombase64String('xxxxxxxxxxxx'))
Good
I power-off the VM and after fixing the decode secret I wasn't able to run the agent... Recreated the agent but don't see it under the agents...
It's a long day started at 1pm and still not completed... Trying to recreate the whole setup again
love from warangal , abhishek anna 👌
😍😍
working as DevOps engineer, on-premise k8s admin, trying to learn aws/azure DevOps from you , thanks for your work @@AbhishekVeeramalla
Anna I want to talk with you is there any source to with you like one to one pls reply me anna
For now .. no bro. Will be active on topmate soon.
Sir, iam 5th sem student and i am capable for entry level or fresher , applied for 50 + companies but not getting any response . Could you please guide or refer me if something comes around you? . Please make a video regarding this for fresher .
And one more question how to get into redhat as fresher ?
U should apply for internships not fresher roles
Awesome video, we can this project in resume
Yes you can
External ip not comming in node
How to get external ip
Enable public ip
@@AbhishekVeeramalla
Hi Abhishek
Even i am facing the same issue. In the azure portal there is no public ip address for the vmss or for its instance. Could you please tell the steps to enable public ip address. Thanks in advance
I logged into AKS cluster on my machine but still when running Kubectl commands it shows "bash: kubectl: command not found" did anyone repro this issue. let me know if am I missing something.Thanks!
U dont have kubectl installed, please install kubectl from internet.
@@AbhishekVeeramalla Thank you for prompt response. actually missed setting path in ev.
shell script is succeeding but its not updating the tag in the yaml of repo. Checked the log of task and could see "command not found" here is the log
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 4: $'
': command not found
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 7: $'
': command not found
Cloning into '/tmp/temp_repo
'...
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 10: $'
': command not found
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 13: $'
': command not found
sed: can't read k8s-specifications/vote-deployment.yaml
: No such file or directory
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 17: $'
': command not found
fatal: pathspec '.?' did not match any files
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 20: $'
': command not found
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 23: $'
': command not found
git: 'push
' is not a git command. See 'git --help'.
The most similar command is
push
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 26: $'
': command not found
Iam also getting the same error , i tried lot of times getting the same error.if this issue is resolved for you , please let me know bro @@jeevanreddy9988
@@jeevanreddy9988 even i am facing the same issue, which path to set in ev
Wr is part 1
Just before this video on the channel.
Please upload the azure series video on this Saturday as well bro. We have crossed 2days in this week without video.
Hi Prakash, alot of people are still working on the day 14 and day 15 projects. Lets also give them time.
Hi Abhishek!! i am getting the below error
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 4: $'
': command not found
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 7: $'
': command not found
Cloning into '/tmp/temp_repo
'...
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 10: $'
': command not found
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 13: $'
': command not found
sed: can't read k8s-specifications/vote-deployment.yaml
: No such file or directory
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 17: $'
': command not found
fatal: pathspec '.?' did not match any files
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 20: $'
': command not found
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 23: $'
': command not found
git: 'push
' is not a git command. See 'git --help'.
The most similar command is
push
/home/azureuser/myagent/_work/2/s/scripts/update.sh: line 26: $'
': command not found
However shell script executed without any error. could you please help thanks!!
Hi, it is a linux to windows copy error.
Dont worry, just delete that file and this time instead of copying the whole file, just copy it line by line.
@@AbhishekVeeramalla Thank you Abhishek i will try that approach
i am still running into error
/usr/bin/bash /home/azureuser/myagent/_work/1/s/scripts/updateK8sManifests.sh votevotingapp20146
fatal: destination path '/tmp/temp_repo?' already exists and is not an empty directory.
sed: can't read k8s-specifications/votevotingapp20146-deployment.yaml
: No such file or directory
fatal: pathspec '.?' did not match any files
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
git: 'push
' is not a git command. See 'git --help'.
The most similar command is
push
thanks
nevin
Getting an error "$'
': command not found" while copying updateK8sManifests.sh shell script in azure-pipelines-vote.yml. I have tried command "dos2unix updateK8sManifests.sh" to convert in unix format and remove the carriage return characters (
). However, I am facing the same error once I paste the contents in the azure-pipelines-vote.yml file
Why r u copying it into azure- pipeline-vote.yaml ?
@@shrikantdandge8665 Abhishek has not used service principal here he enabled admin user name and password and entered those values from acr in image pull secrets.
If you want to use a service principle you need to create one in app registrations
I did face the same issue, in order to fix this you can add a task as per the below script like this:
- stage: Update
displayName: Update
jobs:
- job: Update
displayName: Update
steps:
- task: CmdLine@2
inputs:
script: |
# Display the current working directory
echo "Current working directory: $(pwd)"
dos2unix scripts/updateK8sManifest.sh
chmod +x scripts/updateK8sManifest.sh
- task: ShellScript@2
inputs:
scriptPath: 'scripts/updateK8sManifest.sh'
args: 'result $(imageRepository) $(tag)'
Do not copy paste the contents of shell script in the Azure Devops Pipeline
Thank you bro for pasting this Yaml its working @@rajkamal5318
this command is give you password in plain text:
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
bro i did exactly wt u have done but the finally it result shown cats vs dogs 🤣🤣 wt does it mean @abhishekveeramalla bro
May be the script or something failed. Look at the logs of each stage
@@AbhishekVeeramalla tq bro
fixed it ?