summaryrefslogtreecommitdiff
path: root/f3s/example-apache/apache-service.yaml
blob: 93b24acb2eaefe2350c4aa9ea3c3d6814db83010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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