-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some cleanup clean up updating composes wip wip
- Loading branch information
Showing
43 changed files
with
1,129 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f docker-compose.yml | ||
kompose.version: 1.32.0 (765fde254) | ||
labels: | ||
io.kompose.service: backend | ||
name: backend | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: backend | ||
template: | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f docker-compose.yml | ||
kompose.version: 1.32.0 (765fde254) | ||
labels: | ||
io.kompose.network/plex-default: "true" | ||
io.kompose.service: backend | ||
spec: | ||
containers: | ||
- env: | ||
- name: BACALHAU_API_HOST | ||
value: requester | ||
- name: FRONTEND_URL | ||
value: http://localhost:3000 | ||
- name: IPFS_API_HOST | ||
value: ipfs | ||
- name: MAX_COMPUTE_TIME_SECONDS | ||
value: "259200" | ||
- name: MAX_QUEUE_TIME_SECONDS | ||
value: "259200" | ||
- name: NEXT_PUBLIC_PRIVY_APP_ID | ||
value: clnf5ptkk01h1jn0fzhh4xldt | ||
- name: POSTGRES_DB | ||
value: backend | ||
- name: POSTGRES_HOST | ||
value: dbbackend | ||
- name: POSTGRES_PASSWORD | ||
value: labdao | ||
- name: POSTGRES_USER | ||
value: labdao | ||
- name: PRIVY_PUBLIC_KEY | ||
- name: STRIPE_PRODUCT_SLUG | ||
value: price_1OlwVPE7xzGf7nZbaccQCnHv | ||
- name: STRIPE_SECRET_KEY | ||
- name: STRIPE_WEBHOOK_SECRET_KEY | ||
image: backend | ||
livenessProbe: | ||
exec: | ||
command: | ||
- wget --no-verbose --tries=1 --spider http://localhost:8080/healthcheck || exit 1 | ||
failureThreshold: 10 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
timeoutSeconds: 10 | ||
name: backend | ||
ports: | ||
- containerPort: 8080 | ||
hostPort: 8080 | ||
protocol: TCP | ||
restartPolicy: Always |
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,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f docker-compose.yml | ||
kompose.version: 1.32.0 (765fde254) | ||
labels: | ||
io.kompose.service: backend | ||
name: backend | ||
spec: | ||
ports: | ||
- name: "8080" | ||
port: 8080 | ||
targetPort: 8080 | ||
selector: | ||
io.kompose.service: backend |
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,12 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
labels: | ||
io.kompose.service: compute-claim0 | ||
name: compute-claim0 | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 100Mi |
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,12 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
labels: | ||
io.kompose.service: compute-claim1 | ||
name: compute-claim1 | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 100Mi |
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,69 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f docker-compose.yml | ||
kompose.version: 1.32.0 (765fde254) | ||
labels: | ||
io.kompose.service: compute | ||
name: compute | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: compute | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f docker-compose.yml | ||
kompose.version: 1.32.0 (765fde254) | ||
labels: | ||
io.kompose.network/plex-default: "true" | ||
io.kompose.service: compute | ||
spec: | ||
containers: | ||
- args: | ||
- serve | ||
- --ipfs-connect | ||
- /dns4/ipfs/tcp/5001 | ||
- --node-type | ||
- compute | ||
- --labels | ||
- owner=labdao | ||
- --private-internal-ipfs=false | ||
- --peer | ||
- /dns4/requester/tcp/1234/http | ||
- --job-selection-probe-http | ||
- http://receptor:8080/judge | ||
- --job-selection-accept-networked | ||
- --job-selection-data-locality | ||
- anywhere | ||
env: | ||
- name: BACALHAU_DIR | ||
value: /tmp/bacalhau | ||
- name: BACALHAU_ENVIRONMENT | ||
value: local | ||
- name: DOCKER_DEFAULT_PLATFORM | ||
value: linux/amd64 | ||
- name: KEEP_STACK | ||
value: "true" | ||
- name: LOG_LEVEL | ||
value: trace | ||
image: ghcr.io/bacalhau-project/bacalhau:v1.2.0 | ||
name: compute | ||
volumeMounts: | ||
- mountPath: /var/run/docker.sock | ||
name: compute-claim0 | ||
- mountPath: /tmp | ||
name: compute-claim1 | ||
hostname: compute | ||
restartPolicy: Always | ||
volumes: | ||
- name: compute-claim0 | ||
persistentVolumeClaim: | ||
claimName: compute-claim0 | ||
- name: compute-claim1 | ||
persistentVolumeClaim: | ||
claimName: compute-claim1 |
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,39 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f docker-compose.yml | ||
kompose.version: 1.32.0 (765fde254) | ||
labels: | ||
io.kompose.service: compute-health | ||
name: compute-health | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: compute-health | ||
template: | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f docker-compose.yml | ||
kompose.version: 1.32.0 (765fde254) | ||
labels: | ||
io.kompose.network/plex-default: "true" | ||
io.kompose.service: compute-health | ||
spec: | ||
containers: | ||
- args: | ||
- sh | ||
- -c | ||
- apk add curl && sleep infinity | ||
image: alpine | ||
livenessProbe: | ||
exec: | ||
command: | ||
- curl -f http://compute:1234/api/v1/healthz | ||
failureThreshold: 10 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
timeoutSeconds: 10 | ||
name: compute-health | ||
restartPolicy: Always |
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,61 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f docker-compose.yml | ||
kompose.version: 1.32.0 (765fde254) | ||
labels: | ||
io.kompose.service: dbbackend | ||
name: dbbackend | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: dbbackend | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f docker-compose.yml | ||
kompose.version: 1.32.0 (765fde254) | ||
labels: | ||
io.kompose.network/plex-default: "true" | ||
io.kompose.service: dbbackend | ||
spec: | ||
containers: | ||
- args: | ||
- postgres | ||
- -c | ||
- log_statement=all | ||
- -c | ||
- log_destination=stderr | ||
env: | ||
- name: POSTGRES_DB | ||
value: backend | ||
- name: POSTGRES_PASSWORD | ||
value: labdao | ||
- name: POSTGRES_USER | ||
value: labdao | ||
image: postgres:15.4 | ||
livenessProbe: | ||
exec: | ||
command: | ||
- pg_isready -U postgres || exit 1 | ||
failureThreshold: 10 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
timeoutSeconds: 10 | ||
name: dbbackend | ||
ports: | ||
- containerPort: 5432 | ||
hostPort: 5432 | ||
protocol: TCP | ||
volumeMounts: | ||
- mountPath: /var/lib/postgresql/data | ||
name: dbdata-backend | ||
restartPolicy: Always | ||
volumes: | ||
- name: dbdata-backend | ||
persistentVolumeClaim: | ||
claimName: dbdata-backend |
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,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f docker-compose.yml | ||
kompose.version: 1.32.0 (765fde254) | ||
labels: | ||
io.kompose.service: dbbackend | ||
name: dbbackend | ||
spec: | ||
ports: | ||
- name: "5432" | ||
port: 5432 | ||
targetPort: 5432 | ||
selector: | ||
io.kompose.service: dbbackend |
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,12 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
labels: | ||
io.kompose.service: dbdata-backend | ||
name: dbdata-backend | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 100Mi |
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,12 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
labels: | ||
io.kompose.service: dbdata-receptor | ||
name: dbdata-receptor | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 100Mi |
Oops, something went wrong.