This commit is contained in:
Zeeshaun
2026-03-17 10:03:23 -05:00
parent 1a0702a79a
commit bd1a9744ad
139 changed files with 5388 additions and 0 deletions
@@ -0,0 +1,71 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: archiver-api
spec:
selector:
matchLabels:
run: archiver-api
replicas: 1
template:
metadata:
annotations:
vault.hashicorp.com/agent-inject: "true"
vault.hashicorp.com/agent-init-first: "true"
vault.hashicorp.com/role: "archiver-api"
vault.hashicorp.com/agent-inject-secret-archiverapi_configuration.json: "/secret/data/archiver-api/configuration"
vault.hashicorp.com/agent-inject-template-archiverapi_configuration.json: |
{{- with secret "/secret/data/archiver-api/configuration" -}}
{
"Primary":{
"SeqApiKey": "{{.Data.data.SeqApiKey}}",
"Connections": {
"SQL": {
"ArchiverApiDb": "{{.Data.data.ArchiverApiSqlConnectionString}}"
}
}
},
"ConnectionConfiguration": {
"UserName": "{{.Data.data.QueueUserName}}",
"Password": "{{.Data.data.QueuePassword}}"
}
}
{{- end}}
labels:
run: archiver-api
spec:
serviceAccountName: svc-archiverapi
containers:
- name: archiver-api
image: landmarkcu/archiver-api:{{version}}
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
livenessProbe:
initialDelaySeconds: 5
periodSeconds: 5
httpGet:
path: /status
port: 80
readinessProbe:
initialDelaySeconds: 5
periodSeconds: 5
httpGet:
path: /status
port: 80
volumeMounts:
- mountPath: /etc/localtime
name: tz-config
- name: volume-appsettings
mountPath: /app/config/mapped-appsettings
volumes:
- name: tz-config
hostPath:
path: /usr/share/zoneinfo/America/Chicago
type: "File"
- name: volume-appsettings
configMap:
name: archiverapi-configmap
imagePullSecrets:
- name: regcred
@@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: archiver-api
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/x-forwarded-prefix: "/archiver-api"
spec:
ingressClassName: nginx
rules:
- host:
http:
paths:
- path: /archiver-api(/|$)(.*)
pathType: Prefix
backend:
service:
name: archiver-api
port:
number: 80
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: landmarkcu
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: archiver-api
labels:
run: archiver-api
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
selector:
run: archiver-api
@@ -0,0 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: svc-archiverapi
namespace: landmarkcu
@@ -0,0 +1,6 @@
resources:
- ServiceAccount.yaml
- Namespaces.yaml
- Deployment.yaml
- Service.yaml
- Ingress.yaml