-
Golden path DEV-1: I want to deploy my Workload
-
Golden path DEV-2: I want to see the status of the Deployment of my Workload
-
Golden path DEV-3: I want to see which supported resources I can use for my Workload
-
Golden path DEV-4: I want to expose my Workload via a DNS
-
Golden path DEV-2: I want to see the status of the Deployment of my Workload
-
Golden path DEV-3: I want to see which supported resources I can use for my Workload
- 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 loginexport HUMANITEC_ORG=FIXME
humctl config set org ${HUMANITEC_ORG}score.yaml:
apiVersion: score.dev/v1b1
metadata:
name: my-sample-workload
containers:
my-sample-container:
image: .humctl score validate score.yaml --strictexport IMAGE=FIXME
humctl score deploy -f score.yaml --image ${IMAGE} --app ${APP} --env development --waitGet the Deployment status:
humctl get deploy . --app ${APP} --env development -o jsonGet the Deployment error:
humctl get deploy-error --app ${APP} --env developmentOpen 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.
To see type and class:
humctl score available-resource-typesTo see more about inputs and outputs:
humctl score available-resource-types -o jsonscore.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: 8080humctl score deploy -f score.yaml --image ${IMAGE} --app ${APP} --env development --wait