-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalize kubernetes deployments (#38)
* Add build to deploy deps * Remove unused permissions keys * Fix secret name * Fix image name step * Fix build-web to use correct yarn.lock files * Temporarily disable deployment step, add validation step * Remove full image name, just output the tag hash Since the registry is a secret, if you try to output anything with it it will fail * Recompose full image name using just tag from output * Fix deployment configmap ref * Fix the incorrect image being used * Reduce rollout timeout to 2 minutes * Add database url to deployment * Add ingress configuration * Add initial queue k8s configs * Fix deployment * Add QUEUE_IMAGE to cicd * Update name * Add initial ui k8s configuration * Add a health check endpoint to the ui * Add other secret refs * Fix capitalization * Update the database url secret * Fix ui deloyment errors * Fix queue and ui image * fix the secret ref * Remove database secret from ui * Remove the envFrom for farmhand-db * Fix twitch redirect uri * Update rust log for api * Fix twitch secret ref * Fix the UI api url * Fix twitch redirect uri to point at api * Increase the interval to 250 * Add headers debug statement * Add cors setting to nginx ingress * Update nginx ingress again * Include credentials, expose Authorization * try adding configuration snippet * Remove validation step * Update the proxy pass headers * Try auth snippet annotation * Try another annotation.... * Try using configmap and mode: cors * Try this gnarly version * Add more debugging for auth issue * Update debugging again * Update configma to https * Update https configuration * Change back to http * Disable upload route
- Loading branch information
1 parent
e8c3db2
commit 0eadd51
Showing
25 changed files
with
294 additions
and
65 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,6 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: farmhand-queue-config | ||
data: | ||
LOG_LEVEL: "queue=debug" |
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,40 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: farmhand-queue | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: farmhand-queue | ||
template: | ||
metadata: | ||
labels: | ||
app: farmhand-queue | ||
spec: | ||
containers: | ||
- name: farmhand-queue | ||
image: queue | ||
ports: | ||
- containerPort: 8080 | ||
envFrom: | ||
- configMapRef: | ||
name: farmhand-queue-config | ||
env: | ||
- name: DATABASE_URL | ||
valueFrom: | ||
secretKeyRef: | ||
name: farmhand-db | ||
key: uri | ||
resources: | ||
requests: | ||
cpu: "100m" | ||
memory: "256Mi" | ||
limits: | ||
cpu: "500m" | ||
memory: "512Mi" | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: 8080 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 10 |
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,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- deployment.yaml | ||
- configmap.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,6 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: farmhand-ui-config | ||
data: | ||
API_URL: "https://staging.api.farmhand.witchscrow.com" |
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,34 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: farmhand-ui | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: farmhand-ui | ||
template: | ||
metadata: | ||
labels: | ||
app: farmhand-ui | ||
spec: | ||
containers: | ||
- name: farmhand-ui | ||
image: ui | ||
ports: | ||
- containerPort: 3000 | ||
envFrom: | ||
- configMapRef: | ||
name: farmhand-ui-config | ||
resources: | ||
requests: | ||
cpu: "100m" | ||
memory: "256Mi" | ||
limits: | ||
cpu: "500m" | ||
memory: "512Mi" | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: 3000 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 10 |
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,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- deployment.yaml | ||
- service.yaml | ||
- configmap.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,11 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: farmhand-ui | ||
spec: | ||
selector: | ||
app: farmhand-ui | ||
ports: | ||
- port: 80 | ||
targetPort: 3000 | ||
type: ClusterIP |
Oops, something went wrong.