Skip to content

Instantly share code, notes, and snippets.

@krsna1729
Created July 28, 2020 18:28
Show Gist options
  • Save krsna1729/58367369f88fe869f31f6c8114044604 to your computer and use it in GitHub Desktop.
Save krsna1729/58367369f88fe869f31f6c8114044604 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
annotations:
field.cattle.io/targetWorkloadIds: '["statefulset:omec:spgwu"]'
creationTimestamp: "2020-07-28T17:45:02Z"
labels:
cattle.io/metrics: e5d93ecc9487076aded83ebca70ae05a
name: spgwu-metrics
namespace: omec
ownerReferences:
- apiVersion: monitoring.coreos.com/v1
controller: true
kind: ServiceMonitor
name: spgwu
uid: b62168da-d715-4d29-bd75-5a268d71085e
resourceVersion: "12891212"
selfLink: /api/v1/namespaces/omec/services/spgwu-metrics
uid: 1cc3833b-ab55-4fbd-96cc-2ad051f80f1b
spec:
clusterIP: None
ports:
- name: metrics8080
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: spgwu
release: omec-user-plane
workloadID_spgwu-metrics: "true"
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
annotations:
field.cattle.io/targetWorkloadIds: '["statefulset:omec:spgwu"]'
creationTimestamp: "2020-07-28T17:45:02Z"
generation: 2
labels:
cattle.io/creator: norman
name: spgwu
namespace: omec
ownerReferences:
- apiVersion: apps/v1beta2
controller: true
kind: statefulset
name: spgwu
uid: 4c2c3278-7fa7-4d8e-a12a-5157f321c58d
resourceVersion: "12891196"
selfLink: /apis/monitoring.coreos.com/v1/namespaces/omec/servicemonitors/spgwu
uid: b62168da-d715-4d29-bd75-5a268d71085e
spec:
endpoints:
- bearerTokenSecret:
key: ""
path: /metrics
port: metrics8080
scheme: HTTP
targetPort: 8080
tlsConfig:
ca: {}
cert: {}
insecureSkipVerify: true
namespaceSelector: {}
selector:
matchLabels:
cattle.io/metrics: e5d93ecc9487076aded83ebca70ae05a
@krsna1729
Copy link
Author

field.cattle.io/workloadMetrics: '[{"path":"/metrics","port":8080,"schema":"HTTP"}]'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment