I am working on migrating a spring boot app to kubernetes which is currently placed on PCF and it is using a configuration class where it is getting values from VCAP_SERVICES that is picked up using the environment.getProperty().
I need to know how to manage this on AKS as I think VCAP_Service is PCF specific.
Please help.
In Kubernetes, you would use ConfigMap + Secret as a replacement for VCAP_Service. Example of ConfigMap file called max_allowed_packet.cnf:
Example of a secret file called mysql-secret.yaml:
kubectl apply -f mysql-secret.yaml
References: https://opensource.com/article/19/6/introduction-kubernetes-secrets-and-configmaps#:~:text=Kubernetes%20has%20two%20types%20of,or%20volumes%20or%20environment%20variables.
https://cloudnative101.dev/electives/cf-to-k8s/