-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
625cb8e
commit 6eb1261
Showing
5 changed files
with
90 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: nodebb | ||
name: nodebb | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app: nodebb | ||
template: | ||
metadata: | ||
labels: | ||
app: nodebb | ||
spec: | ||
containers: | ||
- image: nodebb/docker:1.18.5 | ||
{{/* command:*/}} | ||
{{/* - /bin/sh*/}} | ||
{{/* - "-c"*/}} | ||
{{/* - sleep 3600*/}} | ||
imagePullPolicy: Always | ||
name: nodebb | ||
volumeMounts: | ||
- mountPath: /usr/src/app/config.json | ||
name: config | ||
subPath: config.json | ||
- mountPath: /usr/src/app/node_modules | ||
name: nodebb | ||
subPath: node_modules | ||
- mountPath: /usr/src/app/build | ||
name: nodebb | ||
subPath: build | ||
- mountPath: /usr/src/app/public/uploads | ||
name: nodebb | ||
subPath: uploads | ||
restartPolicy: Always | ||
volumes: | ||
- name: config | ||
secret: | ||
secretName: nodebb | ||
- name: nodebb | ||
persistentVolumeClaim: | ||
claimName: nodebb-pvc |
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,13 @@ | ||
apiVersion: traefik.io/v1alpha1 | ||
kind: IngressRoute | ||
metadata: | ||
name: nodebb | ||
spec: | ||
entryPoints: | ||
- websecure | ||
routes: | ||
- match: Host(`forum.{{.Values.baseDomain}}`) | ||
kind: Rule | ||
services: | ||
- name: nodebb | ||
port: 4567 |
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,19 @@ | ||
apiVersion: secrets.infisical.com/v1alpha1 | ||
kind: InfisicalSecret | ||
metadata: | ||
name: nodebb | ||
namespace: faf-apps | ||
spec: | ||
authentication: | ||
universalAuth: | ||
credentialsRef: | ||
secretName: infisical-machine-identity | ||
secretNamespace: faf-ops | ||
secretsScope: | ||
projectSlug: {{.Values.infisical.projectSlug}} | ||
envSlug: {{.Values.infisical.envSlug}} | ||
secretsPath: "/nodebb" | ||
managedSecretReference: | ||
secretName: nodebb | ||
secretNamespace: faf-apps | ||
creationPolicy: "Owner" |
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# This is a temporary workaround to point to the nodebb instance running in faf-stack for the API to reach it | ||
# (it is exposed to the host though) | ||
# TODO: Replace as soon as nodebb runs in cluster | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: nodebb | ||
labels: | ||
app: nodebb | ||
spec: | ||
type: ExternalName | ||
externalName: {{.Values.hostName}} | ||
selector: | ||
app: nodebb | ||
ports: | ||
- port: 4567 | ||
targetPort: 4567 |
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