Skip to content

Commit

Permalink
Merge pull request #355 from portworx/pre-release-2.2.0
Browse files Browse the repository at this point in the history
helm package and indexing for 2.2.0 release
  • Loading branch information
diptiranjanpx authored May 5, 2022
2 parents f48c1b2 + 4c5e821 commit 8445ae5
Show file tree
Hide file tree
Showing 11 changed files with 191 additions and 522 deletions.
4 changes: 2 additions & 2 deletions charts/px-central/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ keywords:
name: px-central
sources:
- https://github.com/portworx/helm/tree/master/charts/px-central
version: 2.1.2
appVersion: 2.1.2
version: 2.2.0
appVersion: 2.2.0
name: px-central
36 changes: 6 additions & 30 deletions charts/px-central/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,26 +277,6 @@ Note: Keycloak auth and Grafana UI will be accessible on same endpoint on differ
$ kubectl logs -f --namespace {{ .Release.Namespace }} -ljob-name=pxcentral-post-install-hook
```

2. If one or many pods of the etcd replica goes into `CrashLoopBackOff` state during install or upgrade and error looks like following:
```
pxc-backup-etcd-1 0/1 CrashLoopBackOff 6 10m
[root@ip-node1 helm]# kubectl logs pxc-backup-etcd-1 -n px-backup
==> Bash debug is off
==> Detected data from previous deployments...
==> Adding new member to existing cluster...
```

then, to resolve this issue scale down etcd cluster to 0 and scale it back to 3.
- To scale down etcd cluster to 0:
```console
$ kubectl scale sts --namespace central pxc-backup-etcd --replicas=0`
```

- To scale up etcd cluster to 3:
```console
$ kubectl scale sts --namespace central pxc-backup-etcd --replicas=3`
```

# PX-Monitor

Using PX-Monitor, you can manage and monitor portworx cluster metrics.
Expand Down Expand Up @@ -507,11 +487,11 @@ Parameter | Description | Default
`persistentStorage.enabled` | Enable persistent storage | `true`
`persistentStorage.storageClassName` | Provide storage class name which exists | `""`
`persistentStorage.mysqlVolumeSize` | MySQL volume size | `"100Gi"`
`persistentStorage.etcdVolumeSize` | ETCD volume size | `"64Gi"`
`persistentStorage.keycloakThemeVolumeSize` | Keycloak frontend theme volume size | `"5Gi"`
`persistentStorage.keycloakBackendVolumeSize` | Keycloak backend volume size | `"10Gi"`
`storkRequired` | Scheduler name as stork | `false`
`nodeAffinityLabel` | Label for node affinity for px-central components| `""`
`nodeAffinityLabel` | Label for node affinity for px-central components | `""`
`podAntiAffinity` | PodAntiAffinity will make sure pods are distributed | `false`
`pxcentralDBPassword` | PX-Central cluster store mysql database password | `Password1`
`caCertsSecretName` | Name of the Kubernetes Secret, which contains the CA Certificates. | `""`
`oidc` | Enable OIDC for PX-Central and PX-backup for RBAC | `""`
Expand Down Expand Up @@ -585,14 +565,10 @@ Parameter | Description | Default
`images.pxBackupImage.repo` | PX-Backup image repo | `portworx`
`images.pxBackupImage.imageName` | PX-Backup image name | `px-backup`
`images.pxBackupImage.tag` | PX-Backup image tag | `1.2.2`
`images.etcdImage.registry` | PX-Backup etcd image registry | `docker.io`
`images.etcdImage.repo` | PX-Backup etcd image repo | `bitnami`
`images.etcdImage.imageName` | PX-Backup etcd image name | `etcd`
`images.etcdImage.tag` | PX-Backup etcd image tag | `3.4.13-debian-10-r22`
`images.mongodbImage.registry` | PX-Backup etcd image registry | `docker.io`
`images.mongodbImage.repo` | PX-Backup etcd image repo | `bitnami`
`images.mongodbImage.imageName` | PX-Backup etcd image name | `mongodb`
`images.mongodbImage.tag` | PX-Backup etcd image tag | `4.4.4-debian-10-r30`
`images.mongodbImage.registry` | PX-Backup mongodb image registry | `docker.io`
`images.mongodbImage.repo` | PX-Backup mongodb image repo | `bitnami`
`images.mongodbImage.imageName` | PX-Backup mongodb image name | `mongodb`
`images.mongodbImage.tag` | PX-Backup mongodb image tag | `4.4.4-debian-10-r30`

### PX-Monitor parameters

Expand Down
10 changes: 3 additions & 7 deletions charts/px-central/templates/px-backup/pxcentral-backup.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{{/* Setting defaults if they are omitted. */}}
{{- $pxBackupEnabled := .Values.pxbackup.enabled | default false }}
{{- $mongodbEnabled := eq .Values.pxbackup.datastore "mongodb" }}
{{- $isOpenshiftCluster := .Capabilities.APIVersions.Has "apps.openshift.io/v1" -}}
{{- if eq $pxBackupEnabled true }}
apiVersion: v1
Expand Down Expand Up @@ -75,6 +74,9 @@ rules:
- apiGroups: ["kdmp.portworx.com"]
resources: ["volumebackupdeletes"]
verbs: ["get", "create", "delete", "update"]
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get", "list"]
---
apiVersion: v1
kind: ConfigMap
Expand Down Expand Up @@ -174,10 +176,8 @@ spec:
fieldPath: metadata.namespace
- name: PX_BACKUP_DEFAULT_ORG
value: {{ .Values.pxbackup.orgName }}
{{- if eq $mongodbEnabled true }}
- name: PX_BACKUP_DEFAULT_DATASTORE
value: mongodb
{{- end}}
{{- if .Values.caCertsSecretName }}
- name: SSL_CERT_DIR
value: /tmp/certs
Expand Down Expand Up @@ -211,12 +211,8 @@ spec:
command:
- /px-backup
- start
{{- if eq $mongodbEnabled true }}
- --datastoreEndpoints=mongodb://pxbackup:[email protected]:27017,pxc-backup-mongodb-1.pxc-backup-mongodb-headless:27017,pxc-backup-mongodb-2.pxc-backup-mongodb-headless:27017/?authSource=px-backup&replicaSet=rs0
- --mongo-migration={{.Values.pxbackup.mongoMigration}}
{{- else }}
- --datastoreEndpoints=etcd:http://pxc-backup-etcd-0.pxc-backup-etcd-headless:2379,etcd:http://pxc-backup-etcd-1.pxc-backup-etcd-headless:2379,etcd:http://pxc-backup-etcd-2.pxc-backup-etcd-headless:2379
{{- end }}
{{- if .Values.caCertsSecretName }}
volumes:
- name: ssl-cert-dir
Expand Down
Loading

0 comments on commit 8445ae5

Please sign in to comment.