Porting documentation from #1536

This commit is contained in:
Ryan Baxter
2023-12-14 16:00:55 -05:00
parent 5020e7a7a4
commit 124faa0086

View File

@@ -28,6 +28,19 @@ In versions of Spring Cloud Kubernetes prior to `3.0.x`, Kubernetes awareness wa
property was removed and is un-supported. Instead, we use Spring Boot API: https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/autoconfigure/condition/ConditionalOnCloudPlatform.html[ConditionalOnCloudPlatform].
If it is needed to explicitly enable or disable this awareness, use `spring.main.cloud-platform=NONE/KUBERNETES`.
- Another breaking change is the additional `list` verb needed for loading configmaps/secrets. For example:
```
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cluster-role
rules:
- apiGroups: ["", "extensions", "apps", "discovery.k8s.io"]
resources: ["configmaps", "pods", "services", "endpoints", "secrets", "endpointslices"]
verbs: ["get", "list", "watch"]
```
[[kubernetes-profile-autoconfiguration]]
== Kubernetes Profile Autoconfiguration