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

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ม.ค. 2025

ความคิดเห็น • 75

  • @RaviShankar-xy6zh
    @RaviShankar-xy6zh 3 ปีที่แล้ว +3

    You always keep us updated with your updated videos on updated technologies. Thankyou for such beautiful videos buddy.

  • @gopisambasivarao5282
    @gopisambasivarao5282 ปีที่แล้ว +1

    Thanks, Basant, for your wonderful efforts.

  • @himanshubhusanrath212
    @himanshubhusanrath212 2 ปีที่แล้ว +3

    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 😊

  • @harkirehal8243
    @harkirehal8243 2 ปีที่แล้ว +1

    wow, man! This is really clearly explained. No nonsense. Loved the video.

  • @rishikesharora8681
    @rishikesharora8681 3 ปีที่แล้ว +1

    pretty useful content as per industry standard 😍😍😍😍😍🙌🙌🙌🙌🙌

  • @joseroblesv
    @joseroblesv 2 หลายเดือนก่อน +1

    Thanks for your course :) Very helpful for my new job

  • @vivekguptacs
    @vivekguptacs 3 ปีที่แล้ว +1

    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  3 ปีที่แล้ว

      Thanks buddy for update definitely i will check other one

  • @mutturajdeval4841
    @mutturajdeval4841 3 ปีที่แล้ว

    ತುಂಬಾ ಚೆನ್ನಾಗಿದೆ ಸರ್ 😀

  • @abinthomas12914
    @abinthomas12914 3 ปีที่แล้ว +1

    My fav ❤️ teacher. Thank you 👍

  • @sharmarahul17
    @sharmarahul17 5 หลายเดือนก่อน +1

    Great explanation. Thank you!

  • @mobinshah1
    @mobinshah1 3 ปีที่แล้ว +1

    Awesome tutorial. You are the best sir.

  • @uma_mataji
    @uma_mataji 2 ปีที่แล้ว +1

    Amazing sessions,Thank you.

  • @AshishYadav-se4db
    @AshishYadav-se4db 3 ปีที่แล้ว +1

    Awesome content sir
    Thank u so much sir ❤️

  • @sraynitjsr
    @sraynitjsr 3 ปีที่แล้ว +1

    Brilliant video, thank you Sir 🔥🙂💯

  • @MrAnasSov
    @MrAnasSov 3 ปีที่แล้ว +1

    Thank you so much for your truly amazing content ! Keep up the great work 👍🏻

  • @DevendraSingh09.jan.98
    @DevendraSingh09.jan.98 ปีที่แล้ว +1

    nice video

  • @sandipram4601
    @sandipram4601 ปีที่แล้ว +1

    found informative

  • @mukeshmahadev7419
    @mukeshmahadev7419 2 ปีที่แล้ว +1

    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  2 ปีที่แล้ว

      Thanks Mukesh . Going forward i will look into it

  • @2RAJ21
    @2RAJ21 3 วันที่ผ่านมา +1

    Thank you

  • @pratishrutipanda6461
    @pratishrutipanda6461 3 ปีที่แล้ว +1

    Nice content

  • @harishk4926
    @harishk4926 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

      Sure will do harish

  • @dedication17
    @dedication17 ปีที่แล้ว

    THank you sir

  • @shubhamjumde9076
    @shubhamjumde9076 3 ปีที่แล้ว +1

    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  3 ปีที่แล้ว

      In k8s or plain application what's your question ❓

    • @shubhamjumde9076
      @shubhamjumde9076 3 ปีที่แล้ว

      @@Javatechie In k8s. Actually, I am using openshift.

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว +1

      I will check and update

  • @shivomkumar628
    @shivomkumar628 2 ปีที่แล้ว +1

    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  2 ปีที่แล้ว

      You are correct there is a way to encrypt and decrypt at runtime

    • @shivomkumar628
      @shivomkumar628 2 ปีที่แล้ว +1

      @@Javatechie can you please add a video for the same , i guess it would be great to learn that as well

  • @mohanrathod5291
    @mohanrathod5291 3 ปีที่แล้ว +1

    Thanks for making videos with latest versions... If possible can you make video to deploy into AWS EKS

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Yes I will upload that in next weekend

  • @anm_15
    @anm_15 2 ปีที่แล้ว +1

    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.

  • @tusharrai9762
    @tusharrai9762 5 หลายเดือนก่อน

    can we create replicas for mysql? if yes then how do we maintain db transaction ..

  • @coolanimals500
    @coolanimals500 9 หลายเดือนก่อน

    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 ?

  • @rohitmanohar2733
    @rohitmanohar2733 2 ปีที่แล้ว

    How to encryption and decryption in windows as echo -n 'root' | base64 is not supported in windows command line tool

  • @idouxda
    @idouxda 2 ปีที่แล้ว +1

    We don't want to commit any passwords to our git repo. Could I use a Spring Config Server that uses Vault?

  • @Dakshithnaresh
    @Dakshithnaresh 3 ปีที่แล้ว +1

    Thanks buddy...

  • @SanthoshkumarNagulanchi
    @SanthoshkumarNagulanchi ปีที่แล้ว +1

    How to maintain diff screts for diff environments?

    • @Javatechie
      @Javatechie  ปีที่แล้ว

      Approach will be the same only you need to configure the value specific to the environment .

  • @shankarmallam478
    @shankarmallam478 3 ปีที่แล้ว +1

    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  3 ปีที่แล้ว

      You want complete application ? It seems it required a full stack development

    • @shankarmallam478
      @shankarmallam478 3 ปีที่แล้ว

      @@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

  • @sirfinsaan
    @sirfinsaan 2 ปีที่แล้ว +1

    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 2 ปีที่แล้ว

      Same issue I'm facing.. No error but app not accessible.

    • @girishanker3796
      @girishanker3796 9 หลายเดือนก่อน

      Try using this command :- minikube service --url
      instead of node port and node host

  • @rajnishsingh6719
    @rajnishsingh6719 3 ปีที่แล้ว +1

    Can i download and install intellij trial version without having to renew the license after every 1 month.

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว +1

      Yes for that you need to add new email

    • @rajnishsingh6719
      @rajnishsingh6719 3 ปีที่แล้ว

      @@Javatechie Thanks you 👌

  • @saravanakumara5602
    @saravanakumara5602 3 ปีที่แล้ว +1

    Bro, Can you please put video for Kubernetes cluster with CRI-O container runtime ?

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      I am not aware about this will check and try

  • @mehmetnamver914
    @mehmetnamver914 2 ปีที่แล้ว +2

    But Base64 is not encrption

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว +1

      You can use other algorithms

  • @najeebullahjoya3140
    @najeebullahjoya3140 2 ปีที่แล้ว +1

    cannot pull the image 🙃

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว

      Make sure your docker and kubernetes both are in sync. Run $eval command

    • @girishanker3796
      @girishanker3796 9 หลายเดือนก่อน

      push to docker hub with your accountname/imagename

  • @Kumar-iv9qu
    @Kumar-iv9qu 3 ปีที่แล้ว +1

    any one can decrypt the password right?

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Yes this is just demo tutorial buddy . You need to use strong algorithm for encryption

  • @maven7650
    @maven7650 2 ปีที่แล้ว

    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 2 ปีที่แล้ว

      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  2 ปีที่แล้ว

      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 8 หลายเดือนก่อน

      @@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