test chart

This commit is contained in:
2023-04-09 08:34:48 -05:00
parent 0a15180b53
commit 26362d0ed7
6 changed files with 109 additions and 0 deletions

29
.github/workflows/helm-chart.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Package Helm Chart
on:
push:
branches:
- main
jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: 'v3.7.0'
- name: Package Helm chart
run: helm package ./charts --version 1.0.0
- name: Publish Helm chart package
uses: GitHubPackages/publish-package@v1
with:
package_name: my-chart
package_version: 1.0.0
token: ${{secrets.GITHUB_TOKEN}}

7
charts/Chart.yaml Normal file
View File

@@ -0,0 +1,7 @@
apiVersion: v2
name: durpapi
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: "0.1.0"

View File

@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: durpapi
name: durpapi
labels:
app: durpapi
spec:
selector:
matchLabels:
app: durpapi
replicas: 1
template:
metadata:
labels:
app: durpapi
spec:
containers:
- name: durpapi
image: ghcr.io/developerdurp/durpapi:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
envFrom:
- secretRef:
name: durpapi-secret

View File

@@ -0,0 +1,23 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: durpapi-ingress
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-production
spec:
rules:
- host: durpapi.durp.info
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: durpapi
port:
number: 8080
tls:
- hosts:
- durpapi.durp.info
secretName: durpapi-tls

View File

@@ -0,0 +1,11 @@
apiVersion: v1
data:
OPENAI_API_KEY:
UNRAID_API_KEY:
UNRAID_URI:
jwtToken:
kind: Secret
metadata:
creationTimestamp: null
name: durpapi-secret
namespace: durpapi

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: durpapi
spec:
ports:
- name: http
port: 8080
targetPort: 8080
protocol: TCP
selector:
app: durpapi