diff --git a/helm/templates/deployment-2.yaml b/helm/templates/deployment-2.yaml index 56f30ad..0b0148e 100644 --- a/helm/templates/deployment-2.yaml +++ b/helm/templates/deployment-2.yaml @@ -71,14 +71,17 @@ spec: image: 533267176850.dkr.ecr.us-east-1.amazonaws.com/sample-api-nginx:dev-nginx-latest ports: - containerPort: 8080 - env: - - name: NGINX_PORT - value: "8080" command: ["/bin/sh"] args: - "-c" - | - sed -i 's/listen 80;/listen 8080;/' /etc/nginx/conf.d/default.conf + echo "server { + listen 8080; + location / { + root /usr/share/nginx/html; + index index.html index.htm; + } + }" > /etc/nginx/conf.d/default.conf nginx -g 'daemon off;' {{- with .Values.volumes }} volumes: