Тёмный

Kubernetes Tutorial | ConfigMap & Secrets Implementation in Spring Boot CRUD Example | JavaTechie 

Java Techie
Подписаться 178 тыс.
Просмотров 30 тыс.
50% 1

This tutorial we will discuss What is ConfigMap & Secrets in kubernetes and How to manage configuration of our application using these two components
#javatechie #Kubernetes #ConfigMap #Secrets
GitHub:
github.com/Jav...
Blogs:
/ javatechie
Facebook:
/ javatechie
guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie
Disclaimer/Policy:
--------------------------------
Note : All uploaded content in this channel is mine and its not copied from any community ,
you are free to use source code from above mentioned GitHub account

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 74   
@sharmarahul17
@sharmarahul17 25 дней назад
Great explanation. Thank you!
@vivekguptacs
@vivekguptacs 2 года назад
Thanks for this.. We have another option as well too. Using kubectl create secret command , create secret on cluster/pod. Then use direct in deployment. Yml and in application. Yml use placeholder using ${host} and create configmap create configamp direct on cluster. So we no need to maintain 2 yml file in project. In bootstrap. Yml - define configmap name Its another way. But i learnt new way from tutorial. Thank you so much again
@Javatechie
@Javatechie 2 года назад
Thanks buddy for update definitely i will check other one
@himanshubhusanrath212
@himanshubhusanrath212 2 года назад
Can not think of a better explanation. Great job @Java Techie. Learning a lot from your videos. Truly amazing (y). Thank you so much for putting such efforts to share such detailed videos.
@Javatechie
@Javatechie 2 года назад
Cool buddy 🙂. keep learning 😊
@RaviShankar-xy6zh
@RaviShankar-xy6zh 2 года назад
You always keep us updated with your updated videos on updated technologies. Thankyou for such beautiful videos buddy.
@gopisambasivarao5282
@gopisambasivarao5282 Год назад
Thanks, Basant, for your wonderful efforts.
@rishikesharora8681
@rishikesharora8681 2 года назад
pretty useful content as per industry standard 😍😍😍😍😍🙌🙌🙌🙌🙌
@abinthomas12914
@abinthomas12914 2 года назад
My fav ❤️ teacher. Thank you 👍
@mukeshmahadev7419
@mukeshmahadev7419 Год назад
Thank you Java techie, learnt a lot from this channel. Suggestion : Please keep the terminal font size bigger, it reduces the strain on the eyes of binge watchers (like me)
@Javatechie
@Javatechie Год назад
Thanks Mukesh . Going forward i will look into it
@harkirehal8243
@harkirehal8243 2 года назад
wow, man! This is really clearly explained. No nonsense. Loved the video.
@mobinshah1
@mobinshah1 2 года назад
Awesome tutorial. You are the best sir.
@skullstaff4841
@skullstaff4841 10 месяцев назад
amazing
@harishk4926
@harishk4926 2 года назад
Hi sir , Each and every time wen I see the videos I fall in love with code ..and the way of explaining is really good ...will you please make a video on Nexus repository building?
@Javatechie
@Javatechie 2 года назад
Sure will do harish
@AshishYadav-se4db
@AshishYadav-se4db 2 года назад
Awesome content sir Thank u so much sir ❤️
@DevendraSingh09.jan.98
@DevendraSingh09.jan.98 Год назад
nice video
@uma_mataji
@uma_mataji 2 года назад
Amazing sessions,Thank you.
@pratishrutipanda6461
@pratishrutipanda6461 2 года назад
Nice content
@sraynitjsr
@sraynitjsr 2 года назад
Brilliant video, thank you Sir 🔥🙂💯
@sandipram4601
@sandipram4601 Год назад
found informative
@shubhamjumde9076
@shubhamjumde9076 2 года назад
Very helpful to understand K8s features. My request, can we have a video on how Springboot is interacting with Consul and Vault together for configurations and secrets. I am trying to implement in my local system but facing some configuration issues.
@Javatechie
@Javatechie 2 года назад
In k8s or plain application what's your question ❓
@shubhamjumde9076
@shubhamjumde9076 2 года назад
@@Javatechie In k8s. Actually, I am using openshift.
@Javatechie
@Javatechie 2 года назад
I will check and update
@mutturajdeval4841
@mutturajdeval4841 2 года назад
ತುಂಬಾ ಚೆನ್ನಾಗಿದೆ ಸರ್ 😀
@MrAnasSov
@MrAnasSov 2 года назад
Thank you so much for your truly amazing content ! Keep up the great work 👍🏻
@mohanrathod5291
@mohanrathod5291 2 года назад
Thanks for making videos with latest versions... If possible can you make video to deploy into AWS EKS
@Javatechie
@Javatechie 2 года назад
Yes I will upload that in next weekend
@anm_15
@anm_15 2 года назад
Hi JavaTechie, amazing videos you make, I follow them all. I have few question. All this you are doing on terminal, in real world it will be done by Jenkins job. I can see you are applying the YAML files one by one so you can wait for one file to be succeed before the next one. But Jenkins pipeline will have all these apply commands mentioned one after another so how Jenkins will stop a pod to run before the another pod is executed successfully. e.g. My web app pod uses MySql then how the web app pod will wait for MySql pod to run first and then start its own execution.
@Javatechie
@Javatechie 2 года назад
Please checkout my latest devops video on automating this process
@anm_15
@anm_15 2 года назад
@@Javatechie The exercise does not work for MySql 8 or latest versions.
@nareshrayabarapu2665
@nareshrayabarapu2665 2 года назад
Thanks buddy...
@SanthoshkumarNagulanchi
@SanthoshkumarNagulanchi 9 месяцев назад
How to maintain diff screts for diff environments?
@Javatechie
@Javatechie 9 месяцев назад
Approach will be the same only you need to configure the value specific to the environment .
@mehmetnamver914
@mehmetnamver914 2 года назад
But Base64 is not encrption
@Javatechie
@Javatechie 2 года назад
You can use other algorithms
@dedication17
@dedication17 Год назад
THank you sir
@tusharrai9762
@tusharrai9762 24 дня назад
can we create replicas for mysql? if yes then how do we maintain db transaction ..
@shivomkumar628
@shivomkumar628 Год назад
great explanation , i have one question though, you encrypted the username and password using kubectl encryption, and after that you are adding that encrypted text in corresponding yaml files. so isn't there a decryption command in kubectl using which if we provide them encrypted text cant they see decrypted value ? i believe deployments file will be pushed to git and then those properties would be visible to others , so my concern is wont that be easy to decrypty ? coz i didn't see you used any private key or anything like that to encrypt your sensitive information please correct me, i have just started learning kubernetes
@Javatechie
@Javatechie Год назад
You are correct there is a way to encrypt and decrypt at runtime
@shivomkumar628
@shivomkumar628 Год назад
@@Javatechie can you please add a video for the same , i guess it would be great to learn that as well
@coolanimals500
@coolanimals500 4 месяца назад
Hi, i cloned this repo i applied the same steps as you do but for me it creates mysql container but it gives crashloopBackOff error when i try to run the yaml file for application. can you check it plz ?
@saravanakumara5602
@saravanakumara5602 2 года назад
Bro, Can you please put video for Kubernetes cluster with CRI-O container runtime ?
@Javatechie
@Javatechie 2 года назад
I am not aware about this will check and try
@rohitmanohar2733
@rohitmanohar2733 Год назад
How to encryption and decryption in windows as echo -n 'root' | base64 is not supported in windows command line tool
@idouxda
@idouxda 2 года назад
We don't want to commit any passwords to our git repo. Could I use a Spring Config Server that uses Vault?
@Javatechie
@Javatechie 2 года назад
Yes
@sirfinsaan
@sirfinsaan 2 года назад
nice detailed video. but i am facing one problem :( my rest endpoint is not calling even i check all logs , everything is up with 3 replicas ,mysql is running
@Javatechie
@Javatechie 2 года назад
Any error?
@TheDevOpsGuru
@TheDevOpsGuru Год назад
Same issue I'm facing.. No error but app not accessible.
@girishanker3796
@girishanker3796 5 месяцев назад
Try using this command :- minikube service --url instead of node port and node host
@shankarmallam478
@shankarmallam478 2 года назад
Bro how to apply leave from employee and approved by manger using spring jpa and show leaves balance total 10 employee without hmtl css
@Javatechie
@Javatechie 2 года назад
You want complete application ? It seems it required a full stack development
@shankarmallam478
@shankarmallam478 2 года назад
@@Javatechie no just apply the leave and approved by manger by using spring boot jpa without hmtl css how many tables required ? How to apply leave from employee side? Plz help me
@rajnishsingh6719
@rajnishsingh6719 2 года назад
Can i download and install intellij trial version without having to renew the license after every 1 month.
@Javatechie
@Javatechie 2 года назад
Yes for that you need to add new email
@rajnishsingh6719
@rajnishsingh6719 2 года назад
@@Javatechie Thanks you 👌
@najeebullahjoya3140
@najeebullahjoya3140 Год назад
cannot pull the image 🙃
@Javatechie
@Javatechie Год назад
Make sure your docker and kubernetes both are in sync. Run $eval command
@girishanker3796
@girishanker3796 5 месяцев назад
push to docker hub with your accountname/imagename
@Kumar-iv9qu
@Kumar-iv9qu 2 года назад
any one can decrypt the password right?
@Javatechie
@Javatechie 2 года назад
Yes this is just demo tutorial buddy . You need to use strong algorithm for encryption
@maven7650
@maven7650 Год назад
please i tried with same solution as you are teaching but the springboot application gives service not found spring.datasource.url= jdbc:mysql://${MYSQL_HOST}/kubernetes?useSSL=false spring.datasource.username = ${MYSQL_USER} spring.datasource.password= = ${MYSQL_PASSWORD}
@maven7650
@maven7650 Год назад
apiVersion: apps/v1 kind: Deployment metadata: name: springboot-application spec: selector: matchLabels: app: springboot-application template: metadata: labels: app: springboot-application spec: containers: - name: spring-application image: spring:latest imagePullPolicy: Never env: - name: MYSQL_USER value: root - name: MYSQL_HOST value: mysql - name: MYSQL_PASSWORD value: root resources: limits: memory: "128Mi" cpu: "500m" ports: - containerPort: 8081
@Javatechie
@Javatechie Год назад
Please first give the mvn build with your local data sources configuration then change data sources value and configure AWS specific data sources then create docker image
@shashankcool
@shashankcool 3 месяца назад
@@Javatechie kindly elaborate this step clearly since I've done below steps but my app pod are failing to bootup due to jdbc connection issue : step 1 -> changed db properties in application.yml file to point to local mysql db so that mvn clean insteall runs successfully . step 2 -> executed docker build -t springboot-crud-k8s:1.0 . step 3 -> changed db properties in application.yml file to refer from configMap & secrets step 4-> applied configMap.yml, secrets.yml, db-deployment.yml & app-deployment.yml files one by one step 5-> checked springboot service pod log in which it is showing jdbc connection error
Далее
ConfigMaps and Secrets in Kubernetes
16:35
Просмотров 12 тыс.