chore(osx): Added OSX container
This commit is contained in:
39
manifests/artemis/kaneo/api.yaml
Normal file
39
manifests/artemis/kaneo/api.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
# api-deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: kaneo-api
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: kaneo-api
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: kaneo-api
|
||||
spec:
|
||||
containers:
|
||||
- name: api
|
||||
image: ghcr.io/usekaneo/api:latest
|
||||
ports:
|
||||
- containerPort: 1337
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: kaneo-env
|
||||
# If your API uses POSTGRES_HOST, point it to the postgres Service:
|
||||
# env:
|
||||
# - name: POSTGRES_HOST
|
||||
# value: "postgres"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: kaneo-api
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: kaneo-api
|
||||
ports:
|
||||
- port: 1337
|
||||
targetPort: 1337
|
||||
11
manifests/artemis/kaneo/configMap.yaml
Normal file
11
manifests/artemis/kaneo/configMap.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
# postgres-configmap.yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: kaneo-env
|
||||
data:
|
||||
# Copy the contents of your .env file here as key: value pairs
|
||||
# Example:
|
||||
POSTGRES_USER: "kaneo"
|
||||
POSTGRES_PASSWORD: "appelsap"
|
||||
POSTGRES_DB: "kaneo"
|
||||
62
manifests/artemis/kaneo/db.yaml
Normal file
62
manifests/artemis/kaneo/db.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
# postgres-deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: postgres
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: postgres
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: postgres
|
||||
spec:
|
||||
containers:
|
||||
- name: postgres
|
||||
image: postgres:16-alpine
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: kaneo-env
|
||||
volumeMounts:
|
||||
- name: postgres-data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- pg_isready -U kaneo -d kaneo
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 5
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- pg_isready -U kaneo -d kaneo
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 5
|
||||
volumes:
|
||||
- name: postgres-data
|
||||
persistentVolumeClaim:
|
||||
claimName: postgres-data
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: postgres
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: postgres
|
||||
ports:
|
||||
- port: 5432
|
||||
targetPort: 5432
|
||||
23
manifests/artemis/kaneo/ingress.yaml
Normal file
23
manifests/artemis/kaneo/ingress.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt
|
||||
name: kaneo-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: projects.dgse.cloud
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: kaneo-web
|
||||
port:
|
||||
number: 5173
|
||||
path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- hosts:
|
||||
- projects.dgse.cloud
|
||||
secretName: letsencrypt
|
||||
14
manifests/artemis/kaneo/kustomization.yaml
Normal file
14
manifests/artemis/kaneo/kustomization.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: kaneo
|
||||
|
||||
resources:
|
||||
- configMap.yaml
|
||||
- pvc.yaml
|
||||
- api.yaml
|
||||
- web.yaml
|
||||
- db.yaml
|
||||
- services.yaml
|
||||
- ingress.yaml
|
||||
13
manifests/artemis/kaneo/pvc.yaml
Normal file
13
manifests/artemis/kaneo/pvc.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
# postgres-pv-pvc.yaml
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: postgres-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
# For managed clusters, often you don't need storageClassName and use default.
|
||||
# storageClassName: standard
|
||||
25
manifests/artemis/kaneo/services.yaml
Normal file
25
manifests/artemis/kaneo/services.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
# api-service.yaml (unchanged from before)
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: kaneo-api
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: kaneo-api
|
||||
ports:
|
||||
- port: 1337
|
||||
targetPort: 1337
|
||||
---
|
||||
# web-service.yaml (unchanged from before)
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: kaneo-web
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: kaneo-web
|
||||
ports:
|
||||
- port: 5173
|
||||
targetPort: 5173
|
||||
39
manifests/artemis/kaneo/web.yaml
Normal file
39
manifests/artemis/kaneo/web.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
# web-deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: kaneo-web
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: kaneo-web
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: kaneo-web
|
||||
spec:
|
||||
containers:
|
||||
- name: web
|
||||
image: ghcr.io/usekaneo/web:latest
|
||||
ports:
|
||||
- containerPort: 5173
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: kaneo-env
|
||||
# If the web app needs the API URL, ensure env var points to the API Service:
|
||||
# env:
|
||||
# - name: VITE_API_BASE_URL
|
||||
# value: "http://kaneo-api:1337"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: kaneo-web
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: kaneo-web
|
||||
ports:
|
||||
- port: 5173
|
||||
targetPort: 5173
|
||||
Reference in New Issue
Block a user