aboutsummaryrefslogtreecommitdiff
path: root/cmd/future-sight
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-10-06 09:36:43 -0400
committerXe Iaso <me@xeiaso.net>2024-10-06 09:36:43 -0400
commitd5e1d0730e885633c81884da6590950d9a3388b5 (patch)
treeb051fe3b4a6f39d0c2b23aedb11b26890af43bf1 /cmd/future-sight
parent57c4d9757ae09700e6bd65de6e55f5cd17e6e6e2 (diff)
downloadx-d5e1d0730e885633c81884da6590950d9a3388b5.tar.xz
x-d5e1d0730e885633c81884da6590950d9a3388b5.zip
move k8s manifests to the kubernetes folder
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/future-sight')
-rw-r--r--cmd/future-sight/manifest/kustomization.yaml8
-rw-r--r--cmd/future-sight/manifest/prod/1password.yaml9
-rw-r--r--cmd/future-sight/manifest/prod/deployment.yaml84
-rw-r--r--cmd/future-sight/manifest/prod/ingress.yaml26
-rw-r--r--cmd/future-sight/manifest/prod/kustomization.yaml9
-rw-r--r--cmd/future-sight/manifest/prod/namespace.yaml4
-rw-r--r--cmd/future-sight/manifest/prod/nats.yaml36
-rw-r--r--cmd/future-sight/manifest/prod/service.yaml20
-rw-r--r--cmd/future-sight/manifest/prod/valkey.yaml50
9 files changed, 0 insertions, 246 deletions
diff --git a/cmd/future-sight/manifest/kustomization.yaml b/cmd/future-sight/manifest/kustomization.yaml
deleted file mode 100644
index 5d7ee96..0000000
--- a/cmd/future-sight/manifest/kustomization.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-resources:
- - ./prod/namespace.yaml
- - ./prod/nats.yaml
- - ./prod/valkey.yaml
- - ./dev/minio.yaml
-namespace: future-sight
-commonLabels:
- app.kubernetes.io/name: future-sight
diff --git a/cmd/future-sight/manifest/prod/1password.yaml b/cmd/future-sight/manifest/prod/1password.yaml
deleted file mode 100644
index 393ecfa..0000000
--- a/cmd/future-sight/manifest/prod/1password.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-apiVersion: onepassword.com/v1
-kind: OnePasswordItem
-metadata:
- name: tigris-creds
- namespace: future-sight
- labels:
- app.kubernetes.io/name: future-sight
-spec:
- itemPath: "vaults/Kubernetes/items/Tigris creds" \ No newline at end of file
diff --git a/cmd/future-sight/manifest/prod/deployment.yaml b/cmd/future-sight/manifest/prod/deployment.yaml
deleted file mode 100644
index 7e556b4..0000000
--- a/cmd/future-sight/manifest/prod/deployment.yaml
+++ /dev/null
@@ -1,84 +0,0 @@
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: future-sight
- namespace: future-sight
- labels:
- app.kubernetes.io/name: future-sight
-data:
- BUCKET_NAME: xesite-preview-versions
- DATA_DIR: /cache
- NATS_URL: nats://nats:4222
- VALKEY_HOST: valkey:6379
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: future-sight
- namespace: future-sight
- labels:
- app.kubernetes.io/name: future-sight
- xeiaso.net/role: web
- annotations:
- operator.1password.io/auto-restart: "true"
-spec:
- replicas: 3
- selector:
- matchLabels:
- app.kubernetes.io/name: future-sight
- xeiaso.net/role: web
- template:
- metadata:
- namespace: future-sight
- labels:
- app.kubernetes.io/name: future-sight
- xeiaso.net/role: web
- spec:
- volumes:
- - name: tigris
- secret:
- secretName: tigris-creds
- - name: cache
- emptyDir: {}
- securityContext:
- fsGroup: 1000
- containers:
- - name: main
- image: ghcr.io/xe/x/future-sight:latest
- imagePullPolicy: Always
- resources:
- limits:
- cpu: "250m"
- memory: "512Mi"
- requests:
- cpu: "100m"
- memory: "256Mi"
- securityContext:
- runAsUser: 1000
- runAsGroup: 1000
- runAsNonRoot: true
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- seccompProfile:
- type: RuntimeDefault
- livenessProbe:
- httpGet:
- path: /healthz
- port: 8080
- httpHeaders:
- - name: X-Kubernetes
- value: "is kinda okay"
- initialDelaySeconds: 3
- periodSeconds: 3
- volumeMounts:
- - name: tigris
- mountPath: /run/secrets/tigris
- - name: cache
- mountPath: /cache
- envFrom:
- - configMapRef:
- name: valkey-secret
- - configMapRef:
- name: future-sight \ No newline at end of file
diff --git a/cmd/future-sight/manifest/prod/ingress.yaml b/cmd/future-sight/manifest/prod/ingress.yaml
deleted file mode 100644
index 5b31f35..0000000
--- a/cmd/future-sight/manifest/prod/ingress.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- name: future-sight
- namespace: future-sight
- labels:
- app.kubernetes.io/name: future-sight
- annotations:
- cert-manager.io/cluster-issuer: "letsencrypt-prod"
-spec:
- ingressClassName: nginx
- tls:
- - hosts:
- - preview.xeiaso.net
- secretName: preview-xeiaso-net-tls
- rules:
- - host: preview.xeiaso.net
- http:
- paths:
- - pathType: Prefix
- path: "/"
- backend:
- service:
- name: future-sight
- port:
- name: web \ No newline at end of file
diff --git a/cmd/future-sight/manifest/prod/kustomization.yaml b/cmd/future-sight/manifest/prod/kustomization.yaml
deleted file mode 100644
index dc331e9..0000000
--- a/cmd/future-sight/manifest/prod/kustomization.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-resources:
- - namespace.yaml
- - 1password.yaml
- - deployment.yaml
- - service.yaml
- - ingress.yaml
- - nats.yaml
- - valkey.yaml
-namespace: future-sight
diff --git a/cmd/future-sight/manifest/prod/namespace.yaml b/cmd/future-sight/manifest/prod/namespace.yaml
deleted file mode 100644
index 240ee6b..0000000
--- a/cmd/future-sight/manifest/prod/namespace.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-apiVersion: v1
-kind: Namespace
-metadata:
- name: future-sight \ No newline at end of file
diff --git a/cmd/future-sight/manifest/prod/nats.yaml b/cmd/future-sight/manifest/prod/nats.yaml
deleted file mode 100644
index 93c3b4b..0000000
--- a/cmd/future-sight/manifest/prod/nats.yaml
+++ /dev/null
@@ -1,36 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: nats
- namespace: future-sight
- labels:
- xeiaso.net/role: nats
-spec:
- replicas: 1
- strategy: {}
- selector:
- matchLabels:
- xeiaso.net/role: nats
- template:
- metadata:
- labels:
- xeiaso.net/role: nats
- spec:
- containers:
- - name: nats
- image: nats:2-alpine
- ports:
- - containerPort: 4222
----
-apiVersion: v1
-kind: Service
-metadata:
- name: nats
- namespace: future-sight
- labels:
- xeiaso.net/role: valkey
-spec:
- selector:
- xeiaso.net/role: nats
- ports:
- - port: 4222 \ No newline at end of file
diff --git a/cmd/future-sight/manifest/prod/service.yaml b/cmd/future-sight/manifest/prod/service.yaml
deleted file mode 100644
index 8d5dab5..0000000
--- a/cmd/future-sight/manifest/prod/service.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
- name: future-sight
- namespace: future-sight
- labels:
- xeiaso.net/role: web
-spec:
- selector:
- xeiaso.net/role: web
- ports:
- - protocol: TCP
- port: 80
- targetPort: 8081
- name: web
- - protocol: TCP
- port: 8080
- targetPort: 8080
- name: api
- type: ClusterIP \ No newline at end of file
diff --git a/cmd/future-sight/manifest/prod/valkey.yaml b/cmd/future-sight/manifest/prod/valkey.yaml
deleted file mode 100644
index fda0872..0000000
--- a/cmd/future-sight/manifest/prod/valkey.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: valkey-secret
- namespace: future-sight
- labels:
- xeiaso.net/role: valkey
-data:
- VALKEY_PASSWORD: hunter2
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: valkey
- namespace: future-sight
- labels:
- xeiaso.net/role: valkey
-spec:
- replicas: 1
- selector:
- matchLabels:
- xeiaso.net/role: valkey
- template:
- metadata:
- labels:
- xeiaso.net/role: valkey
- spec:
- containers:
- - name: valkey
- image: 'docker.io/bitnami/valkey:latest'
- imagePullPolicy: Always
- ports:
- - containerPort: 6379
- envFrom:
- - configMapRef:
- name: valkey-secret
----
-apiVersion: v1
-kind: Service
-metadata:
- name: valkey
- namespace: future-sight
- labels:
- xeiaso.net/role: valkey
-spec:
- type: ClusterIP
- ports:
- - port: 6379
- selector:
- xeiaso.net/role: valkey \ No newline at end of file