Skip to content

Instantly share code, notes, and snippets.

@yaakov-h
Forked from Jeffwan/kubernetes-service.yaml
Last active March 5, 2018 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaakov-h/535fdc9a0f150d63c3cc006fb1f5c9d5 to your computer and use it in GitHub Desktop.
Save yaakov-h/535fdc9a0f150d63c3cc006fb1f5c9d5 to your computer and use it in GitHub Desktop.
kubernetes-service.yaml
apiVersion: v1
kind: Service
metadata:
name: nginxsvc
labels:
app: nginx
spec:
ports:
- port: 80
porotocal: TCP
targetPort: 80
name: www.baidu.com
selector: 匹配器
port: 80
app: nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment