$ cat service-agent.yaml apiVersion: v1 kind: Service metadata: labels: app: zabbix name: zabbix-agent namespace: zabbix spec: ports: - name: zabbix-agent port: 10050 protocol: TCP targetPort: 10050 selector: app: zabbix type: ClusterIP