test chart
This commit is contained in:
29
.github/workflows/helm-chart.yml
vendored
Normal file
29
.github/workflows/helm-chart.yml
vendored
Normal 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
7
charts/Chart.yaml
Normal 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"
|
||||
27
charts/templates/deployment.yaml
Normal file
27
charts/templates/deployment.yaml
Normal 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
|
||||
23
charts/templates/ingress.yaml
Normal file
23
charts/templates/ingress.yaml
Normal 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
|
||||
11
charts/templates/secret.yaml
Normal file
11
charts/templates/secret.yaml
Normal 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
|
||||
12
charts/templates/service.yaml
Normal file
12
charts/templates/service.yaml
Normal 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
|
||||
Reference in New Issue
Block a user