Docker Community Forums

Share and learn in the Docker community.

Pod in CrashLoopBackOff State

I am getting below error while deploying
nginx: [emerg] unexpected “}” in /etc/nginx/conf.d/default.conf:8, can some pls share some info?

client-pod
apiVersion: v1
kind: Pod
metadata:
name: client-pod
labels:
component: web
spec:
containers:
- name: client
image: ckrom/doc-multi-client
ports:
- containerPort: 3000

nginx/default.conf

server {
listen 3000;

location / {
    root /usr/share/nginx/html;
    index index.html index.htm;
    try_files $uri $uri/ /index.html;  
}

}