Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preparing Beta Branch #3620

Merged
merged 15 commits into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ jobs:
buildChannel: webgl
rust_kanban:
needs: ['alter', 'globals']
if: needs.alter.outputs.rust_kanban == 'true'
if: needs.alter.outputs.kanban == 'true'
name: Rust Kanaban Docker
runs-on: 'ubuntu-latest'
permissions:
Expand Down
4 changes: 3 additions & 1 deletion apps/kbve.com/src/content/journal/12-22.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ import { Adsense, Tasks } from '@kbve/astropad';

**Helm**

Now to build out the pipeline for the docker build and deploying it all using helm charts.
Now to build out the pipeline for the docker build and deploying it all using helm charts.
Before building out the helm chart, I need to switch back around and make sure that the docker build is good to go.
This way the hlem chart will deploy that docker image and we can have it sit under the ingress of `kanban.kbve.com`.
22 changes: 22 additions & 0 deletions apps/kbve.com/src/content/journal/12-23.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: 'Decemeber: 23rd'
category: Daily
date: 2024-12-23 12:00:00
client: Self
unsplash: 1511512578047-dfb367046420
img: https://images.unsplash.com/photo-1511512578047-dfb367046420?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
description: Decemeber 23rd.
tags:
- daily
---

import { Adsense, Tasks } from '@kbve/astropad';

## 2024

- 05:15AM

**Docker**

Before building out the helm chart, we want to make sure that the docker build is good to go.
We need it to be published and then have the ability to pull that docker image from the hub before we can move forward with the helm chart.
29 changes: 29 additions & 0 deletions apps/kbve.com/src/content/journal/12-24.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: 'Decemeber: 24th'
category: Daily
date: 2024-12-24 12:00:00
client: Self
unsplash: 1511512578047-dfb367046420
img: https://images.unsplash.com/photo-1511512578047-dfb367046420?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
description: Decemeber 24th.
tags:
- daily
---

import { Adsense, Tasks } from '@kbve/astropad';

## 2024

- 06:57AM

**Kanban**

Start the morning off with a fresh deployment of the kanban helm chart.
To build out the chart we need to make sure.
`https://github.com/KBVE/kbve.git` This is the repo that we are pulling in and the path is `/migrations/kube/charts/kanban`
We need to pass in the secrets too, so lets go ahead and resolve that
```shell
./kbve.sh -nx kilobase:seal --namespace=kanban --keyName=aws-config --secrets=AWS_ACCESS_KEY_I
```


2 changes: 1 addition & 1 deletion apps/rust_kanban/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

The api that handles the json from the kanban.
More notes will be added once we get a chance to get it all up and running.
Preparing the kanban build.
Preparing the kanban build, okay this update to the readme should now trigger it?
4 changes: 2 additions & 2 deletions migrations/kube/charts/kanban/fleet.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defaultNamespace: kanban
helm:
chart: ./templates
chart: ./services
releaseName: kanban-release
valuesFiles:
- templates/values.yaml
- services/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: aws-config
namespace: kanban
spec:
encryptedData:
AWS_ACCESS_KEY_ID: AgCGQTRMHo4fTjHkNhPDQLnsmFFh0TfLAfO/uQLCv38JMjRLmvsj9YspCGEwO8VlED1H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j8UxnbKbf
template:
metadata:
creationTimestamp: null
name: aws-config
namespace: kanban
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
# Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.kanban.name }}
namespace: kanban
labels:
app: {{ .Values.kanban.name }}
spec:
replicas: {{ .Values.kanban.replicaCount }}
selector:
matchLabels:
app: {{ .Values.kanban.name }}
template:
metadata:
labels:
app: {{ .Values.kanban.name }}
spec:
containers:
- name: {{ .Values.kanban.name }}
image: "{{ .Values.kanban.image.repository }}:{{ .Values.kanban.image.tag }}"
ports:
{{- range .Values.kanban.service.ports }}
- name: {{ .name }}
containerPort: {{ .targetPort }}
protocol: {{ .protocol }}
{{- end }}
envFrom:
- secretRef:
name: aws-config
resources:
{{- toYaml .Values.kanban.resources | nindent 12 }}

---

# Service
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.kanban.service.name }}
namespace: kanban
labels:
app: {{ .Values.kanban.name }}
spec:
selector:
app: {{ .Values.kanban.name }}
ports:
{{- range .Values.kanban.service.ports }}
- name: {{ .name }}
protocol: {{ .protocol }}
port: {{ .port }}
targetPort: {{ .targetPort }}
{{- end }}
type: ClusterIP

---

# Ingress
{{- if .Values.kanban.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Values.kanban.name }}-ingress
namespace: kanban
annotations:
nginx.ingress.kubernetes.io/enable-websocket: "true"
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
nginx.ingress.kubernetes.io/proxy-connect-timeout: "60"
spec:
rules:
- host: {{ .Values.kanban.ingress.host }}
http:
paths:
{{- range .Values.kanban.ingress.paths }}
- path: {{ .path }}
pathType: Prefix
backend:
service:
name: {{ $.Values.kanban.service.name }}
port:
number: {{ if eq .backend "websocket" }}8086{{ else }}3000{{ end }}
{{- end }}
{{- end }}
38 changes: 38 additions & 0 deletions migrations/kube/charts/kanban/services/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
kanban:
nameOverride: kanban
name: kanban-app
replicaCount: 1
image:
repository: kbve/kanban
tag: 1.01.1
digest: 'sha256:c002234843480e38de0d9fa6fde5f18a449feea238be757c5afe7cd5bffaecf1'
service:
name: kanban
ports:
- name: tcp
protocol: TCP
port: 3000
targetPort: 3000
- name: ws
protocol: TCP
port: 8086
targetPort: 8086
webscoket:
enabled: true
udp:
enabled: false
ingress:
enabled: true
host: kanban.kbve.com
paths:
- path: /
backend: html
- path: /ws/
backend: websocket
resources:
requests:
memory: '1Gi'
cpu: '500m'
limits:
memory: '2Gi'
cpu: '900m'
Empty file.
Loading