Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 174-webserver-service.yaml
- apiVersion: v1 # Version of Kubernetes API
- kind: Service # Type of resource
- metadata: # Resource metadata
- name: webserversvc # Resource name
- spec: # Resource specifications
- type: NodePort # Exposes service on high port
- ports: # Service ports
- - port: 80 # Port number (HTTP traffic)
- protocol: TCP # Protocol type
- selector: # Selects Pods to route traffic to
- app: httpd # Selects Pods labeled "app=httpd"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement