Skip to content

Commit

Permalink
fix: remove broken initContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kpoke committed Oct 28, 2022
1 parent e4ac3d8 commit 20b1761
Showing 1 changed file with 32 additions and 39 deletions.
71 changes: 32 additions & 39 deletions deployment/base/treetracker-wallet-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,47 +14,40 @@ spec:
labels:
app: treetracker-wallet-api-v2
spec:
initContainers:
- name: "wallet-db-migration-job-init"
image: "groundnuty/k8s-wait-for:1.3"
imagePullPolicy: IfNotPresent
args:
- "job"
- "wallet-db-migration-job"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: doks.digitalocean.com/node-pool
operator: In
values:
- microservices-node-pool
- matchExpressions:
- key: doks.digitalocean.com/node-pool
operator: In
values:
- microservices-node-pool
containers:
- name: treetracker-wallet-api-v2
image: greenstand/treetracker-wallet-api:latest
ports:
- containerPort: 80
env:
- name: PRIVATE_KEY
valueFrom:
secretKeyRef:
name: treetracker-wallet-jwt-keys
key: private-key
- name: PUBLIC_KEY
valueFrom:
secretKeyRef:
name: treetracker-wallet-jwt-keys
key: public-key
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: treetracker-api-database-connection
key: db
- name: DATABASE_SCHEMA
valueFrom:
secretKeyRef:
name: treetracker-api-database-connection
key: schema
- name: NODE_LOG_LEVEL
value: debug
- name: treetracker-wallet-api-v2
image: greenstand/treetracker-wallet-api:latest
ports:
- containerPort: 80
env:
- name: PRIVATE_KEY
valueFrom:
secretKeyRef:
name: treetracker-wallet-jwt-keys
key: private-key
- name: PUBLIC_KEY
valueFrom:
secretKeyRef:
name: treetracker-wallet-jwt-keys
key: public-key
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: treetracker-api-database-connection
key: db
- name: DATABASE_SCHEMA
valueFrom:
secretKeyRef:
name: treetracker-api-database-connection
key: schema
- name: NODE_LOG_LEVEL
value: debug

0 comments on commit 20b1761

Please sign in to comment.