Skip to content

Latest commit

 

History

History
116 lines (91 loc) · 3.01 KB

File metadata and controls

116 lines (91 loc) · 3.01 KB

MVP Workshop - Day 2 - As Developer,

Prerequisites

  • Let's select one container in your own registry, accessible from the cluster used during this workshop.
  • Install humctl.
  • Got an invite to join the Humanitec Org as Member.
humctl login
export HUMANITEC_ORG=FIXME

humctl config set org ${HUMANITEC_ORG}

Golden path DEV-1: I want to deploy my Workload

score.yaml:

apiVersion: score.dev/v1b1
metadata:
  name: my-sample-workload
containers:
  my-sample-container:
    image: .
humctl score validate score.yaml --strict
export IMAGE=FIXME

humctl score deploy -f score.yaml --image ${IMAGE} --app ${APP} --env development --wait

Golden path DEV-2: I want to see the status of the Deployment of my Workload

Get the Deployment status:

humctl get deploy . --app ${APP} --env development -o json

Get the Deployment error:

humctl get deploy-error --app ${APP} --env development

Open the Humanitec Portal to see the Deployment status and information:

echo -e "https://app.humanitec.io/orgs/${HUMANITEC_ORG}/apps/${APP}/envs/development/"

You can also see the logs of the running container, by going to the Workload, and then to the Container.

Golden path DEV-3: I want to see which supported resources I can use for my Workload

To see type and class:

humctl score available-resource-types

To see more about inputs and outputs:

humctl score available-resource-types -o json

Golden path DEV-4: I want to expose my Workload via a DNS

score.yaml:

apiVersion: score.dev/v1b1
metadata:
  name: my-sample-workload
containers:
  my-sample-container:
    image: .
resources:
  dns:
    type: dns
  route:
    type: route
    params:
      host: ${resources.dns.host}
      path: /
      port: 8080
service:
  ports:
    tcp:
      port: 8080
      targetPort: 8080
humctl score deploy -f score.yaml --image ${IMAGE} --app ${APP} --env development --wait

Resources