vmaleze / demo-k8s

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started

  • Start minikube

    • Start the dashboard => minikube dashboard
  • Create a first µs using spring

    • Add a route
    • Setup Docker config
    • Build and tag image then push it to your docker repo
    • Deploy it via the dashboard
    • Get the Deployment.yml for further usage
    • Setup the service kubectl expose deployment my-service --type=LoadBalancer --port=80 --target-port=8080
    • Verify that everything works
    • Add readinessProbe on actuator endpoint
  • Create a second µs following the previous setup

    • Make it call the first one using a config variable
    • Create the config map kubectl create configmap client-config --from-file=<myapplicationprop.yml>
    • Edit your Deployment.yml to use the configmap
    • In your config map, use the service-name of the first application as the url to call
    • It should work

About


Languages

Language:Java 82.4%Language:Dockerfile 17.6%