Skip to content

Instantly share code, notes, and snippets.

@janakiramm
Created January 5, 2022 12:50
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 janakiramm/c6ad68f4b3c53efe2d25ac70ed57c0df to your computer and use it in GitHub Desktop.
Save janakiramm/c6ad68f4b3c53efe2d25ac70ed57c0df to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: web
namespace: mywebapp
labels:
name: web
app: mywebapp
spec:
selector:
name: web
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 80
protocol: TCP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment