Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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