mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-20 19:07:17 +01:00
Expose ports on KSM for K3s
This commit is contained in:
parent
b6cdf80843
commit
5c19ad2ab2
@ -84,6 +84,15 @@ local vars = import 'vars.jsonnet';
|
|||||||
'--port=8080',
|
'--port=8080',
|
||||||
'--telemetry-port=8081',
|
'--telemetry-port=8081',
|
||||||
],
|
],
|
||||||
|
ports: [
|
||||||
|
{
|
||||||
|
containerPort: 8080,
|
||||||
|
name: 'http-main'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
containerPort: 8081,
|
||||||
|
name: 'http-self'
|
||||||
|
}],
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
c,
|
c,
|
||||||
@ -100,12 +109,12 @@ local vars = import 'vars.jsonnet';
|
|||||||
ports: [{
|
ports: [{
|
||||||
name: 'http-main',
|
name: 'http-main',
|
||||||
port: 8080,
|
port: 8080,
|
||||||
targetPort: '8080'
|
targetPort: 'http-main'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'http-self',
|
name: 'http-self',
|
||||||
port: 8081,
|
port: 8081,
|
||||||
targetPort: '8081'
|
targetPort: 'http-self'
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -21,6 +21,11 @@ spec:
|
|||||||
- --telemetry-port=8081
|
- --telemetry-port=8081
|
||||||
image: carlosedp/kube-state-metrics:v1.7.2
|
image: carlosedp/kube-state-metrics:v1.7.2
|
||||||
name: kube-state-metrics
|
name: kube-state-metrics
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
name: http-main
|
||||||
|
- containerPort: 8081
|
||||||
|
name: http-self
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
@ -10,9 +10,9 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: http-main
|
- name: http-main
|
||||||
port: 8080
|
port: 8080
|
||||||
targetPort: "8080"
|
targetPort: http-main
|
||||||
- name: http-self
|
- name: http-self
|
||||||
port: 8081
|
port: 8081
|
||||||
targetPort: "8081"
|
targetPort: http-self
|
||||||
selector:
|
selector:
|
||||||
app: kube-state-metrics
|
app: kube-state-metrics
|
||||||
|
Loading…
Reference in New Issue
Block a user