Skip to content

Instantly share code, notes, and snippets.

@ZaRqax
Last active September 11, 2024 08:52
Show Gist options
  • Save ZaRqax/82686e413f77f0d3a1302783d3749752 to your computer and use it in GitHub Desktop.
Save ZaRqax/82686e413f77f0d3a1302783d3749752 to your computer and use it in GitHub Desktop.
Linked tree
# List of containers in pod
container:
name: frontend
image:
repository: 752337963330.dkr.ecr.eu-central-1.amazonaws.com/endrex/frontend
ports:
- name: http
number: 8080
protocol: TCP
useSecrets: true
livenessProbe:
httpGet:
path: /
port: http
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: http
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
failureThreshold: 3
secret: endrex-frontend-aws
resources:
limits:
cpu: 500m
memory: 500Mi
requests:
cpu: 200m
memory: 100Mi
env:
- name: REACT_APP_BACKEND_URL
value: "https://api-dev.endrex.net"
service:
type: ClusterIP
ports:
- name: http
number: 8080
protocol: TCP
# List of secret variables. name must coincide with one of container secret names
secrets:
- name: endrex-frontend-aws
backendType: secretsManager
envVars:
- aws_secret_path: endrex/dev/frontend
aws_secret_key: REACT_APP_REST_BACKEND_URL
- aws_secret_path: endrex/dev/frontend
aws_secret_key: REACT_APP_MOCK_URL
- aws_secret_path: endrex/dev/frontend
aws_secret_key: REACT_APP_GOOGLE_TRANSLATE_API_URL
- aws_secret_path: endrex/dev/frontend
aws_secret_key: REACT_APP_GOOGLE_TRANSLATE_API_KEY
- aws_secret_path: endrex/dev/frontend
aws_secret_key: STRIPE_PUBLIC_KEY
- aws_secret_path: endrex/dev/frontend
aws_secret_key: REACT_APP_IMAGES_URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment