summaryrefslogtreecommitdiff
path: root/f3s/example-apache-volume-claim/helm-chart/templates/apache-service.yaml
blob: 1105e3a70cd31d29f1ee4b200f7b98221533a702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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