JWT Config for Spring Boot
deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: "your-team-namespace"
name: "test-app"
labels:
app: "test-app"
spec:
selector:
matchLabels:
app: "test-app"
template:
metadata:
name: "test-app"
spec:
containers:
- name: "test-app"
image: "gjensidige.azurecr.io/test-app:12345"
volumeMounts:
- name: "jwt-config-volume"
mountPath: "/mnt/jwt-config"
volumes:
- name: "jwt-config-volume"
configMap:
name: "jwt-config"
src/main/resources/application.yaml
gje:
security:
tomcat:
tai-plus:
jwt-config-location: "file:/mnt/jwt-config/JWTConfig.properties"