Skip to content

Instantly share code, notes, and snippets.

@jruels
Created July 12, 2022 21:07
Show Gist options
  • Save jruels/d47dd34dff7fcb3328f59a6f802275a2 to your computer and use it in GitHub Desktop.
Save jruels/d47dd34dff7fcb3328f59a6f802275a2 to your computer and use it in GitHub Desktop.
Helm-microservices-templates nodejs
apiVersion: apps/v1
kind: Deployment
metadata:
name: ecsdemo-nodejs
labels:
app: ecsdemo-nodejs
namespace: default
spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
app: ecsdemo-nodejs
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: ecsdemo-nodejs
spec:
containers:
- image: "{{ .Values.nodejs.image }}:{{ .Values.version }}"
imagePullPolicy: Always
name: ecsdemo-nodejs
ports:
- containerPort: 3000
protocol: TCP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment