Skip to content

Commit b38e992

Browse files
committed
Deploy pod to OpenShift cluster on IBM Cloud
(cherry picked from commit ac3f13655a948b376d419f9ffa6ad1a21bcbf714)
1 parent 41a5cee commit b38e992

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

openshift-app-sample/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@
3434
COPY --chown=0:0 --from=builder $APP_HOME/openshift-app-sample $APP_HOME
3535
COPY --chown=0:0 --from=builder /opt/mqm /opt/mqm
3636
USER $APP_USER
37-
CMD ["./openshift-app-sample"]
38-
#CMD ["/bin/bash"]
37+
CMD ["./openshift-app-sample"]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: golang-app
5+
spec:
6+
containers:
7+
- name: golang-app
8+
image: uk.icr.io/golang-sample/golang-app:1.0
9+
restartPolicy: OnFailure
10+
imagePullSecrets:
11+
- name: all-icr-io

0 commit comments

Comments
 (0)