summaryrefslogtreecommitdiff
path: root/f3s/example-apache-volume-claim/apache-service.yaml
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-27 09:59:55 +0300
committerPaul Buetow <paul@buetow.org>2025-07-27 09:59:55 +0300
commite7eddc9a306e5d66451ef82efbeddc5196435703 (patch)
treea221d82e6b87f953d94c8d190e114e18b2acc775 /f3s/example-apache-volume-claim/apache-service.yaml
parent4eb23e409a376320a4c00fbf128604cb5f148e09 (diff)
persistent volume example
Diffstat (limited to 'f3s/example-apache-volume-claim/apache-service.yaml')
-rw-r--r--f3s/example-apache-volume-claim/apache-service.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/f3s/example-apache-volume-claim/apache-service.yaml b/f3s/example-apache-volume-claim/apache-service.yaml
new file mode 100644
index 0000000..1105e3a
--- /dev/null
+++ b/f3s/example-apache-volume-claim/apache-service.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: apache
+ name: apache-service
+ namespace: test
+spec:
+ ports:
+ - name: web
+ port: 80
+ protocol: TCP
+ # Expose port 80 on the service
+ targetPort: 80
+ selector:
+ # Link this service to pods with the label app=apache
+ app: apache