-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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.
-
Docker pull centos 7
-
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