Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version:
Client Version: v1.25.0
Kustomize Version: v4.5.7
Server Version: v1.26.4
Installation method: Bare-and-metal on a VM
Host OS: Ubuntu 22
Hi, I am trying a simple deployment with an alpine image (built by myself as well as using vandot/alpine-bash). Deployment gets created then I have 0/1 ready and see CrashLoopBackOff in the pod details. In spite of the fact that when I use docker run for both images everything works fine and I am able to access the bash in the container.
You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.
Here is the the deployment yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: openjdk8alpine-with-bash
namespace: debugservices
spec:
replicas: 1
selector:
matchLabels:
app: openjdk8alpine-with-bash
template:
metadata:
labels:
app: openjdk8alpine-with-bash
spec:
containers:
- image: eliassal/openjdk:8-jdk-alpine-with-bash
name: alpine-with-bash
or
image: vandot/alpine-bash
Here is the dockerfile that I used to build the alpine image with bash
FROM openjdk:8-jdk-alpine
MAINTAINER baeldung.com
RUN apk update && apk add bash
CMD /bin/bash