This commit is contained in:
9
iris-web/deploy/eks_manifest/worker/configmap.yml
Normal file
9
iris-web/deploy/eks_manifest/worker/configmap.yml
Normal file
@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: iris-web
|
||||
name: worker-data
|
||||
data:
|
||||
POSTGRES_SERVER: iris-psql-service
|
||||
CELERY_BROKER: amqp://iris-rabbitmq-service
|
||||
IRIS_WORKER: iris-worker-service
|
94
iris-web/deploy/eks_manifest/worker/deployment.yml
Normal file
94
iris-web/deploy/eks_manifest/worker/deployment.yml
Normal file
@ -0,0 +1,94 @@
|
||||
# deployment
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
namespace: iris-web
|
||||
name: iris-worker-deployment
|
||||
labels:
|
||||
app: iris-worker
|
||||
site: iris
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: iris-worker
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: iris-worker
|
||||
spec:
|
||||
containers:
|
||||
- name: iris-worker
|
||||
image: iriswebapp_app:v2.2.2
|
||||
command: ['./wait-for-iriswebapp.sh', 'iris-app-service:8000', './iris-entrypoint.sh', 'iris-worker']
|
||||
env:
|
||||
- name: POSTGRES_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: iris-app-secrets
|
||||
key: POSTGRES_USER
|
||||
- name: POSTGRES_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: iris-app-secrets
|
||||
key: POSTGRES_PASSWORD
|
||||
- name: POSTGRES_ADMIN_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: iris-app-secrets
|
||||
key: POSTGRES_ADMIN_USER
|
||||
- name: POSTGRES_ADMIN_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: iris-app-secrets
|
||||
key: POSTGRES_ADMIN_PASSWORD
|
||||
- name: POSTGRES_PORT
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: iris-app-secrets
|
||||
key: POSTGRES_PORT
|
||||
- name: DOCKERIZED
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: iris-app-secrets
|
||||
key: DOCKERIZED
|
||||
- name: IRIS_SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: iris-app-secrets
|
||||
key: IRIS_SECRET_KEY
|
||||
- name: IRIS_SECURITY_PASSWORD_SALT
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: iris-app-secrets
|
||||
key: IRIS_SECURITY_PASSWORD_SALT
|
||||
|
||||
- name: POSTGRES_SERVER
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: worker-data
|
||||
key: POSTGRES_SERVER
|
||||
- name: CELERY_BROKER
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: worker-data
|
||||
key: CELERY_BROKER
|
||||
- name: IRIS_WORKER
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: worker-data
|
||||
key: IRIS_WORKER
|
||||
volumeMounts:
|
||||
- name: iris-pcv
|
||||
mountPath: /home/iris/downloads
|
||||
subPath: downloads
|
||||
- name: iris-pcv
|
||||
mountPath: /home/iris/user_templates
|
||||
subPath: user_templates
|
||||
- name: iris-pcv
|
||||
mountPath: /home/iris/server_data
|
||||
subPath: server_data
|
||||
volumes:
|
||||
- name: iris-pcv
|
||||
persistentVolumeClaim:
|
||||
claimName: iris-psql-claim
|
11
iris-web/deploy/eks_manifest/worker/kustomization.yml
Normal file
11
iris-web/deploy/eks_manifest/worker/kustomization.yml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
labels:
|
||||
site: iris
|
||||
|
||||
resources:
|
||||
- secrets.yml
|
||||
- configmap.yml
|
||||
- deployment.yml
|
||||
- service.yml
|
17
iris-web/deploy/eks_manifest/worker/secrets.yml
Normal file
17
iris-web/deploy/eks_manifest/worker/secrets.yml
Normal file
@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: iris-worker-secrets
|
||||
namespace: iris-web
|
||||
labels:
|
||||
site: iris
|
||||
type: Opaque
|
||||
data:
|
||||
POSTGRES_USER: cmFwdG9y
|
||||
POSTGRES_PASSWORD: YWRtaW4=
|
||||
POSTGRES_ADMIN_USER: cmFwdG9y
|
||||
POSTGRES_ADMIN_PASSWORD: YWRtaW4=
|
||||
POSTGRES_PORT: NTQzMg==
|
||||
DOCKERIZED: MQ==
|
||||
IRIS_SECRET_KEY: QVZlcnlTdXBlclNlY3JldEtleS1Tb05vdFRoaXNPbmU=
|
||||
IRIS_SECURITY_PASSWORD_SALT: QVJhbmRvbVNhbHQtTm90VGhpc09uZUVpdGhlcg==
|
14
iris-web/deploy/eks_manifest/worker/service.yml
Normal file
14
iris-web/deploy/eks_manifest/worker/service.yml
Normal file
@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
namespace: iris-web
|
||||
name: iris-worker-service
|
||||
labels:
|
||||
site: iris
|
||||
spec:
|
||||
selector:
|
||||
app: iris-worker
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
type: ClusterIP
|
Reference in New Issue
Block a user