Compare commits
14 Commits
9c3c433866
...
v0.0.4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
399db56499 | ||
|
|
3ef567a39e | ||
|
|
1ff03cd09f | ||
|
|
fe4ad86710 | ||
|
|
cd35b8e85e | ||
|
|
3af0af01e0 | ||
|
|
456fde28a5 | ||
|
|
159eb7fbc3 | ||
|
|
d5047e2f89 | ||
|
|
67646c80d2 | ||
|
|
ee139f9518 | ||
|
|
8f200514b1 | ||
|
|
b90038ea4c | ||
|
|
7f1416f94a |
@@ -1,13 +1,13 @@
|
|||||||
name: Build & Push
|
name: Build & Push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: git.sebse.de
|
CHART_PATH: web/charts/factorio-signal-exporter
|
||||||
IMAGE: git.sebse.de/sebse/factorio-signal-exporter
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -17,39 +17,56 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
- name: Bump version
|
||||||
uses: docker/login-action@v3
|
id: version
|
||||||
|
uses: https://git.sebse.de/sebse/actions/version-bump@v1
|
||||||
|
with:
|
||||||
|
token: ${{ github.token }}
|
||||||
|
|
||||||
|
- name: Set env vars
|
||||||
|
run: |
|
||||||
|
echo "IMAGE=git.sebse.de/${{ github.repository }}" >> $GITHUB_ENV
|
||||||
|
echo "IMAGE_MIGRATE=git.sebse.de/${{ github.repository }}-migrate" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Docker login
|
||||||
|
uses: https://git.sebse.de/sebse/actions/docker-login@v1
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Extract metadata
|
- name: Build and push app
|
||||||
id: meta
|
uses: https://git.sebse.de/sebse/actions/docker-build-push@v1
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
with:
|
||||||
images: ${{ env.IMAGE }}
|
image: ${{ env.IMAGE }}
|
||||||
tags: |
|
build-context: ./web
|
||||||
type=sha,prefix=,format=short
|
|
||||||
type=raw,value=latest
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push migrate
|
||||||
uses: docker/build-push-action@v5
|
uses: https://git.sebse.de/sebse/actions/docker-build-push@v1
|
||||||
with:
|
with:
|
||||||
context: ./web
|
image: ${{ env.IMAGE_MIGRATE }}
|
||||||
push: true
|
build-context: ./web
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
dockerfile: ./web/Dockerfile.migrate
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
cache-from: type=registry,ref=${{ env.IMAGE }}:latest
|
|
||||||
cache-to: type=inline
|
|
||||||
|
|
||||||
- name: Package Helm chart
|
- name: Package and push helm chart
|
||||||
run: helm package web/charts/factorio-dashboard
|
uses: https://git.sebse.de/sebse/actions/helm-package-push@v1
|
||||||
|
with:
|
||||||
|
chart-path: ${{ env.CHART_PATH }}
|
||||||
|
version: ${{ steps.version.outputs.version }}
|
||||||
|
app-version: ${{ steps.version.outputs.version }}
|
||||||
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Push Helm chart to Gitea
|
- name: Package and push Factorio mod
|
||||||
run: |
|
uses: https://git.sebse.de/sebse/actions/factorio-mod-push@v1
|
||||||
curl -u ${{ secrets.GITEA_USERNAME }}:${{ secrets.GITEA_TOKEN }} \
|
with:
|
||||||
-X POST \
|
mod-folder: ./plugin
|
||||||
https://${{ env.REGISTRY }}/api/packages/sebse/helm/api/charts \
|
version: ${{ steps.version.outputs.version }}
|
||||||
-F "chart=@factorio-dashboard-0.1.0.tgz" \
|
factorio-token: ${{ secrets.FACTORIO_TOKEN }}
|
||||||
--fail-with-body
|
|
||||||
|
- name: Deploy to prod
|
||||||
|
uses: https://git.sebse.de/sebse/actions/helm-deploy@v1
|
||||||
|
with:
|
||||||
|
app: factorio-signal-exporter
|
||||||
|
profile: prod
|
||||||
|
version: ${{ steps.version.outputs.version }}
|
||||||
|
ssh-key: ${{ secrets.HELMBOT_SSH_KEY }}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
3
plugin/README.md
Normal file
3
plugin/README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Signal Exporter
|
||||||
|
|
||||||
|
Provides a custom combinator that reads both connected circuit and logistic networks, writing the data to a JSON file.
|
||||||
10
web/Dockerfile.migrate
Normal file
10
web/Dockerfile.migrate
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
FROM node:24-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package.json package-lock.json* ./
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
|
COPY migrations/ ./migrations/
|
||||||
|
|
||||||
|
CMD ["npm", "run", "migrate"]
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{{- if not .Values.app.existingSecret }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: {{ include "factorio-dashboard.fullname" . }}-secret
|
|
||||||
labels:
|
|
||||||
{{- include "factorio-dashboard.labels" . | nindent 4 }}
|
|
||||||
type: Opaque
|
|
||||||
stringData:
|
|
||||||
API_TOKEN: {{ .Values.app.apiToken | required "app.apiToken is required" | quote }}
|
|
||||||
DATABASE_URL: {{ include "factorio-dashboard.databaseUrl" . | quote }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: {{ include "factorio-dashboard.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "factorio-dashboard.labels" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
type: {{ .Values.service.type }}
|
|
||||||
selector:
|
|
||||||
{{- include "factorio-dashboard.selectorLabels" . | nindent 4 }}
|
|
||||||
ports:
|
|
||||||
- port: {{ .Values.service.port }}
|
|
||||||
targetPort: 3000
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: factorio-dashboard
|
name: factorio-signal-exporter
|
||||||
description: Factorio Signal Exporter — Next.js dashboard with TimescaleDB
|
description: Factorio Signal Exporter — Next.js dashboard with TimescaleDB
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.0
|
version: 0.0.0-dev
|
||||||
appVersion: "latest"
|
appVersion: "latest"
|
||||||
@@ -1,23 +1,23 @@
|
|||||||
{{/*
|
{{/*
|
||||||
Expand the name of the chart.
|
Expand the name of the chart.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "factorio-dashboard.name" -}}
|
{{- define "factorio-signal-exporter.name" -}}
|
||||||
{{- .Chart.Name | trunc 63 | trimSuffix "-" }}
|
{{- .Chart.Name | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create a fully qualified app name.
|
Create a fully qualified app name.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "factorio-dashboard.fullname" -}}
|
{{- define "factorio-signal-exporter.fullname" -}}
|
||||||
{{- printf "%s" (include "factorio-dashboard.name" .) | trunc 63 | trimSuffix "-" }}
|
{{- printf "%s" (include "factorio-signal-exporter.name" .) | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Common labels.
|
Common labels.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "factorio-dashboard.labels" -}}
|
{{- define "factorio-signal-exporter.labels" -}}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
||||||
app.kubernetes.io/name: {{ include "factorio-dashboard.name" . }}
|
app.kubernetes.io/name: {{ include "factorio-signal-exporter.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
@@ -26,25 +26,25 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|||||||
{{/*
|
{{/*
|
||||||
Selector labels.
|
Selector labels.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "factorio-dashboard.selectorLabels" -}}
|
{{- define "factorio-signal-exporter.selectorLabels" -}}
|
||||||
app.kubernetes.io/name: {{ include "factorio-dashboard.name" . }}
|
app.kubernetes.io/name: {{ include "factorio-signal-exporter.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Name of the secret that holds API_TOKEN and DATABASE_URL.
|
Name of the secret that holds API_TOKEN and DATABASE_URL.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "factorio-dashboard.secretName" -}}
|
{{- define "factorio-signal-exporter.secretName" -}}
|
||||||
{{- if .Values.app.existingSecret }}
|
{{- if .Values.app.existingSecret }}
|
||||||
{{- .Values.app.existingSecret }}
|
{{- .Values.app.existingSecret }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- include "factorio-dashboard.fullname" . }}-secret
|
{{- include "factorio-signal-exporter.fullname" . }}-secret
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Construct DATABASE_URL from db values.
|
Construct DATABASE_URL from db values.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "factorio-dashboard.databaseUrl" -}}
|
{{- define "factorio-signal-exporter.databaseUrl" -}}
|
||||||
{{- printf "postgresql://%s:%s@%s-db:%d/%s" .Values.db.user .Values.db.password (include "factorio-dashboard.fullname" .) (int .Values.db.port) .Values.db.name }}
|
{{- printf "postgresql://%s:%s@%s-db:%d/%s" .Values.db.user .Values.db.password (include "factorio-signal-exporter.fullname" .) (int .Values.db.port) .Values.db.name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "factorio-dashboard.fullname" . }}-db
|
name: {{ include "factorio-signal-exporter.fullname" . }}-db
|
||||||
labels:
|
labels:
|
||||||
{{- include "factorio-dashboard.labels" . | nindent 4 }}
|
{{- include "factorio-signal-exporter.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/component: db
|
app.kubernetes.io/component: db
|
||||||
spec:
|
spec:
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
selector:
|
selector:
|
||||||
{{- include "factorio-dashboard.selectorLabels" . | nindent 4 }}
|
{{- include "factorio-signal-exporter.selectorLabels" . | nindent 4 }}
|
||||||
app.kubernetes.io/component: db
|
app.kubernetes.io/component: db
|
||||||
ports:
|
ports:
|
||||||
- port: {{ .Values.db.port }}
|
- port: {{ .Values.db.port }}
|
||||||
@@ -1,21 +1,21 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "factorio-dashboard.fullname" . }}-db
|
name: {{ include "factorio-signal-exporter.fullname" . }}-db
|
||||||
labels:
|
labels:
|
||||||
{{- include "factorio-dashboard.labels" . | nindent 4 }}
|
{{- include "factorio-signal-exporter.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/component: db
|
app.kubernetes.io/component: db
|
||||||
spec:
|
spec:
|
||||||
serviceName: {{ include "factorio-dashboard.fullname" . }}-db
|
serviceName: {{ include "factorio-signal-exporter.fullname" . }}-db
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "factorio-dashboard.selectorLabels" . | nindent 6 }}
|
{{- include "factorio-signal-exporter.selectorLabels" . | nindent 6 }}
|
||||||
app.kubernetes.io/component: db
|
app.kubernetes.io/component: db
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "factorio-dashboard.selectorLabels" . | nindent 8 }}
|
{{- include "factorio-signal-exporter.selectorLabels" . | nindent 8 }}
|
||||||
app.kubernetes.io/component: db
|
app.kubernetes.io/component: db
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
@@ -26,12 +26,6 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: POSTGRES_USER
|
- name: POSTGRES_USER
|
||||||
value: {{ .Values.db.user | quote }}
|
value: {{ .Values.db.user | quote }}
|
||||||
- name: POSTGRES_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: {{ include "factorio-dashboard.secretName" . }}
|
|
||||||
key: DATABASE_URL
|
|
||||||
optional: false
|
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
value: {{ .Values.db.password | quote }}
|
value: {{ .Values.db.password | quote }}
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
@@ -1,18 +1,21 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "factorio-dashboard.fullname" . }}
|
name: {{ include "factorio-signal-exporter.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "factorio-dashboard.labels" . | nindent 4 }}
|
{{- include "factorio-signal-exporter.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.app.replicaCount }}
|
replicas: {{ .Values.app.replicaCount }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "factorio-dashboard.selectorLabels" . | nindent 6 }}
|
{{- include "factorio-signal-exporter.selectorLabels" . | nindent 6 }}
|
||||||
|
app.kubernetes.io/component: app
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "factorio-dashboard.selectorLabels" . | nindent 8 }}
|
{{- include "factorio-signal-exporter.selectorLabels" . | nindent 8 }}
|
||||||
|
app.kubernetes.io/component: app
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
spec:
|
spec:
|
||||||
{{- with .Values.imagePullSecrets }}
|
{{- with .Values.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
@@ -20,14 +23,13 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: migrate
|
- name: migrate
|
||||||
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
image: {{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.initImage.pullPolicy }}
|
||||||
command: ["npm", "run", "migrate"]
|
|
||||||
env:
|
env:
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "factorio-dashboard.secretName" . }}
|
name: {{ include "factorio-signal-exporter.secretName" . }}
|
||||||
key: DATABASE_URL
|
key: DATABASE_URL
|
||||||
containers:
|
containers:
|
||||||
- name: app
|
- name: app
|
||||||
@@ -39,12 +41,12 @@ spec:
|
|||||||
- name: API_TOKEN
|
- name: API_TOKEN
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "factorio-dashboard.secretName" . }}
|
name: {{ include "factorio-signal-exporter.secretName" . }}
|
||||||
key: API_TOKEN
|
key: API_TOKEN
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "factorio-dashboard.secretName" . }}
|
name: {{ include "factorio-signal-exporter.secretName" . }}
|
||||||
key: DATABASE_URL
|
key: DATABASE_URL
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
@@ -2,9 +2,9 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "factorio-dashboard.fullname" . }}
|
name: {{ include "factorio-signal-exporter.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "factorio-dashboard.labels" . | nindent 4 }}
|
{{- include "factorio-signal-exporter.labels" . | nindent 4 }}
|
||||||
{{- with .Values.ingress.annotations }}
|
{{- with .Values.ingress.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- {{ .Values.ingress.host | quote }}
|
- {{ .Values.ingress.host | quote }}
|
||||||
secretName: {{ .Values.ingress.tlsSecretName | default (printf "%s-tls" (include "factorio-dashboard.fullname" .)) | quote }}
|
secretName: {{ .Values.ingress.tlsSecretName | default (printf "%s-tls" (include "factorio-signal-exporter.fullname" .)) | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
- host: {{ .Values.ingress.host | quote }}
|
- host: {{ .Values.ingress.host | quote }}
|
||||||
@@ -27,7 +27,7 @@ spec:
|
|||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: {{ include "factorio-dashboard.fullname" . }}
|
name: {{ include "factorio-signal-exporter.fullname" . }}
|
||||||
port:
|
port:
|
||||||
number: {{ .Values.service.port }}
|
number: {{ .Values.service.port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
12
web/charts/factorio-signal-exporter/templates/secret.yaml
Normal file
12
web/charts/factorio-signal-exporter/templates/secret.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{{- if not .Values.app.existingSecret }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: {{ include "factorio-signal-exporter.fullname" . }}-secret
|
||||||
|
labels:
|
||||||
|
{{- include "factorio-signal-exporter.labels" . | nindent 4 }}
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
API_TOKEN: {{ .Values.app.apiToken | required "app.apiToken is required" | quote }}
|
||||||
|
DATABASE_URL: {{ include "factorio-signal-exporter.databaseUrl" . | quote }}
|
||||||
|
{{- end }}
|
||||||
14
web/charts/factorio-signal-exporter/templates/service.yaml
Normal file
14
web/charts/factorio-signal-exporter/templates/service.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ include "factorio-signal-exporter.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "factorio-signal-exporter.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
type: {{ .Values.service.type }}
|
||||||
|
selector:
|
||||||
|
{{- include "factorio-signal-exporter.selectorLabels" . | nindent 4 }}
|
||||||
|
app.kubernetes.io/component: app
|
||||||
|
ports:
|
||||||
|
- port: {{ .Values.service.port }}
|
||||||
|
targetPort: 3000
|
||||||
@@ -1,7 +1,12 @@
|
|||||||
image:
|
image:
|
||||||
repository: git.sebse.de/sebse/factorio-signal-exporter
|
repository: git.sebse.de/sebse/factorio-signal-exporter
|
||||||
tag: latest
|
tag: latest
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: Always
|
||||||
|
|
||||||
|
initImage:
|
||||||
|
repository: git.sebse.de/sebse/factorio-signal-exporter-migrate
|
||||||
|
tag: latest
|
||||||
|
pullPolicy: Always
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
|
|
||||||
@@ -20,7 +25,7 @@ db:
|
|||||||
name: factorio
|
name: factorio
|
||||||
port: 5432
|
port: 5432
|
||||||
storage: 10Gi
|
storage: 10Gi
|
||||||
storageClassName: "" # leave empty for cluster default
|
storageClassName: ""
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
Reference in New Issue
Block a user