switch from Pod to Deployment
ci / build (push) Failing after 1m56s Details

This commit is contained in:
CJ_Clippy 2024-07-17 00:13:35 -08:00
parent 3c04266d58
commit 7773267d20
1 changed files with 123 additions and 104 deletions

View File

@ -25,111 +25,130 @@ metadata:
namespace: futureporn namespace: futureporn
labels: labels:
app.kubernetes.io/name: strapi app.kubernetes.io/name: strapi
apiVersion: apps/v1
kind: Deployment
metadata:
name: strapi
namespace: futureporn
labels:
app.kubernetes.io/name: strapi
spec: spec:
containers: replicas: 2
- name: strapi selector:
image: "{{ .Values.strapi.imageName }}" matchLabels:
ports: app: strapi
- name: http template:
containerPort: 1339 metadata:
env: labels:
- name: ADMIN_JWT_SECRET app: strapi
valueFrom: spec:
secretKeyRef: containers:
name: strapi - name: strapi
key: adminJwtSecret image: "{{ .Values.strapi.imageName }}"
- name: API_TOKEN_SALT ports:
valueFrom: - name: http
secretKeyRef: containerPort: 1339
name: strapi env:
key: apiTokenSalt - name: ADMIN_JWT_SECRET
- name: APP_KEYS valueFrom:
valueFrom: secretKeyRef:
secretKeyRef: name: strapi
name: strapi key: adminJwtSecret
key: appKeys - name: API_TOKEN_SALT
- name: DATABASE_URL valueFrom:
valueFrom: secretKeyRef:
secretKeyRef: name: strapi
name: strapi key: apiTokenSalt
key: databaseUrl - name: APP_KEYS
- name: CDN_BUCKET_USC_URL valueFrom:
valueFrom: secretKeyRef:
secretKeyRef: name: strapi
name: strapi key: appKeys
key: cdnBucketUscUrl - name: DATABASE_URL
- name: DATABASE_CLIENT valueFrom:
value: postgres secretKeyRef:
- name: DATABASE_HOST name: strapi
value: postgresql-primary.futureporn.svc.cluster.local key: databaseUrl
- name: DATABASE_NAME - name: CDN_BUCKET_USC_URL
value: futureporn-strapi valueFrom:
- name: JWT_SECRET secretKeyRef:
valueFrom: name: strapi
secretKeyRef: key: cdnBucketUscUrl
name: strapi - name: DATABASE_CLIENT
key: jwtSecret value: postgres
- name: MUX_PLAYBACK_RESTRICTION_ID - name: DATABASE_HOST
valueFrom: value: postgresql-primary.futureporn.svc.cluster.local
secretKeyRef: - name: DATABASE_NAME
name: strapi value: futureporn-strapi
key: muxPlaybackRestrictionId - name: JWT_SECRET
- name: MUX_SIGNING_KEY_ID valueFrom:
valueFrom: secretKeyRef:
secretKeyRef: name: strapi
name: strapi key: jwtSecret
key: muxSigningKeyId - name: MUX_PLAYBACK_RESTRICTION_ID
- name: MUX_SIGNING_KEY_PRIVATE_KEY valueFrom:
valueFrom: secretKeyRef:
secretKeyRef: name: strapi
name: strapi key: muxPlaybackRestrictionId
key: muxSigningKeyPrivateKey - name: MUX_SIGNING_KEY_ID
- name: NODE_ENV valueFrom:
value: production secretKeyRef:
- name: S3_USC_BUCKET_APPLICATION_KEY name: strapi
valueFrom: key: muxSigningKeyId
secretKeyRef: - name: MUX_SIGNING_KEY_PRIVATE_KEY
name: strapi valueFrom:
key: s3UscBucketApplicationKey secretKeyRef:
- name: S3_USC_BUCKET_ENDPOINT name: strapi
valueFrom: key: muxSigningKeyPrivateKey
secretKeyRef: - name: NODE_ENV
name: strapi value: production
key: s3UscBucketEndpoint - name: S3_USC_BUCKET_APPLICATION_KEY
- name: S3_USC_BUCKET_KEY_ID valueFrom:
valueFrom: secretKeyRef:
secretKeyRef: name: strapi
name: strapi key: s3UscBucketApplicationKey
key: s3UscBucketKeyId - name: S3_USC_BUCKET_ENDPOINT
- name: S3_USC_BUCKET_NAME valueFrom:
valueFrom: secretKeyRef:
secretKeyRef: name: strapi
name: strapi key: s3UscBucketEndpoint
key: s3UscBucketName - name: S3_USC_BUCKET_KEY_ID
- name: S3_USC_BUCKET_REGION valueFrom:
valueFrom: secretKeyRef:
secretKeyRef: name: strapi
name: strapi key: s3UscBucketKeyId
key: s3UscBucketRegion - name: S3_USC_BUCKET_NAME
- name: SENDGRID_API_KEY valueFrom:
valueFrom: secretKeyRef:
secretKeyRef: name: strapi
name: strapi key: s3UscBucketName
key: sendgridApiKey - name: S3_USC_BUCKET_REGION
- name: TRANSFER_TOKEN_SALT valueFrom:
valueFrom: secretKeyRef:
secretKeyRef: name: strapi
name: strapi key: s3UscBucketRegion
key: transferTokenSalt - name: SENDGRID_API_KEY
- name: STRAPI_URL valueFrom:
value: "{{ .Values.strapi.url }}" secretKeyRef:
- name: PORT name: strapi
value: "{{ .Values.strapi.port }}" key: sendgridApiKey
resources: - name: TRANSFER_TOKEN_SALT
limits: valueFrom:
cpu: 1000m secretKeyRef:
memory: 2Gi name: strapi
restartPolicy: Always key: transferTokenSalt
- name: STRAPI_URL
value: "{{ .Values.strapi.url }}"
- name: PORT
value: "{{ .Values.strapi.port }}"
resources:
limits:
cpu: 1000m
memory: 2Gi
restartPolicy: Always
# --- # ---