Skip to content

Instantly share code, notes, and snippets.

@ams0
Created September 20, 2020 23:39
Show Gist options
  • Save ams0/0ed1346bda41a25c6b4d69a610b4fc08 to your computer and use it in GitHub Desktop.
Save ams0/0ed1346bda41a25c6b4d69a610b4fc08 to your computer and use it in GitHub Desktop.
kubectl apply -f - <<EOF
apiVersion: v1
kind: Service
metadata:
name: vm1ssh
spec:
externalTrafficPolicy: Cluster
ports:
- port: 22
name: ssh
protocol: TCP
targetPort: 22
selector:
kubevirt.io/domain: vm1
type: LoadBalancer
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment