first commit
This commit is contained in:
83
s3-nodejs-api/k8s/deployment.yaml
Normal file
83
s3-nodejs-api/k8s/deployment.yaml
Normal file
@@ -0,0 +1,83 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: s3-audio-streamer
|
||||
labels:
|
||||
app: s3-audio-streamer
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: s3-audio-streamer
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: s3-audio-streamer
|
||||
spec:
|
||||
containers:
|
||||
- name: s3-audio-streamer
|
||||
image: gitea-http.taildb3494.ts.net/will/s3-audio-streamer
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
env:
|
||||
- name: AWS_ACCESS_KEY_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: aws-secret
|
||||
key: access-key-id
|
||||
- name: AWS_SECRET_ACCESS_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: aws-secret
|
||||
key: secret-access-key
|
||||
- name: AWS_REGION
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: audio-streamer-config
|
||||
key: AWS_REGION
|
||||
- name: S3_BUCKET
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: audio-streamer-config
|
||||
key: S3_BUCKET
|
||||
- name: S3_ENDPOINT
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: audio-streamer-config
|
||||
key: S3_ENDPOINT
|
||||
- name: S3_FORCE_PATH_STYLE
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: audio-streamer-config
|
||||
key: S3_FORCE_PATH_STYLE
|
||||
- name: S3_PREFIX
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: audio-streamer-config
|
||||
key: S3_PREFIX
|
||||
- name: PORT
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: audio-streamer-config
|
||||
key: PORT
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 3000
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 3000
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 20
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "500m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "1"
|
||||
imagePullSecrets:
|
||||
- name: gitea-reg
|
||||
Reference in New Issue
Block a user