Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,7 @@ deploy-production: push install-production
gotags:
@gotags -R . > tags
@echo "GoTags written to $(PWD)/tags"

.PHONY: argo-workflow-lint
argo-workflow-lint:
@argo lint ./chart/infra-server/static/workflow*.yaml
18 changes: 16 additions & 2 deletions TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ STEP PODNAME DURATION ARTIFACTS MESSAGE

To get logs from a step, run:

(it's just a pod, so `kubectl logs ...` would also work)

```
argo logs demo-mxgf9-3875809567 | head -n 20
[PASS] /tmp/google-credentials.json (GCP service account credential file)
Expand All @@ -91,6 +89,15 @@ argo logs demo-mxgf9-3875809567 | head -n 20
[PASS] DOCKER_IO_USERNAME (username for Docker Hub)
```

The workflow steps are just pod executions, so `kubectl logs ...` also works:
```
MY_CLUSTER_NAME=demo-mxgf9
WORKFLOW_STEP_POD_ID=$(argo get oc-init-bundle-test -o json | jq -r '.status.nodes[] | select(.type=="Pod") | select(.displayName=="create") | .id')
kubectl logs $WORKFLOW_STEP_POD_ID -c 'main'
# Retrieving logs via argo cli obviates the need to specify the container
argo logs $MY_CLUSTER_NAME $WORKFLOW_STEP_POD_ID --follow
```

If a step is stuck in a pending state (e.x. a referenced secret doesn't exist),
`argo get` should show that information. Otherwise `kubectl describe po ...` can
be used to see exact reasons.
Expand Down Expand Up @@ -130,3 +137,10 @@ eks-2h8gb Running (Suspended) 24m 24m 0
# and can be resumed to test steps after that i.e. delete
$ argo resume eks-2h8gb
```

## View the Argo Workflows web interface

```
kubectl -n argo port-forward deployment/argo-server 2746:2746
open http://localhost:2746/workflows/
```
3 changes: 0 additions & 3 deletions chart/infra-server/static/workflow-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
generateName: aks-
spec:
entrypoint: start
onExit: stop
arguments:
parameters:
- name: name
Expand All @@ -28,8 +27,6 @@ spec:
- - name: wait
template: wait

- name: stop
steps:
- - name: destroy
template: destroy

Expand Down
3 changes: 0 additions & 3 deletions chart/infra-server/static/workflow-eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
generateName: eks-
spec:
entrypoint: start
onExit: stop
arguments:
parameters:
- name: name
Expand All @@ -26,8 +25,6 @@ spec:
- - name: wait
template: wait

- name: stop
steps:
- - name: destroy
template: destroy

Expand Down
4 changes: 0 additions & 4 deletions chart/infra-server/static/workflow-gke-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
generateName: gke-default-
spec:
entrypoint: start
onExit: stop
arguments:
parameters:
- name: name
Expand All @@ -29,9 +28,6 @@ spec:
template: create
- - name: wait
template: wait

- name: stop
steps:
- - name: destroy
template: destroy
arguments:
Expand Down
3 changes: 0 additions & 3 deletions chart/infra-server/static/workflow-kops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
generateName: kops-
spec:
entrypoint: start
onExit: stop
arguments:
parameters:
- name: name
Expand Down Expand Up @@ -42,8 +41,6 @@ spec:
- - name: wait
template: wait

- name: stop
steps:
- - name: destroy
template: destroy

Expand Down
4 changes: 0 additions & 4 deletions chart/infra-server/static/workflow-openshift-lite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
generateName: openshift-lite-
spec:
entrypoint: start
onExit: stop
arguments:
parameters:
- name: name
Expand All @@ -25,9 +24,6 @@ spec:

- - name: wait
template: wait

- name: stop
steps:
- - name: destroy
template: destroy
arguments:
Expand Down
4 changes: 0 additions & 4 deletions chart/infra-server/static/workflow-openshift-multi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
generateName: openshift-multi-
spec:
entrypoint: start
onExit: stop
arguments:
parameters:
- name: name
Expand All @@ -28,9 +27,6 @@ spec:

- - name: wait
template: wait

- name: stop
steps:
- - name: destroy
template: destroy
arguments:
Expand Down