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

K8SPXC-1537 Update upgrade-consistency test for 1.16.1 release #1931

Merged
merged 3 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: some-name
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: some-name-proxysql
ownerReferences:
- controller: true
kind: PerconaXtraDBCluster
name: some-name
spec:
internalTrafficPolicy: Cluster
ports:
- name: mysql
port: 3306
protocol: TCP
targetPort: 3306
- name: mysql-admin
port: 33062
protocol: TCP
targetPort: 33062
selector:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: some-name
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
sessionAffinity: None
type: ClusterIP
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: some-name
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: some-name-pxc
ownerReferences:
- controller: true
kind: PerconaXtraDBCluster
name: some-name
spec:
internalTrafficPolicy: Cluster
ports:
- name: mysql
port: 3306
protocol: TCP
targetPort: 3306
- name: mysql-admin
port: 33062
protocol: TCP
targetPort: 33062
- name: mysqlx
port: 33060
protocol: TCP
targetPort: 33060
selector:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: some-name
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
sessionAffinity: None
type: ClusterIP
Original file line number Diff line number Diff line change
@@ -0,0 +1,241 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
generation: 2
name: some-name-proxysql
ownerReferences:
- controller: true
kind: PerconaXtraDBCluster
name: some-name
spec:
persistentVolumeClaimRetentionPolicy:
whenDeleted: Retain
whenScaled: Retain
podManagementPolicy: OrderedReady
replicas: 2
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: some-name
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
serviceName: some-name-proxysql-unready
template:
metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: some-name
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: some-name
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
topologyKey: kubernetes.io/hostname
containers:
- args:
- proxysql
- -f
- -c
- /etc/proxysql/proxysql.cnf
- --reload
command:
- /opt/percona/proxysql-entrypoint.sh
env:
- name: PXC_SERVICE
value: some-name-pxc
- name: OPERATOR_PASSWORD
valueFrom:
secretKeyRef:
key: operator
name: internal-some-name
- name: PROXY_ADMIN_USER
value: proxyadmin
- name: PROXY_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
key: proxyadmin
name: internal-some-name
- name: MONITOR_PASSWORD
valueFrom:
secretKeyRef:
key: monitor
name: internal-some-name
envFrom:
- secretRef:
name: some-name-env-vars-proxysql
optional: true
imagePullPolicy: Always
name: proxysql
ports:
- containerPort: 3306
name: mysql
protocol: TCP
- containerPort: 6032
name: proxyadm
protocol: TCP
resources:
limits:
cpu: 700m
memory: 1G
requests:
cpu: 100m
memory: 100M
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
- mountPath: /opt/percona
name: bin
- args:
- /opt/percona/peer-list
- -on-change=/opt/percona/proxysql_add_pxc_nodes.sh
- -service=$(PXC_SERVICE)
env:
- name: PXC_SERVICE
value: some-name-pxc
- name: OPERATOR_PASSWORD
valueFrom:
secretKeyRef:
key: operator
name: internal-some-name
- name: PROXY_ADMIN_USER
value: proxyadmin
- name: PROXY_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
key: proxyadmin
name: internal-some-name
- name: MONITOR_PASSWORD
valueFrom:
secretKeyRef:
key: monitor
name: internal-some-name
envFrom:
- secretRef:
name: some-name-env-vars-proxysql
optional: true
imagePullPolicy: Always
name: pxc-monit
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opt/percona
name: bin
- args:
- /opt/percona/peer-list
- -on-change=/opt/percona/proxysql_add_proxysql_nodes.sh
- -service=$(PROXYSQL_SERVICE)
env:
- name: PROXYSQL_SERVICE
value: some-name-proxysql-unready
- name: OPERATOR_PASSWORD
valueFrom:
secretKeyRef:
key: operator
name: internal-some-name
- name: PROXY_ADMIN_USER
value: proxyadmin
- name: PROXY_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
key: proxyadmin
name: internal-some-name
- name: MONITOR_PASSWORD
valueFrom:
secretKeyRef:
key: monitor
name: internal-some-name
envFrom:
- secretRef:
name: some-name-env-vars-proxysql
optional: true
imagePullPolicy: Always
name: proxysql-monit
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opt/percona
name: bin
dnsPolicy: ClusterFirst
initContainers:
- command:
- /pxc-init-entrypoint.sh
imagePullPolicy: Always
name: pxc-init
resources:
limits:
cpu: 50m
memory: 50M
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/mysql
name: bin
- command:
- /proxysql-init-entrypoint.sh
imagePullPolicy: Always
name: proxysql-init
resources:
limits:
cpu: 50m
memory: 50M
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opt/percona
name: bin
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 1001
supplementalGroups:
- 1001
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
volumes:
- name: ssl-internal
secret:
defaultMode: 420
optional: true
secretName: some-name-ssl-internal
- name: ssl
secret:
defaultMode: 420
optional: false
secretName: some-name-ssl
- emptyDir: {}
name: bin
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- metadata:
name: proxydata
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
status:
phase: Pending
Loading
Loading