github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/applications/mysql-operator/bundle.yaml (about)

     1  apiVersion: apiextensions.k8s.io/v1
     2  kind: CustomResourceDefinition
     3  metadata:
     4    name: perconaxtradbclusters.pxc.percona.com
     5  spec:
     6    group: pxc.percona.com
     7    names:
     8      kind: PerconaXtraDBCluster
     9      listKind: PerconaXtraDBClusterList
    10      plural: perconaxtradbclusters
    11      singular: perconaxtradbcluster
    12      shortNames:
    13      - pxc
    14      - pxcs
    15    scope: Namespaced
    16    versions:
    17      - name: v1alpha1
    18        storage: false
    19        served: true
    20        schema:
    21          openAPIV3Schema:
    22            type: object
    23            properties:
    24              spec:
    25                type: object
    26                x-kubernetes-preserve-unknown-fields: true
    27              status:
    28                type: object
    29                x-kubernetes-preserve-unknown-fields: true
    30        additionalPrinterColumns:
    31        - name: Endpoint
    32          type: string
    33          jsonPath: .status.host
    34        - name: Status
    35          type: string
    36          jsonPath: .status.state
    37        - name: PXC
    38          type: string
    39          description: Ready pxc nodes
    40          jsonPath: .status.pxc.ready
    41        - name: proxysql
    42          type: string
    43          description: Ready proxysql nodes
    44          jsonPath: .status.proxysql.ready
    45        - name: Age
    46          type: date
    47          jsonPath: .metadata.creationTimestamp
    48        subresources:
    49          status: {}
    50      - name: v1
    51        storage: false
    52        served: true
    53        schema:
    54          openAPIV3Schema:
    55            type: object
    56            properties:
    57              spec:
    58                type: object
    59                x-kubernetes-preserve-unknown-fields: true
    60              status:
    61                type: object
    62                x-kubernetes-preserve-unknown-fields: true
    63        additionalPrinterColumns:
    64        - name: Endpoint
    65          type: string
    66          jsonPath: .status.host
    67        - name: Status
    68          type: string
    69          jsonPath: .status.state
    70        - name: PXC
    71          type: string
    72          description: Ready pxc nodes
    73          jsonPath: .status.pxc.ready
    74        - name: proxysql
    75          type: string
    76          description: Ready proxysql nodes
    77          jsonPath: .status.proxysql.ready
    78        - name: haproxy
    79          type: string
    80          description: Ready haproxy nodes
    81          jsonPath: .status.haproxy.ready
    82        - name: Age
    83          type: date
    84          jsonPath: .metadata.creationTimestamp
    85        subresources:
    86          status: {}
    87          scale:
    88            specReplicasPath: .spec.pxc.size
    89            statusReplicasPath: .status.pxc.ready
    90            labelSelectorPath: .status.pxc.labelSelectorPath
    91      - name: v1-1-0
    92        storage: false
    93        served: true
    94        schema:
    95          openAPIV3Schema:
    96            type: object
    97            properties:
    98              spec:
    99                type: object
   100                x-kubernetes-preserve-unknown-fields: true
   101              status:
   102                type: object
   103                x-kubernetes-preserve-unknown-fields: true
   104        additionalPrinterColumns:
   105        - name: Endpoint
   106          type: string
   107          jsonPath: .status.host
   108        - name: Status
   109          type: string
   110          jsonPath: .status.state
   111        - name: PXC
   112          type: string
   113          description: Ready pxc nodes
   114          jsonPath: .status.pxc.ready
   115        - name: proxysql
   116          type: string
   117          description: Ready proxysql nodes
   118          jsonPath: .status.proxysql.ready
   119        - name: Age
   120          type: date
   121          jsonPath: .metadata.creationTimestamp
   122        subresources:
   123          status: {}
   124      - name: v1-2-0
   125        storage: false
   126        served: true
   127        schema:
   128          openAPIV3Schema:
   129            type: object
   130            properties:
   131              spec:
   132                type: object
   133                x-kubernetes-preserve-unknown-fields: true
   134              status:
   135                type: object
   136                x-kubernetes-preserve-unknown-fields: true
   137        additionalPrinterColumns:
   138        - name: Endpoint
   139          type: string
   140          jsonPath: .status.host
   141        - name: Status
   142          type: string
   143          jsonPath: .status.state
   144        - name: PXC
   145          type: string
   146          description: Ready pxc nodes
   147          jsonPath: .status.pxc.ready
   148        - name: proxysql
   149          type: string
   150          description: Ready proxysql nodes
   151          jsonPath: .status.proxysql.ready
   152        - name: Age
   153          type: date
   154          jsonPath: .metadata.creationTimestamp
   155        subresources:
   156          status: {}
   157      - name: v1-3-0
   158        storage: false
   159        served: true
   160        schema:
   161          openAPIV3Schema:
   162            type: object
   163            properties:
   164              spec:
   165                type: object
   166                x-kubernetes-preserve-unknown-fields: true
   167              status:
   168                type: object
   169                x-kubernetes-preserve-unknown-fields: true
   170        additionalPrinterColumns:
   171        - name: Endpoint
   172          type: string
   173          jsonPath: .status.host
   174        - name: Status
   175          type: string
   176          jsonPath: .status.state
   177        - name: PXC
   178          type: string
   179          description: Ready pxc nodes
   180          jsonPath: .status.pxc.ready
   181        - name: proxysql
   182          type: string
   183          description: Ready proxysql nodes
   184          jsonPath: .status.proxysql.ready
   185        - name: Age
   186          type: date
   187          jsonPath: .metadata.creationTimestamp
   188        subresources:
   189          status: {}
   190      - name: v1-4-0
   191        storage: false
   192        served: true
   193        schema:
   194          openAPIV3Schema:
   195            type: object
   196            properties:
   197              spec:
   198                type: object
   199                x-kubernetes-preserve-unknown-fields: true
   200              status:
   201                type: object
   202                x-kubernetes-preserve-unknown-fields: true
   203        additionalPrinterColumns:
   204        - name: Endpoint
   205          type: string
   206          jsonPath: .status.host
   207        - name: Status
   208          type: string
   209          jsonPath: .status.state
   210        - name: PXC
   211          type: string
   212          description: Ready pxc nodes
   213          jsonPath: .status.pxc.ready
   214        - name: proxysql
   215          type: string
   216          description: Ready proxysql nodes
   217          jsonPath: .status.proxysql.ready
   218        - name: Age
   219          type: date
   220          jsonPath: .metadata.creationTimestamp
   221        subresources:
   222          status: {}
   223      - name: v1-5-0
   224        storage: false
   225        served: true
   226        schema:
   227          openAPIV3Schema:
   228            type: object
   229            properties:
   230              spec:
   231                type: object
   232                x-kubernetes-preserve-unknown-fields: true
   233              status:
   234                type: object
   235                x-kubernetes-preserve-unknown-fields: true
   236        additionalPrinterColumns:
   237        - name: Endpoint
   238          type: string
   239          jsonPath: .status.host
   240        - name: Status
   241          type: string
   242          jsonPath: .status.state
   243        - name: PXC
   244          type: string
   245          description: Ready pxc nodes
   246          jsonPath: .status.pxc.ready
   247        - name: proxysql
   248          type: string
   249          description: Ready proxysql nodes
   250          jsonPath: .status.proxysql.ready
   251        - name: Age
   252          type: date
   253          jsonPath: .metadata.creationTimestamp
   254        subresources:
   255          status: {}
   256      - name: v1-6-0
   257        storage: false
   258        served: true
   259        schema:
   260          openAPIV3Schema:
   261            type: object
   262            properties:
   263              spec:
   264                type: object
   265                x-kubernetes-preserve-unknown-fields: true
   266              status:
   267                type: object
   268                x-kubernetes-preserve-unknown-fields: true
   269        additionalPrinterColumns:
   270        - name: Endpoint
   271          type: string
   272          jsonPath: .status.host
   273        - name: Status
   274          type: string
   275          jsonPath: .status.state
   276        - name: PXC
   277          type: string
   278          description: Ready pxc nodes
   279          jsonPath: .status.pxc.ready
   280        - name: proxysql
   281          type: string
   282          description: Ready proxysql nodes
   283          jsonPath: .status.proxysql.ready
   284        - name: haproxy
   285          type: string
   286          description: Ready haproxy nodes
   287          jsonPath: .status.haproxy.ready
   288        - name: Age
   289          type: date
   290          jsonPath: .metadata.creationTimestamp
   291        subresources:
   292          status: {}
   293      - name: v1-7-0
   294        storage: false
   295        served: true
   296        schema:
   297          openAPIV3Schema:
   298            type: object
   299            properties:
   300              spec:
   301                type: object
   302                x-kubernetes-preserve-unknown-fields: true
   303              status:
   304                type: object
   305                x-kubernetes-preserve-unknown-fields: true
   306        additionalPrinterColumns:
   307        - name: Endpoint
   308          type: string
   309          jsonPath: .status.host
   310        - name: Status
   311          type: string
   312          jsonPath: .status.state
   313        - name: PXC
   314          type: string
   315          description: Ready pxc nodes
   316          jsonPath: .status.pxc.ready
   317        - name: proxysql
   318          type: string
   319          description: Ready proxysql nodes
   320          jsonPath: .status.proxysql.ready
   321        - name: haproxy
   322          type: string
   323          description: Ready haproxy nodes
   324          jsonPath: .status.haproxy.ready
   325        - name: Age
   326          type: date
   327          jsonPath: .metadata.creationTimestamp
   328        subresources:
   329          status: {}
   330      - name: v1-8-0
   331        storage: false
   332        served: true
   333        schema:
   334          openAPIV3Schema:
   335            type: object
   336            properties:
   337              spec:
   338                type: object
   339                x-kubernetes-preserve-unknown-fields: true
   340              status:
   341                type: object
   342                x-kubernetes-preserve-unknown-fields: true
   343        additionalPrinterColumns:
   344        - name: Endpoint
   345          type: string
   346          jsonPath: .status.host
   347        - name: Status
   348          type: string
   349          jsonPath: .status.state
   350        - name: PXC
   351          type: string
   352          description: Ready pxc nodes
   353          jsonPath: .status.pxc.ready
   354        - name: proxysql
   355          type: string
   356          description: Ready proxysql nodes
   357          jsonPath: .status.proxysql.ready
   358        - name: haproxy
   359          type: string
   360          description: Ready haproxy nodes
   361          jsonPath: .status.haproxy.ready
   362        - name: Age
   363          type: date
   364          jsonPath: .metadata.creationTimestamp
   365        subresources:
   366          status: {}
   367          scale:
   368            specReplicasPath: .spec.pxc.size
   369            statusReplicasPath: .status.pxc.ready
   370            labelSelectorPath: .status.pxc.labelSelectorPath
   371      - name: v1-9-0
   372        storage: false
   373        served: true
   374        schema:
   375          openAPIV3Schema:
   376            type: object
   377            properties:
   378              spec:
   379                type: object
   380                x-kubernetes-preserve-unknown-fields: true
   381              status:
   382                type: object
   383                x-kubernetes-preserve-unknown-fields: true
   384        additionalPrinterColumns:
   385        - name: Endpoint
   386          type: string
   387          jsonPath: .status.host
   388        - name: Status
   389          type: string
   390          jsonPath: .status.state
   391        - name: PXC
   392          type: string
   393          description: Ready pxc nodes
   394          jsonPath: .status.pxc.ready
   395        - name: proxysql
   396          type: string
   397          description: Ready proxysql nodes
   398          jsonPath: .status.proxysql.ready
   399        - name: haproxy
   400          type: string
   401          description: Ready haproxy nodes
   402          jsonPath: .status.haproxy.ready
   403        - name: Age
   404          type: date
   405          jsonPath: .metadata.creationTimestamp
   406        subresources:
   407          status: {}
   408          scale:
   409            specReplicasPath: .spec.pxc.size
   410            statusReplicasPath: .status.pxc.ready
   411            labelSelectorPath: .status.pxc.labelSelectorPath
   412      - name: v1-10-0
   413        storage: false
   414        served: true
   415        schema:
   416          openAPIV3Schema:
   417            type: object
   418            properties:
   419              spec:
   420                type: object
   421                x-kubernetes-preserve-unknown-fields: true
   422              status:
   423                type: object
   424                x-kubernetes-preserve-unknown-fields: true
   425        additionalPrinterColumns:
   426        - name: Endpoint
   427          type: string
   428          jsonPath: .status.host
   429        - name: Status
   430          type: string
   431          jsonPath: .status.state
   432        - name: PXC
   433          type: string
   434          description: Ready pxc nodes
   435          jsonPath: .status.pxc.ready
   436        - name: proxysql
   437          type: string
   438          description: Ready proxysql nodes
   439          jsonPath: .status.proxysql.ready
   440        - name: haproxy
   441          type: string
   442          description: Ready haproxy nodes
   443          jsonPath: .status.haproxy.ready
   444        - name: Age
   445          type: date
   446          jsonPath: .metadata.creationTimestamp
   447        subresources:
   448          status: {}
   449          scale:
   450            specReplicasPath: .spec.pxc.size
   451            statusReplicasPath: .status.pxc.ready
   452            labelSelectorPath: .status.pxc.labelSelectorPath
   453      - name: v1-11-0
   454        storage: true
   455        served: true
   456        schema:
   457          openAPIV3Schema:
   458            type: object
   459            properties:
   460              spec:
   461                type: object
   462                x-kubernetes-preserve-unknown-fields: true
   463              status:
   464                type: object
   465                x-kubernetes-preserve-unknown-fields: true
   466        additionalPrinterColumns:
   467        - name: Endpoint
   468          type: string
   469          jsonPath: .status.host
   470        - name: Status
   471          type: string
   472          jsonPath: .status.state
   473        - name: PXC
   474          type: string
   475          description: Ready pxc nodes
   476          jsonPath: .status.pxc.ready
   477        - name: proxysql
   478          type: string
   479          description: Ready proxysql nodes
   480          jsonPath: .status.proxysql.ready
   481        - name: haproxy
   482          type: string
   483          description: Ready haproxy nodes
   484          jsonPath: .status.haproxy.ready
   485        - name: Age
   486          type: date
   487          jsonPath: .metadata.creationTimestamp
   488        subresources:
   489          status: {}
   490          scale:
   491            specReplicasPath: .spec.pxc.size
   492            statusReplicasPath: .status.pxc.ready
   493            labelSelectorPath: .status.pxc.labelSelectorPath
   494  ---
   495  apiVersion: apiextensions.k8s.io/v1
   496  kind: CustomResourceDefinition
   497  metadata:
   498    name: perconaxtradbclusterbackups.pxc.percona.com
   499  spec:
   500    group: pxc.percona.com
   501    names:
   502      kind: PerconaXtraDBClusterBackup
   503      listKind: PerconaXtraDBClusterBackupList
   504      plural: perconaxtradbclusterbackups
   505      singular: perconaxtradbclusterbackup
   506      shortNames:
   507      - pxc-backup
   508      - pxc-backups
   509    scope: Namespaced
   510    versions:
   511      - name: v1
   512        storage: true
   513        served: true
   514        schema:
   515          openAPIV3Schema:
   516            type: object
   517            properties:
   518              spec:
   519                type: object
   520                x-kubernetes-preserve-unknown-fields: true
   521              status:
   522                type: object
   523                x-kubernetes-preserve-unknown-fields: true
   524        additionalPrinterColumns:
   525        - name: Cluster
   526          type: string
   527          description: Cluster name
   528          jsonPath: .spec.pxcCluster
   529        - name: Storage
   530          type: string
   531          description: Storage name from pxc spec
   532          jsonPath: .status.storageName
   533        - name: Destination
   534          type: string
   535          description: Backup destination
   536          jsonPath: .status.destination
   537        - name: Status
   538          type: string
   539          description: Job status
   540          jsonPath: .status.state
   541        - name: Completed
   542          description: Completed time
   543          type: date
   544          jsonPath: .status.completed
   545        - name: Age
   546          type: date
   547          jsonPath: .metadata.creationTimestamp
   548        subresources:
   549          status: {}
   550  ---
   551  apiVersion: apiextensions.k8s.io/v1
   552  kind: CustomResourceDefinition
   553  metadata:
   554    name: perconaxtradbclusterrestores.pxc.percona.com
   555  spec:
   556    group: pxc.percona.com
   557    names:
   558      kind: PerconaXtraDBClusterRestore
   559      listKind: PerconaXtraDBClusterRestoreList
   560      plural: perconaxtradbclusterrestores
   561      singular: perconaxtradbclusterrestore
   562      shortNames:
   563      - pxc-restore
   564      - pxc-restores
   565    scope: Namespaced
   566    versions:
   567      - name: v1
   568        storage: true
   569        served: true
   570        schema:
   571          openAPIV3Schema:
   572            type: object
   573            properties:
   574              spec:
   575                type: object
   576                x-kubernetes-preserve-unknown-fields: true
   577              status:
   578                type: object
   579                x-kubernetes-preserve-unknown-fields: true
   580        additionalPrinterColumns:
   581        - name: Cluster
   582          type: string
   583          description: Cluster name
   584          jsonPath: .spec.pxcCluster
   585        - name: Status
   586          type: string
   587          description: Job status
   588          jsonPath: .status.state
   589        - name: Completed
   590          description: Completed time
   591          type: date
   592          jsonPath: .status.completed
   593        - name: Age
   594          type: date
   595          jsonPath: .metadata.creationTimestamp
   596        subresources:
   597          status: {}
   598  ---
   599  apiVersion: apiextensions.k8s.io/v1
   600  kind: CustomResourceDefinition
   601  metadata:
   602    name: perconaxtradbbackups.pxc.percona.com
   603  spec:
   604    group: pxc.percona.com
   605    names:
   606      kind: PerconaXtraDBBackup
   607      listKind: PerconaXtraDBBackupList
   608      plural: perconaxtradbbackups
   609      singular: perconaxtradbbackup
   610      shortNames: []
   611    scope: Namespaced
   612    versions:
   613      - name: v1alpha1
   614        storage: true
   615        served: true
   616        schema:
   617          openAPIV3Schema:
   618            type: object
   619            properties:
   620              spec:
   621                type: object
   622                x-kubernetes-preserve-unknown-fields: true
   623              status:
   624                type: object
   625                x-kubernetes-preserve-unknown-fields: true
   626        additionalPrinterColumns:
   627        - name: Cluster
   628          type: string
   629          description: Cluster name
   630          jsonPath: .spec.pxcCluster
   631        - name: Storage
   632          type: string
   633          description: Storage name from pxc spec
   634          jsonPath: .status.storageName
   635        - name: Destination
   636          type: string
   637          description: Backup destination
   638          jsonPath: .status.destination
   639        - name: Status
   640          type: string
   641          description: Job status
   642          jsonPath: .status.state
   643        - name: Completed
   644          description: Completed time
   645          type: date
   646          jsonPath: .status.completed
   647        - name: Age
   648          type: date
   649          jsonPath: .metadata.creationTimestamp
   650  ---
   651  kind: Role
   652  apiVersion: rbac.authorization.k8s.io/v1
   653  metadata:
   654    name: percona-xtradb-cluster-operator
   655  rules:
   656  - apiGroups:
   657    - pxc.percona.com
   658    resources:
   659    - perconaxtradbclusters
   660    - perconaxtradbclusters/status
   661    - perconaxtradbclusterbackups
   662    - perconaxtradbclusterbackups/status
   663    - perconaxtradbclusterrestores
   664    - perconaxtradbclusterrestores/status
   665    verbs:
   666    - get
   667    - list
   668    - watch
   669    - create
   670    - update
   671    - patch
   672    - delete
   673  - apiGroups:
   674    - ""
   675    resources:
   676    - pods
   677    - pods/exec
   678    - pods/log
   679    - configmaps
   680    - services
   681    - persistentvolumeclaims
   682    - secrets
   683    verbs:
   684    - get
   685    - list
   686    - watch
   687    - create
   688    - update
   689    - patch
   690    - delete
   691  - apiGroups:
   692    - apps
   693    resources:
   694    - deployments
   695    - replicasets
   696    - statefulsets
   697    verbs:
   698    - get
   699    - list
   700    - watch
   701    - create
   702    - update
   703    - patch
   704    - delete
   705  - apiGroups:
   706    - batch
   707    resources:
   708    - jobs
   709    - cronjobs
   710    verbs:
   711    - get
   712    - list
   713    - watch
   714    - create
   715    - update
   716    - patch
   717    - delete
   718  - apiGroups:
   719    - policy
   720    resources:
   721    - poddisruptionbudgets
   722    verbs:
   723    - get
   724    - list
   725    - watch
   726    - create
   727    - update
   728    - patch
   729    - delete
   730  - apiGroups:
   731    - certmanager.k8s.io
   732    - cert-manager.io
   733    resources:
   734    - issuers
   735    - certificates
   736    verbs:
   737    - get
   738    - list
   739    - watch
   740    - create
   741    - update
   742    - patch
   743    - delete
   744    - deletecollection
   745  ---
   746  apiVersion: v1
   747  kind: ServiceAccount
   748  metadata:
   749    name: percona-xtradb-cluster-operator
   750  ---
   751  kind: RoleBinding
   752  apiVersion: rbac.authorization.k8s.io/v1
   753  metadata:
   754    name: service-account-percona-xtradb-cluster-operator
   755  subjects:
   756  - kind: ServiceAccount
   757    name: percona-xtradb-cluster-operator
   758  roleRef:
   759    kind: Role
   760    name: percona-xtradb-cluster-operator
   761    apiGroup: rbac.authorization.k8s.io
   762  ---
   763  apiVersion: apps/v1
   764  kind: Deployment
   765  metadata:
   766    name: percona-xtradb-cluster-operator
   767  spec:
   768    replicas: 1
   769    selector:
   770      matchLabels:
   771        app.kubernetes.io/component: operator
   772        app.kubernetes.io/instance: percona-xtradb-cluster-operator
   773        app.kubernetes.io/name: percona-xtradb-cluster-operator
   774        app.kubernetes.io/part-of: percona-xtradb-cluster-operator
   775    strategy:
   776      rollingUpdate:
   777        maxUnavailable: 1
   778      type: RollingUpdate
   779    template:
   780      metadata:
   781        labels:
   782          app.kubernetes.io/component: operator
   783          app.kubernetes.io/instance: percona-xtradb-cluster-operator
   784          app.kubernetes.io/name: percona-xtradb-cluster-operator
   785          app.kubernetes.io/part-of: percona-xtradb-cluster-operator
   786      spec:
   787        terminationGracePeriodSeconds: 600
   788        containers:
   789        - command:
   790          - percona-xtradb-cluster-operator
   791          env:
   792          - name: WATCH_NAMESPACE
   793            valueFrom:
   794              fieldRef:
   795                apiVersion: v1
   796                fieldPath: metadata.namespace
   797          - name: POD_NAME
   798            valueFrom:
   799              fieldRef:
   800                apiVersion: v1
   801                fieldPath: metadata.name
   802          - name: OPERATOR_NAME
   803            value: percona-xtradb-cluster-operator
   804          image: perconalab/percona-xtradb-cluster-operator:main
   805          imagePullPolicy: Always
   806          livenessProbe:
   807            failureThreshold: 3
   808            httpGet:
   809              path: /metrics
   810              port: metrics
   811              scheme: HTTP
   812          resources:
   813            limits:
   814              cpu: 200m
   815              memory: 500Mi
   816            requests:
   817              cpu: 100m
   818              memory: 20Mi
   819          name: percona-xtradb-cluster-operator
   820          ports:
   821          - containerPort: 8080
   822            name: metrics
   823            protocol: TCP
   824        serviceAccountName: percona-xtradb-cluster-operator