When deploying a stream in Spring Cloud Data Flow (SCDF) for Kubernetes, the web UI displays the following error message:
Could not install AppDeployRequest [[AppDeploymentRequest@#### deploymentProperties = map['spring.cloud.deployer.kubernetes.configMapRefs' -> '####'] ...]]
Spring Cloud Data Flow for Kubernetes 1.6.14 and higher
Spring Cloud Skipper 2.11.x and higher
Starting in SCDF 1.6.14, underlying deployer updates enforce explicit security allow-lists for external resource references. ConfigMap and Secret references are denied by default.
Skipper requires exact, comma-separated resource names configured on the platform account to permit deployment. Wildcard patterns (such as .*) are not supported.
Add the required ConfigMap and Secret names to the Skipper default account allow-list and restart the Skipper deployment.
kubectl set env deployment/skipper \
SPRING_CLOUD_SKIPPER_SERVER_PLATFORM_KUBERNETES_ACCOUNTS_DEFAULT_ALLOWEDCONFIGMAPNAMES="####-configmap-1,####-configmap-2" \
SPRING_CLOUD_SKIPPER_SERVER_PLATFORM_KUBERNETES_ACCOUNTS_DEFAULT_ALLOWEDSECRETNAMES="####-secret-1,####-secret-2" \
-n <your-namespace>
skipper:
config:
spring:
cloud:
skipper:
server:
platform:
kubernetes:
accounts:
default:
allowedConfigMapNames: "<configmap-1>,<configmap-2>"
allowedSecretNames: "<secret-1>,<secret-2>"
kubectl rollout status deployment/skipper -n <your-namespace>