Skip to content

kubernetes error - Back-off restarting failed container #1

@metturarun

Description

@metturarun

Hi,

I have created Docker image and pushed to AWS ECR. When trying to pull the image from ECR, during pod creation in kubernetes (v 1.9.0) getting the error "Back-off restarting failed container"

Below steps, i followed.

  1. Docker pull centos 7

  2. Then ssh to the container and installed oracle java 8. Then commit the image. Pushed to ECR.

when try to create Replication controller. Getting the error above mentioned.

my replicationcontroller yaml file below

apiVersion: v1
kind: ReplicationController
metadata:
name: springboot-dev
spec:
replicas: 3
template:
metadata:
name: springboot-dev
namespace: default
labels:
env: springboot-dev
spec:
containers:
- name: springboot-dev
image: xxxxx5.dkr.ecr.eu-central-1.amazonaws.com/repo:ubuntu16-java8
resources:
limits:
memory: "2000Mi"
requests:
memory: "1000Mi"
volumeMounts:
- name: springboot-jar
mountPath: "/var/www/jar"
volumes:
- name: springboot-jar
persistentVolumeClaim:
claimName: springboot-dev-pvc1
nodeSelector:
noderole: appservernode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions