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

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

View File

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