Skip to content

Instantly share code, notes, and snippets.

@jruels
Last active July 12, 2022 21:10
Show Gist options
  • Save jruels/932bf7ba1099c3e728d52871a1e20ff8 to your computer and use it in GitHub Desktop.
Save jruels/932bf7ba1099c3e728d52871a1e20ff8 to your computer and use it in GitHub Desktop.
Helm-microservice-frontend
apiVersion: apps/v1
kind: Deployment
metadata:
name: ecsdemo-frontend
labels:
app: ecsdemo-frontend
namespace: default
spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
app: ecsdemo-frontend
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: ecsdemo-frontend
spec:
containers:
- name: ecsdemo-frontend
image: "{{ .Values.frontend.image }}:{{ .Values.version }}"
ports:
- containerPort: 3000
protocol: TCP
env:
- name: CRYSTAL_URL
value: "http://ecsdemo-crystal.default.svc.cluster.local/crystal"
- name: NODEJS_URL
value: "http://ecsdemo-nodejs.default.svc.cluster.local/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment