You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works well. Now I want to create deployment and services for this compose file.
As mentioned in docs kompose -f docker-compose.yml convert
It generates 5 files
INFO file "redis-service.yaml" created
INFO file "web-service.yaml" created
INFO file "redis-deployment.yaml" created
INFO file "web-deployment.yaml" created
INFO file ".-persistentvolumeclaim.yaml" created
When trying to run the deployment, kubectl create -f web-deployment.yaml I get an error
The Deployment "web" is invalid:
* spec.template.spec.volumes[0].name: Invalid value: ".": a DNS-1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?')
* spec.template.spec.containers[0].volumeMounts[0].name: Not found: "."
Whats gone wrong? How to rectify? Redis works fine, issues with web.
Following is my compose file
It works well. Now I want to create deployment and services for this compose file.
As mentioned in docs
kompose -f docker-compose.yml convert
It generates 5 files
When trying to run the deployment,
kubectl create -f web-deployment.yaml
I get an errorWhats gone wrong? How to rectify? Redis works fine, issues with web.
Files
Web Deployment - https://gist.github.com/codecraf8/5d41c752658ac6c2ec348befa3b89356
Web Service - https://gist.github.com/codecraf8/4cf6d4a34b71d74a0856e4c2b0dde795
.-persistentvolumeclaim.yaml -
https://gist.github.com/codecraf8/87c2809f8e49b318ce1cdbc5d590c4cd
The text was updated successfully, but these errors were encountered: