Giter VIP home page Giter VIP logo

springboot-crud-k8s's Introduction

springboot-crud-k8s

Run & Deploy Spring Boot CRUD Application With MySQL on K8S

Kubernetes Status

[ec2-user@ip-172-31-85-97 ~]$ k get all
NAME                                              READY   STATUS    RESTARTS      AGE
pod/angular-app                                   1/1     Running   4 (11h ago)   42h
pod/mysql-fb4dd8d-k9sp6                           1/1     Running   1 (11h ago)   14h
pod/springboot-crud-deployment-7f9bb7cfdb-8946p   1/1     Running   0             92m
pod/springboot-crud-deployment-7f9bb7cfdb-mnnrd   1/1     Running   0             92m
pod/springboot-crud-deployment-7f9bb7cfdb-xsmjz   1/1     Running   0             12h

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/kubernetes ClusterIP 10.96.0.1 443/TCP 20d service/mysql NodePort 10.97.199.243 3306:31819/TCP 12h service/springboot-crud-svc NodePort 10.110.62.170 8080:30463/TCP 12h

NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/mysql 1/1 1 1 14h deployment.apps/springboot-crud-deployment 3/3 3 3 12h

NAME DESIRED CURRENT READY AGE replicaset.apps/mysql-fb4dd8d 1 1 1 14h replicaset.apps/springboot-crud-deployment-7f9bb7cfdb 3 3 3 12h replicaset.apps/springboot-crud-deployment-7fb5f8fc9c 0 0 0 12h

[ec2-user@ip-172-31-85-97 ~]$ k port-forward service/springboot-crud-svc --address=0.0.0.0 8080:8080 Forwarding from 0.0.0.0:8080 -> 8989 Handling connection for 8080

^C[ec2-user@ip-172-31-85-97 ~]$ k get po NAME READY STATUS RESTARTS AGE angular-app 1/1 Running 4 (11h ago) 42h mysql-fb4dd8d-k9sp6 1/1 Running 1 (11h ago) 14h springboot-crud-deployment-7f9bb7cfdb-8946p 1/1 Running 0 70m springboot-crud-deployment-7f9bb7cfdb-mnnrd 1/1 Running 0 70m springboot-crud-deployment-7f9bb7cfdb-xsmjz 1/1 Running 0 11h [ec2-user@ip-172-31-85-97 ~]$ k port-forward service/springboot-crud-svc --address=0.0.0.0 8080:8080 Forwarding from 0.0.0.0:8080 -> 8989 Handling connection for 8080

Spring Application

Minikube Dashboard

[ec2-user@ip-172-31-85-97 ~]$ minikube dashboard
* Verifying dashboard health ...
* Launching proxy ...
* Verifying proxy health ...
* Opening http://127.0.0.1:37925/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/ in your default browser...
  http://127.0.0.1:37925/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/

Started kube proxy to view dashboard in browser

Kubernetes Dashboard

[ec2-user@ip-172-31-85-97 ~]$ k proxy --address=0.0.0.0 --accept-hosts '.*'
Starting to serve on [::]:8001

springboot-crud-k8s's People

Contributors

krreesh avatar basahota avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.