mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-05-14 13:26:34 +00:00
* feat(config): add combined users property as successor for usergroups and usernames configuration Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * fix(crds): add proper deprecation notices on properties and via admission warnings Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: add local monitoring environment Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> --------- Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: capsule
|
|
namespace: monitoring-system
|
|
labels:
|
|
app: capsule
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: capsule
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: capsule
|
|
annotations:
|
|
prometheus.io/scrape: 'true'
|
|
prometheus.io/path: '/metrics'
|
|
prometheus.io/port: '8080'
|
|
profiles.grafana.com/memory.scrape: "true"
|
|
profiles.grafana.com/memory.port: "8082"
|
|
profiles.grafana.com/cpu.scrape: "true"
|
|
profiles.grafana.com/cpu.port: "8082"
|
|
profiles.grafana.com/goroutine.scrape: "true"
|
|
profiles.grafana.com/goroutine.port: "8082"
|
|
spec:
|
|
containers:
|
|
- name: tcp-proxy
|
|
image: alpine/socat
|
|
ports:
|
|
- containerPort: 8080
|
|
- containerPort: 8082
|
|
command: ["sh", "-c"]
|
|
args:
|
|
- |
|
|
set -e
|
|
echo "Starting TCP proxy to ${LAPTOP_HOST_IP}..."
|
|
# Forward 8080 -> TARGET_HOST:8080
|
|
socat TCP-LISTEN:8080,fork,reuseaddr TCP:${LAPTOP_HOST_IP}:8080 &
|
|
# Forward 8082 -> TARGET_HOST:8082
|
|
socat TCP-LISTEN:8082,fork,reuseaddr TCP:${LAPTOP_HOST_IP}:8082 &
|
|
wait
|