-
Notifications
You must be signed in to change notification settings - Fork 0
K8s Service
Andy Potanin edited this page Jun 21, 2026
·
3 revisions
Creates a Kubernetes Service from a native manifest definition.
Use this module when a Rabbit service needs a ClusterIP, NodePort, or LoadBalancer service to expose pods within or outside the cluster.
- Service creation from a standard Kubernetes manifest.
- ClusterIP, NodePort, and LoadBalancer service types.
- Multiple port definitions with named ports.
- Label-based pod selector.
- A kubeconfig secret created by the
k8s-accessmodule. - The target namespace and pods must exist.
- The
configurationskey accepts an array of Kubernetes manifests. The module extracts the first manifest withkind: Service. - The service type defaults to
ClusterIPwhen not specified.
services:
- name: "k8s Service"
module: "k8s-service"
id: "app-service"
deployment_order: 90
configurations:
- kind: "Service"
metadata:
name: "www-example-com"
namespace: "www-example-com"
labels:
app: "www-example-com"
spec:
type: "ClusterIP"
selector:
app: "www-example-com"
ports:
- name: "http"
port: 80
targetPort: 8080| Output | Description |
|---|---|
service |
Created service details including name, namespace, type, cluster_ip, and ports. |
The configurations key accepts an array containing a native Kubernetes Service manifest.
configurations:
- kind: "Service"
metadata:
name: ""
namespace: ""
labels: {}
spec:
type: "ClusterIP"
selector: {}
ports:
- name: ""
port: 80
targetPort: 8080
protocol: "TCP"| Field | Type | Required | Description |
|---|---|---|---|
kind |
string | Yes | Must be Service. |
metadata.name |
string | Yes | Service name. |
metadata.namespace |
string | Yes | Target namespace. |
metadata.labels |
map[string] | No | Kubernetes labels. |
spec.type |
string | No | Service type: ClusterIP, NodePort, or LoadBalancer. Defaults to ClusterIP. |
spec.selector |
map[string] | Yes | Label selector matching target pods. |
spec.ports |
array[port] | Yes | Port definitions. |
spec.ports[].name |
string | No | Port name. |
spec.ports[].port |
number | Yes | Service port. |
spec.ports[].targetPort |
number or string | Yes | Target port on the pod. |
spec.ports[].protocol |
string | No | Protocol. Defaults to TCP. |
- AWS ACM Certificate
- AWS CloudFormation Stack
- AWS CloudFront Distribution
- AWS CloudFront Response Headers Policy
- AWS Route53 DNS
- AWS WAF
- GCP GKE Cluster
- GCP GKE Node Pool
- GCP IAM
- GCP Monitoring
- GCP Networking
- GCP PostgreSQL Instance
- GCP Secret Manager
- GCP SQL Instance
- GCP Static IP
- GCP Storage
- Ghost Inspector Sync
- K8s Access
- K8s ConfigMap
- K8s Deployment
- K8s HPA
- K8s HTTP Gateway Route
- K8s HTTP Health Check Policy
- K8s Memcached
- K8s Namespace
- K8s PDB
- K8s Secret
- K8s Service
- K8s Shared HTTP Gateway
- NewRelic APM Browser
- NewRelic Synthetic Monitors