Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Created October 8, 2020 13:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bharatmicrosystems/58ab1c5bf1f873fbd0e388636ce59826 to your computer and use it in GitHub Desktop.
Save bharatmicrosystems/58ab1c5bf1f873fbd0e388636ce59826 to your computer and use it in GitHub Desktop.
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Service
metadata:
labels:
app: nginx
name: nginx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: nginx
type: LoadBalancer
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment