Skip to content

Instantly share code, notes, and snippets.

@janakiramm
Last active November 24, 2021 11:01
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/e936f3e996451177905a58a4916ff55a to your computer and use it in GitHub Desktop.
Save janakiramm/e936f3e996451177905a58a4916ff55a to your computer and use it in GitHub Desktop.
# Create Triton service
cat <<EOF > triton-service.yaml
apiVersion: v1
kind: Service
metadata:
name: triton
namespace: model-server
spec:
type: NodePort
selector:
app: triton
ports:
- protocol: TCP
name: http
port: 8000
nodePort: 30800
targetPort: 8000
- protocol: TCP
name: grpc
port: 8001
nodePort: 30801
targetPort: 8001
- protocol: TCP
name: metrics
nodePort: 30802
port: 8002
targetPort: 8002
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment