Openshift monitoring test fix
proxysql pods have to be adjusted
@@ -31,48 +31,6 @@ spec:
app.kubernetes.io/part-of: percona-xtradb-cluster
spec:
containers:
- - env:
- - name: PXC_SERVICE
- value: monitoring-pxc
- - name: MYSQL_ROOT_PASSWORD
- valueFrom:
- secretKeyRef:
- key: root
- name: my-cluster-secrets
- - name: PROXY_ADMIN_USER
- value: proxyadmin
- - name: PROXY_ADMIN_PASSWORD
- valueFrom:
- secretKeyRef:
- key: proxyadmin
- name: my-cluster-secrets
- - name: MONITOR_PASSWORD
- valueFrom:
- secretKeyRef:
- key: monitor
- name: my-cluster-secrets
- imagePullPolicy: Always
- name: proxysql
- ports:
- - containerPort: 3306
- name: mysql
- protocol: TCP
- - containerPort: 6032
- name: proxyadm
- protocol: TCP
- resources:
- requests:
- cpu: 300m
- memory: 500M
- terminationMessagePath: /dev/termination-log
- terminationMessagePolicy: File
- volumeMounts:
- - mountPath: /var/lib/proxysql
- name: proxydata
- - mountPath: /etc/proxysql/ssl
- name: ssl
- - mountPath: /etc/proxysql/ssl-internal
- name: ssl-internal
- env:
- name: PMM_SERVER
value: monitoring-service
@@ -127,6 +85,48 @@ spec:
memory: 500M
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
+ - env:
+ - name: PXC_SERVICE
+ value: monitoring-pxc
+ - name: MYSQL_ROOT_PASSWORD
+ valueFrom:
+ secretKeyRef:
+ key: root
+ name: my-cluster-secrets
+ - name: PROXY_ADMIN_USER
+ value: proxyadmin
+ - name: PROXY_ADMIN_PASSWORD
+ valueFrom:
+ secretKeyRef:
+ key: proxyadmin
+ name: my-cluster-secrets
+ - name: MONITOR_PASSWORD
+ valueFrom:
+ secretKeyRef:
+ key: monitor
+ name: my-cluster-secrets
+ imagePullPolicy: Always
+ name: proxysql
+ ports:
+ - containerPort: 3306
+ name: mysql
+ protocol: TCP
+ - containerPort: 6032
+ name: proxyadm
+ protocol: TCP
+ resources:
+ requests:
+ cpu: 300m
+ memory: 500M
+ terminationMessagePath: /dev/termination-log
+ terminationMessagePolicy: File
+ volumeMounts:
+ - mountPath: /var/lib/proxysql
+ name: proxydata
+ - mountPath: /etc/proxysql/ssl
+ name: ssl
+ - mountPath: /etc/proxysql/ssl-internal
+ name: ssl-internal
- args:
- /usr/bin/peer-list
- -on-change=/usr/bin/add_pxc_nodes.sh
