Skip to content
Gallery
Gentera
Share
Explore
Identity Access Manager

service.yaml


apiVersion: v1
kind: Service
metadata:
name: METADATA_NAME
namespace: NAMESPACE
annotations:
cloud.google.com/neg: '{"ingress": true}'
spec:
ports:
- name: HTTP_PORT_NAME
port: HTTP_PORT_NUMBER
protocol: TCP
targetPort: HTTP_PORT_NUMBER
- name: SSL_PORT_NAME
port: SSL_PORT_NUMBER
protocol: TCP
targetPort: HTTP_PORT_NUMBER
selector:
app: APP_NAME
tier: TIER_NAME
type: NodePort
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.