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
Implement a new kyma app push command that deploys k8s resources that are necessary to transform docker image definition (dockerfile) into an application.
For example (just a proposal at this stage)
//will use Dockerfile from the current folder
kyma app push --name foo
//will use Dockerfile from the bar folder and use custom port 8080
kyma app push --name foo --dockerfile bar/Dockerfile --expose 8080
//will not build the image but simply use nginx as app's imagekyma app push --name mynginx --image nginx:latest
AC
The command should:
should be available in command palette as soon as the connection to cluster is established (kubeconfig context is set)
locate the dockerfile (lookup in the current folder by default),
fail if no dockerfile was found and no --image flag was used,
build the image if needed
push the image to the registry (the command should read the in-cluster's docker registry config.json) if needed
fail if --dockerfile option is used but no docker registry module is available in the cluster
apply deployment (making use of exposed port information read from dockerfile)
apply k8s service (making use of the port information read from dockerfile)
(if api-gateway module is enabled) apply api-rule to expose all paths for the default, or user provided port and using the app name as a hostname
The definition of the command should be part of docker-registry module.
Presence of api-gateway module should extend the command's default capability by adding the api-rule on top.
Description
Implement a new
kyma app push
command that deploys k8s resources that are necessary to transform docker image definition (dockerfile) into an application.For example (just a proposal at this stage)
AC
The command should:
dockerfile
(lookup in the current folder by default),--image
flag was used,config.json
) if needed--dockerfile
option is used but no docker registry module is available in the clusterThe definition of the command should be part of docker-registry module.
Presence of api-gateway module should extend the command's default capability by adding the api-rule on top.
Execution
push
command to deploy an image by name #2238Reasons
Kyma users need a simple way to deploy containerised application without having any kubernetes knowledge.
The text was updated successfully, but these errors were encountered: