expose_service
Create a Kubernetes service to expose resources like pods, deployments, or replicasets. Specify service type (ClusterIP, NodePort, LoadBalancer, or ExternalName) and configure ports for network access.
Instructions
Expose a resource as a new kubernetes service k8s_object can be pod (po), service (svc), replicationcontroller (rc), deployment (deploy), replicaset (rs) Type for this service: ClusterIP, NodePort, LoadBalancer, or ExternalName. Default is 'ClusterIP'.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
k8s_object | Yes | ||
name | Yes | ||
namespace | No | default | |
port | No | ||
protocol | No | TCP | |
target_port | No | ||
type | No | ClusterIP |
Input Schema (JSON Schema)
{
"properties": {
"k8s_object": {
"title": "K8S Object",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"namespace": {
"default": "default",
"title": "Namespace",
"type": "string"
},
"port": {
"default": 80,
"title": "Port",
"type": "integer"
},
"protocol": {
"default": "TCP",
"title": "Protocol",
"type": "string"
},
"target_port": {
"default": 80,
"title": "Target Port",
"type": "integer"
},
"type": {
"default": "ClusterIP",
"title": "Type",
"type": "string"
}
},
"required": [
"k8s_object",
"name"
],
"title": "expose_serviceArguments",
"type": "object"
}