deployment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2025-01-27 19:03:21 +01:00
parent 5660eba61c
commit abc25a8e7f
2 changed files with 16 additions and 16 deletions

View File

@ -1,25 +1,25 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: nutri name: pv-stats
labels: labels:
app: nutri app: pv-stats
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: nutri app: pv-stats
template: template:
metadata: metadata:
labels: labels:
app: nutri app: pv-stats
spec: spec:
containers: containers:
- name: nutri - name: pv-stats
image: %IMAGE% image: %IMAGE%
envFrom: envFrom:
- secretRef: - secretRef:
name: nutri-secrets name: pv-stats
ports: ports:
- containerPort: 8080 - containerPort: 8080
protocol: TCP protocol: TCP
@ -27,11 +27,11 @@ spec:
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: nutri name: pv-stats
spec: spec:
type: ClusterIP type: ClusterIP
selector: selector:
app: nutri app: pv-stats
ports: ports:
- name: http - name: http
targetPort: 8080 targetPort: 8080
@ -40,23 +40,23 @@ spec:
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: nutri name: pv-stats
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-production-http cert-manager.io/cluster-issuer: letsencrypt-production-http
spec: spec:
tls: tls:
- hosts: - hosts:
- nutri%POSTFIX%.hottis.de - pv-stats.hottis.de
secretName: nutri-cert secretName: pv-stats-cert
rules: rules:
- host: nutri%POSTFIX%.hottis.de - host: pv-stats.hottis.de
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:
name: nutri name: pv-stats
port: port:
number: 80 number: 80

View File

@ -38,9 +38,9 @@ kubectl create secret generic pv-stats \
--from-literal=OIDC_CLIENT_SECRETS="$OIDC_CLIENT_SECRETS" | \ --from-literal=OIDC_CLIENT_SECRETS="$OIDC_CLIENT_SECRETS" | \
kubectl apply -f - -n $NAMESPACE kubectl apply -f - -n $NAMESPACE
# cat $DEPLOYMENT_DIR/deploy-yml.tmpl | \ cat $DEPLOYMENT_DIR/deploy-yml.tmpl | \
# sed -e 's,%IMAGE%,'$IMAGE_NAME':'$IMAGE_TAG','g | \ sed -e 's,%IMAGE%,'$IMAGE_NAME':'$IMAGE_TAG','g | \
# kubectl apply -f - -n $NAMESPACE kubectl apply -f - -n $NAMESPACE
popd > /dev/null popd > /dev/null