Skip to content

Commit

Permalink
some Fix, start client and fix DEFAULT_REQUEUE_TIME
Browse files Browse the repository at this point in the history
  • Loading branch information
Negashev committed Dec 29, 2023
1 parent 5296251 commit 82bad85
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
4 changes: 3 additions & 1 deletion chart/templates/generator-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ spec:
{{- end }}
- imagePullPolicy: Always
name: tunnel
image: "{{ .Values.tunnel.image }}:{{ .Values.tunnel.tag }}"
image: "{{ .Values.tunnel.image }}:{{ .Values.tunnel.tag }}"
command:
- tcp-over-websocket
args:
- server
- -listen_ws
Expand Down
3 changes: 3 additions & 0 deletions fleet/argo/workflow/fleet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ helm:
- key: "node-role.kubernetes.io/etcd"
operator: "Exists"
controller:
extraEnv:
- name: DEFAULT_REQUEUE_TIME
value: 1s
resources:
requests:
memory: "256Mi"
Expand Down
16 changes: 13 additions & 3 deletions tunnel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@ FROM golang:alpine AS builder
# Build the binary.
RUN go install github.com/trazfr/tcp-over-websocket@latest

FROM scratch
FROM alpine as argo
ADD https://github.com/argoproj/argo-workflows/releases/download/v3.5.2/argo-linux-amd64.gz /argo-linux-amd64.gz
RUN gunzip /argo-linux-amd64.gz
RUN chmod +x argo-linux-amd64

ADD aldaas.sh /aldaas
RUN chmod +x /aldaas

FROM alpine as aldaas
# Copy our static executable.
COPY --from=builder /go/bin/tcp-over-websocket /go/bin/tcp-over-websocket
COPY --from=builder /go/bin/tcp-over-websocket /bin/tcp-over-websocket
COPY --from=argo /argo-linux-amd64 /bin/argo
COPY --from=argo /aldaas /bin/aldaas
# Run the binary.
ENTRYPOINT ["/go/bin/tcp-over-websocket"]
ENTRYPOINT ["/bin/tcp-over-websocket"]
5 changes: 5 additions & 0 deletions tunnel/aldaas.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
ALDAAS_NAMESPACE=aldaas
ALDAAS_AWT=aldaas-chart

argo -n $ALDAAS_NAMESPACE submit --from workflowtemplate/$ALDAAS_AWT --watch

0 comments on commit 82bad85

Please sign in to comment.