As @Sukumar commented, you need to have your Dockerfile have a Command to run or have your ReplicationController specify a command.
The pod is crashing because it starts up then immediately exits, thus Kubernetes restarts and the cycle continues.
More Related Contents:
- How do I access the Kubernetes api from within a pod container?
- How kubectl port-forward works?
- Tell when Job is Complete
- What’s the best way to share/mount one file into a pod?
- Ingress vs Load Balancer
- Restart pods when configmap updates in Kubernetes?
- How can I edit a Deployment without modify the file manually?
- Connect to local database from inside minikube cluster
- Inject node labels into Kubernetes pod
- Is it possible to Autoscale Akka
- Checking kubernetes pod CPU and memory
- Minikube expose MySQL running on localhost as service
- Allow scheduling of pods on Kubernetes master?
- How to assign a namespace to certain nodes?
- Does kubectl port-forward ignore loadBalance services?
- How to rolling restart pods without changing deployment yaml in kubernetes?
- Nginx Ingress Controller – Failed Calling Webhook
- How to schedule pods restart
- how to pass environment variable in kubectl deployment?
- Kubernetes ConfigMap size limitation
- What is a headless service, what does it do/accomplish, and what are some legitimate use cases for it?
- CircleCI message “error: exec plugin: invalid apiVersion “client.authentication.k8s.io/v1alpha1”
- How to access/expose kubernetes-dashboard service outside of a cluster?
- Can I set custom ports for a Kubernetes ingress to listen on besides 80 / 443?
- 413 error with Kubernetes and Nginx ingress controller
- How do I set ulimit for containers in Kubernetes?
- gcloud ingress loadbalancer / static ip
- Kubernetes Persistent Volume Access Modes: ReadWriteOnce vs ReadOnlyMany vs ReadWriteMany
- Listing all resources in a namespace
- Renew kubernetes pki after expired