Cluster information:
Kubernetes version: 1.24
Cloud being used: AWS EKS
Installation method: EKS
Information,
I am running GO application; We have two files in the container that I want to run in our cluster.
- main.go
- worker.go.
I have built one image containing both files.
FROM golang:1.17
RUN mkdir /app
ADD . /app
WORKDIR /app
RUN apt update
RUN apt install -y postgresql-client git gcc musl-dev tar curl
RUN go mod download
RUN go get -tags 'mongodb' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
In deployment, I have passed the following command and args.
command: ["go"]
args: ["run", "/app/main.go"]
During the container startup, I am getting an error
go run /app/main.go: unknown command
Run 'go help run' for usage.
I am missing something small here.
Thanks