Skip to content

Commit

Permalink
modify the labels of apache-nas + add ports to container
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed Dec 5, 2024
1 parent e9eb813 commit 3596760
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apache-nas/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: apache-nas
description: A Helm chart for deploying a Apache-httpd server
type: application
version: 1.2.1
version: 1.3.0
appVersion: "1.16.0"
12 changes: 8 additions & 4 deletions apache-nas/templates/apache-nas-depl.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "apache-nas.fullname" . }}
labels:
app.kubernetes.io/name: apache-nas
name: apache-nas
{{- include "apache-nas.labels" . | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: apache-nas
{{- include "apache-nas.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
app.kubernetes.io/name: apache-nas
{{- include "apache-nas.labels" . | nindent 8 }}
spec:
containers:
- image: {{ .Values.docker_image }}
Expand All @@ -28,6 +28,10 @@ spec:
{{- if .Values.nas.extraVolumeMounts }}
{{- .Values.nas.extraVolumeMounts | toYaml | nindent 10 }}
{{- end }}
ports:
- name: http
containerPort: 80
protocol: TCP
volumes:
- name: apache-nas-data
persistentVolumeClaim:
Expand Down
12 changes: 8 additions & 4 deletions apache-nas/templates/apache-nas-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: apache-nas-svc
name: {{ include "apache-nas.fullname" . }}
labels:
{{- include "apache-nas.labels" . | nindent 4 }}
spec:
selector:
app.kubernetes.io/name: apache-nas
ports:
- port: 80
targetPort: 80
targetPort: http
protocol: TCP
name: http
selector:
{{- include "apache-nas.selectorLabels" . | nindent 4 }}

0 comments on commit 3596760

Please sign in to comment.