Skip to content

Commit ed30541

Browse files
authored
Remove metrics port from backup-driver deployment (#601)
Signed-off-by: Deepak Kinni <deepak.kinni@broadcom.com>
1 parent 9b56f04 commit ed30541

File tree

5 files changed

+12
-46
lines changed

5 files changed

+12
-46
lines changed

deployment/create-deployment-for-backupdriver-guest.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ spec:
3131
type: RollingUpdate
3232
template:
3333
metadata:
34-
annotations:
35-
prometheus.io/path: /metrics
36-
prometheus.io/port: "8085"
37-
prometheus.io/scrape: "true"
3834
creationTimestamp: null
3935
labels:
4036
component: velero
@@ -55,10 +51,6 @@ spec:
5551
image: dpcpinternal/backup-driver:<backup-driver image tag>
5652
imagePullPolicy: IfNotPresent
5753
name: backup-driver
58-
ports:
59-
- containerPort: 8085
60-
name: metrics
61-
protocol: TCP
6254
resources: {}
6355
terminationMessagePath: /dev/termination-log
6456
terminationMessagePolicy: File

deployment/create-deployment-for-backupdriver.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ spec:
3131
type: RollingUpdate
3232
template:
3333
metadata:
34-
annotations:
35-
prometheus.io/path: /metrics
36-
prometheus.io/port: "8085"
37-
prometheus.io/scrape: "true"
3834
creationTimestamp: null
3935
labels:
4036
component: velero
@@ -55,10 +51,6 @@ spec:
5551
image: dpcpinternal/backup-driver:<backup-driver image tag>
5652
imagePullPolicy: IfNotPresent
5753
name: backup-driver
58-
ports:
59-
- containerPort: 8085
60-
name: metrics
61-
protocol: TCP
6254
resources: {}
6355
terminationMessagePath: /dev/termination-log
6456
terminationMessagePolicy: File

deployment/create-deployment-for-plugin.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ spec:
4242
type: RollingUpdate
4343
template:
4444
metadata:
45-
annotations:
46-
prometheus.io/path: /metrics
47-
prometheus.io/port: "8085"
48-
prometheus.io/scrape: "true"
4945
creationTimestamp: null
5046
labels:
5147
component: velero
@@ -72,10 +68,6 @@ spec:
7268
image: gcr.io/heptio-images/velero:v1.1.0
7369
imagePullPolicy: IfNotPresent
7470
name: velero
75-
ports:
76-
- containerPort: 8085
77-
name: metrics
78-
protocol: TCP
7971
resources: {}
8072
terminationMessagePath: /dev/termination-log
8173
terminationMessagePolicy: File

pkg/install/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ func Deployment(namespace string, opts ...podTemplateOption) *appsv1.Deployment
9696
{
9797
Name: "backup-driver",
9898
Image: c.image,
99-
Ports: containerPorts(),
10099
ImagePullPolicy: pullPolicy,
101100
Command: []string{
102101
"/backup-driver",

pkg/install/install.go

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ var CRDsList = []string{
6767

6868
// DefaultImage is the default image to use for the Velero deployment and restic daemonset containers.
6969
var (
70-
DefaultDatamgrImage = imageRegistry() + "/" + constants.DataManagerForPlugin + ":" + imageVersion()
71-
DefaultDatamgrPodCPURequest = "0"
72-
DefaultDatamgrPodMemRequest = "0"
73-
DefaultDatamgrPodCPULimit = "0"
74-
DefaultDatamgrPodMemLimit = "0"
75-
76-
DefaultBackupDriverImage = imageRegistry() + "/" + constants.BackupDriverForPlugin + ":" + imageVersion()
77-
DefaultBackupDriverPodCPURequest = "0"
78-
DefaultBackupDriverPodMemRequest = "0"
79-
DefaultBackupDriverPodCPULimit = "0"
80-
DefaultBackupDriverPodMemLimit = "0"
70+
DefaultDatamgrImage = imageRegistry() + "/" + constants.DataManagerForPlugin + ":" + imageVersion()
71+
DefaultDatamgrPodCPURequest = "0"
72+
DefaultDatamgrPodMemRequest = "0"
73+
DefaultDatamgrPodCPULimit = "0"
74+
DefaultDatamgrPodMemLimit = "0"
75+
76+
DefaultBackupDriverImage = imageRegistry() + "/" + constants.BackupDriverForPlugin + ":" + imageVersion()
77+
DefaultBackupDriverPodCPURequest = "0"
78+
DefaultBackupDriverPodMemRequest = "0"
79+
DefaultBackupDriverPodCPULimit = "0"
80+
DefaultBackupDriverPodMemLimit = "0"
8181
)
8282

8383
type PodOptions struct {
@@ -92,7 +92,7 @@ type PodOptions struct {
9292
SecretAdd bool
9393
MasterAffinity bool
9494
HostNetwork bool
95-
Features []string
95+
Features []string
9696
}
9797

9898
// Use "latest" if the build process didn't supply a version
@@ -124,15 +124,6 @@ func objectMeta(namespace, name string) metav1.ObjectMeta {
124124
}
125125
}
126126

127-
func containerPorts() []corev1.ContainerPort {
128-
return []corev1.ContainerPort{
129-
{
130-
Name: "metrics",
131-
ContainerPort: 8085,
132-
},
133-
}
134-
}
135-
136127
// createResource attempts to create a resource in the cluster.
137128
// If the resource already exists in the cluster, it's merely logged.
138129
func createResource(r *unstructured.Unstructured, factory client.DynamicFactory, w io.Writer) error {

0 commit comments

Comments
 (0)