Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion REDIS_TLS_SETUP.md → doc/REDIS_TLS_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This document explains the Redis TLS configuration for the status-list-server de
2. **Deploy:**

```bash
helm upgrade statuslist ./helm/status-list-server-chart --namespace statuslist
helm upgrade statuslist ./helm/chart --namespace statuslist
```

3. **Verify:**
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions k8s-deployment-issues.md → doc/k8s-deployment-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This document records all issues encountered during the deployment of the Status
- **Kubernetes Cluster**: kind (Kubernetes in Docker)
- **Cluster Configuration**: 3 nodes (1 control-plane, 2 workers)
- **Namespace**: `statuslist`
- **Helm Chart**: Custom status-list-server-chart with Bitnami dependencies
- **Helm Chart**: Custom chart with Bitnami dependencies

## Issues Encountered and Solutions

Expand All @@ -27,8 +27,8 @@ secretStore:
enabled: false
```
**Files Modified**:
- `helm/status-list-server-chart/templates/external-secretes.yaml`
- `helm/status-list-server-chart/templates/secret-store.yaml`
- `helm/chart/templates/external-secretes.yaml`
- `helm/chart/templates/secret-store.yaml`
**Status**: ✅ Resolved

### 2. Missing Kubernetes Secrets
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "status-list-server-chart.name" -}}
{{- define "chart.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

Expand All @@ -10,7 +10,7 @@ Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "status-list-server-chart.fullname" -}}
{{- define "chart.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand All @@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "status-list-server-chart.chart" -}}
{{- define "chart.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "status-list-server-chart.labels" -}}
helm.sh/chart: {{ include "status-list-server-chart.chart" . }}
{{ include "status-list-server-chart.selectorLabels" . }}
{{- define "chart.labels" -}}
helm.sh/chart: {{ include "chart.chart" . }}
{{ include "chart.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
Expand All @@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{/*
Selector labels
*/}}
{{- define "status-list-server-chart.selectorLabels" -}}
app.kubernetes.io/name: {{ include "status-list-server-chart.name" . }}
{{- define "chart.selectorLabels" -}}
app.kubernetes.io/name: {{ include "chart.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "status-list-server-chart.serviceAccountName" -}}
{{- define "chart.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "status-list-server-chart.fullname" .) .Values.serviceAccount.name }}
{{- default (include "chart.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "status-list-server-chart.fullname" . }}-deployment
name: {{ include "chart.fullname" . }}-deployment
labels:
app: {{ include "status-list-server-chart.name" . }}
app: {{ include "chart.name" . }}
namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.statuslist.replicaCount }}
selector:
matchLabels:
app: {{ include "status-list-server-chart.name" . }}
app: {{ include "chart.name" . }}
template:
metadata:
labels:
app: {{ include "status-list-server-chart.name" . }}
app: {{ include "chart.name" . }}
spec:
initContainers:
{{- toYaml .Values.statuslist.initContainers | nindent 8 }}
containers:
- name: {{ include "status-list-server-chart.name" . }}
- name: {{ include "chart.name" . }}
image: {{ .Values.statuslist.image.repository }}:{{ .Values.statuslist.image.tag }}
imagePullPolicy: {{ .Values.statuslist.image.pullPolicy }}
ports:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "status-list-server-chart.fullname" . }}-ingress
name: {{ include "chart.fullname" . }}-ingress
namespace: {{ .Release.Namespace }}
annotations:
external-dns.alpha.kubernetes.io/hostname: {{ .Values.statuslist.ingress.externalDnsHostname }}
Expand All @@ -16,7 +16,7 @@ spec:
pathType: {{ .Values.statuslist.ingress.pathType }}
backend:
service:
name: {{ include "status-list-server-chart.fullname" . }}-service
name: {{ include "chart.fullname" . }}-service
port:
number: {{ .Values.statuslist.service.port }}
tls:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "status-list-server-chart.fullname" . }}-service
name: {{ include "chart.fullname" . }}-service
labels:
app: {{ include "status-list-server-chart.name" . }}
app: {{ include "chart.name" . }}
namespace: {{ .Release.Namespace }}
spec:
type: {{ .Values.statuslist.service.type }}
Expand All @@ -13,4 +13,4 @@ spec:
targetPort: {{ .Values.statuslist.service.targetPort }}
protocol: TCP
selector:
app: {{ include "status-list-server-chart.name" . }}
app: {{ include "chart.name" . }}
File renamed without changes.
4 changes: 2 additions & 2 deletions k8s-deployment-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ NC='\033[0m' # No Color
CLUSTER_NAME="status-list-test"
NAMESPACE="statuslist"
KIND_CONFIG="kind-config.yaml"
HELM_CHART_PATH="./helm/status-list-server-chart-local"
TEST_VALUES="helm/status-list-server-chart-local/values.yaml"
HELM_CHART_PATH="./helm/chart-local"
TEST_VALUES="helm/chart-local/values.yaml"
KIND_CMD="./kind" # Use local kind binary

# Functions
Expand Down