Skip to content

Create a command to deploy frontend applications in Kubernetes #1011

@aabedraba

Description

@aabedraba

Would be cool if we enabled frontend developers to deploy their containerized web applications simply with Kusk.

A command like

kusk deploy pages --container dockerhub/containername

Under the hood it would create a deployment and expose it

kubectl create deployment web-app --image=usernameweb-application
kubectl expose deployment web-app --name web-app-svc --port=3000

and then it would create a simple StaticRoute and connect it:

apiVersion: gateway.kusk.io/v1alpha1
kind: StaticRoute
metadata:
  name: web-app-static-route
spec:
  fleet:
    name: kusk-gateway-envoy-fleet
    namespace: kusk-system
  upstream:
    service:
      name: web-app-svc
      namespace: default
      port: 3000

Alternatively, if that's complicated, we could just create the StaticRoute given a service name:

kusk deploy pages --service web-app 

Which would create the StaticRoute under-the-hood.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions