summaryrefslogtreecommitdiff
path: root/f3s/example-apache/apache-service.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'f3s/example-apache/apache-service.yaml')
-rw-r--r--f3s/example-apache/apache-service.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/f3s/example-apache/apache-service.yaml b/f3s/example-apache/apache-service.yaml
new file mode 100644
index 0000000..93b24ac
--- /dev/null
+++ b/f3s/example-apache/apache-service.yaml
@@ -0,0 +1,16 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: apache
+ name: apache-service
+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