Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Metrics ports must be exposed so prometheus operator can match endpoints #289

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion mysql-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: mysql-operator
version: 0.2.1
version: 0.3.0
description: A Helm chart for deploying the Oracle MySQL Operator
maintainers:
- name: Owain Lewis
Expand Down
1 change: 1 addition & 0 deletions mysql-operator/templates/03-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
image: {{ .Values.image.registry }}/mysql-operator:{{ .Values.image.tag }}
ports:
- containerPort: 10254
- containerPort: 8080
args:
- --v=4
{{- if not .Values.operator.global }}
Expand Down
9 changes: 7 additions & 2 deletions pkg/resources/statefulsets/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,13 @@ func mysqlAgentContainer(cluster *v1alpha1.Cluster, mysqlAgentImage string, root
}

return v1.Container{
Name: MySQLAgentName,
Image: fmt.Sprintf("%s:%s", mysqlAgentImage, agentVersion),
Name: MySQLAgentName,
Image: fmt.Sprintf("%s:%s", mysqlAgentImage, agentVersion),
Ports: []v1.ContainerPort{
{
ContainerPort: 8080,
},
},
Args: []string{"--v=4"},
VolumeMounts: volumeMounts(cluster),
Env: []v1.EnvVar{
Expand Down