Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add addon-controller Service #823

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ kind: Namespace
metadata:
name: projectsveltos
---
apiVersion: v1
kind: Service
metadata:
name: controller
spec:
selector:
control-plane: addon-controller
ports:
- protocol: TCP
port: 80
targetPort: 8443
name: metrics
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
15 changes: 15 additions & 0 deletions manifest/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8384,6 +8384,21 @@ subjects:
name: addon-controller
namespace: projectsveltos
---
apiVersion: v1
kind: Service
metadata:
name: addon-controller
namespace: projectsveltos
spec:
ports:
- name: metrics
port: 80
protocol: TCP
targetPort: 8443
selector:
control-plane: addon-controller
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
6 changes: 3 additions & 3 deletions manifest/service_monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ kind: ServiceMonitor
metadata:
labels:
control-plane: addon-controller
name: fm-controller-manager-metrics-monitor
name: addon-controller
namespace: projectsveltos
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
path: /metrics
port: https
port: metrics
scheme: https
tlsConfig:
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecureSkipVerify: true
selector:
matchLabels:
control-plane: addon-controller