Skip to content

Repository to test the integration between spring-boot:3 and spring-cloud-starter-kubernetes-client-config

Notifications You must be signed in to change notification settings

BartPraats/test-live-secrets-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-live-secrets-k8s

Repository to test the integration between spring-boot:3 and spring-cloud-starter-kubernetes-client-config

Run locally:

  1. Run mvn clean install
  2. Run docker build --tag test-live-secrets-k8s:latest .
  3. Run cd ./helm/test-live-secrets-k8s
  4. Run helm upgrade --install --values values-dev.yaml --set secrets.someSecret=<override-value> test-live-secrets-k8s .
  5. Run kubectl get pods and look for your pod. Copy the pods name.
  6. Run kubectl port-forward <pod-name> 8080:80802
  7. Browse to localhost:8080/v1/secret, and you should see the values passed in step 4.

If you now change any of the values and call localhost:8080/actuator/refresh endpoint on the application the value changes should be reflected when calling localhost:8080/v1/secret.

About

Repository to test the integration between spring-boot:3 and spring-cloud-starter-kubernetes-client-config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published