This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: root-shell | |
| namespace: kube-system | |
| spec: | |
| containers: | |
| - name: shell | |
| image: alpine | |
| command: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM --platform=linux/amd64 golang:1.20-alpine3.18 AS build | |
| RUN wget -P / https://github.com/libopenstorage/stork/archive/refs/tags/v23.11.0.tar.gz | |
| RUN tar -xzf /v23.11.0.tar.gz | |
| RUN cd stork-23.11.0/cmd/storkctl/; go install | |
| FROM --platform=linux/amd64 alpine:3.18 | |
| COPY --from=build /go/bin/storkctl /root/go/bin/storkctl |