generated from hybrid-cloud-patterns/example
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploymentconfigs are deprecated and cause some issues when deploying the pattern. There is a workaround that is needed for the db password to not contain special characters due to some bug in the python container.
- Loading branch information
Showing
9 changed files
with
191 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
charts/all/medical-diagnosis/image-generator/templates/image-gen-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/compare-options: IgnoreExtraneous | ||
argocd.argoproj.io/sync-wave: '5' | ||
name: image-generator | ||
namespace: {{ .Values.global.xraylab.namespace }} | ||
spec: | ||
replicas: 0 | ||
revisionHistoryLimit: 3 | ||
selector: | ||
matchLabels: | ||
app: image-generator | ||
template: | ||
metadata: | ||
labels: | ||
app: image-generator | ||
spec: | ||
containers: | ||
- env: | ||
- name: SECONDS_WAIT | ||
value: '10' | ||
- name: AWS_ACCESS_KEY_ID | ||
valueFrom: | ||
secretKeyRef: | ||
key: AWS_ACCESS_KEY_ID | ||
name: s3-secret-bck | ||
- name: AWS_SECRET_ACCESS_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
key: AWS_SECRET_ACCESS_KEY | ||
name: s3-secret-bck | ||
- name: SERVICE_POINT | ||
valueFrom: | ||
configMapKeyRef: | ||
key: url | ||
name: service-point | ||
- name: DATABASE_USER | ||
valueFrom: | ||
secretKeyRef: | ||
key: database-user | ||
name: db-secret | ||
- name: DATABASE_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
key: database-password | ||
name: db-secret | ||
- name: DATABASE_HOST | ||
valueFrom: | ||
secretKeyRef: | ||
key: database-host | ||
name: db-secret | ||
- name: DATABASE_DB | ||
valueFrom: | ||
secretKeyRef: | ||
key: database-db | ||
name: db-secret | ||
- name: BUCKET_BASE_NAME | ||
valueFrom: | ||
configMapKeyRef: | ||
key: bucket-base-name | ||
name: buckets-config | ||
- name: BUCKET_SOURCE | ||
valueFrom: | ||
configMapKeyRef: | ||
key: bucket-source | ||
name: buckets-config | ||
image: image-generator:latest | ||
imagePullPolicy: IfNotPresent | ||
name: image-generator | ||
resources: | ||
limits: | ||
cpu: '2' | ||
memory: 1G | ||
requests: | ||
cpu: 400m | ||
memory: 100M | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 | ||
|
92 changes: 0 additions & 92 deletions
92
charts/all/medical-diagnosis/image-generator/templates/image-generator-dc.yaml
This file was deleted.
Oops, something went wrong.
78 changes: 0 additions & 78 deletions
78
charts/all/medical-diagnosis/image-server/templates/image-server-dc.yaml
This file was deleted.
Oops, something went wrong.
73 changes: 73 additions & 0 deletions
73
charts/all/medical-diagnosis/image-server/templates/image-server-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/compare-options: IgnoreExtraneous | ||
argocd.argoproj.io/sync-wave: '10' | ||
name: image-server | ||
namespace: '{{ .Values.global.xraylab.namespace }}' | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 3 | ||
selector: | ||
matchLabels: | ||
app: image-server | ||
template: | ||
metadata: | ||
labels: | ||
app: image-server | ||
spec: | ||
containers: | ||
- env: | ||
- name: database-user | ||
valueFrom: | ||
secretKeyRef: | ||
key: database-user | ||
name: db-secret | ||
- name: database-password | ||
valueFrom: | ||
secretKeyRef: | ||
key: database-password | ||
name: db-secret | ||
- name: database-host | ||
valueFrom: | ||
secretKeyRef: | ||
key: database-host | ||
name: db-secret | ||
- name: database-db | ||
valueFrom: | ||
secretKeyRef: | ||
key: database-db | ||
name: db-secret | ||
- name: service_point | ||
valueFrom: | ||
configMapKeyRef: | ||
key: url-external | ||
name: service-point | ||
- name: bucket-base-name | ||
valueFrom: | ||
configMapKeyRef: | ||
key: bucket-base-name | ||
name: buckets-config | ||
image: image-server:latest | ||
imagePullPolicy: IfNotPresent | ||
name: image-server | ||
ports: | ||
- containerPort: 5000 | ||
protocol: TCP | ||
resources: | ||
limits: | ||
cpu: '2' | ||
memory: 1G | ||
requests: | ||
cpu: 400m | ||
memory: 100M | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ spec: | |
port: 80 | ||
targetPort: 5000 | ||
selector: | ||
name: image-server | ||
app: image-server |
Oops, something went wrong.