-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pgupgrade: Use remote migration from SCL images (PROJQUAY-5631)
- Switch to rhel8 images for more efficient implementation
- Loading branch information
1 parent
a5aaa89
commit 7f871fc
Showing
30 changed files
with
313 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
kustomize/components/clairpgupgrade/clair-pg-old.deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: clair-postgres-old | ||
labels: | ||
quay-component: clair-postgres | ||
annotations: | ||
quay-component: clair-postgres | ||
spec: | ||
replicas: 1 | ||
strategy: | ||
type: Recreate | ||
selector: | ||
matchLabels: | ||
quay-component: clair-postgres | ||
template: | ||
metadata: | ||
labels: | ||
quay-component: clair-postgres | ||
spec: | ||
terminationGracePeriodSeconds: 180 | ||
serviceAccountName: clair-postgres | ||
volumes: | ||
- name: clair-postgres-conf-sample | ||
configMap: | ||
name: clair-postgres-conf-sample | ||
- name: postgres-data | ||
persistentVolumeClaim: | ||
claimName: clair-postgres | ||
containers: | ||
- name: postgres | ||
image: centos/postgresql-10-centos7@sha256:de1560cb35e5ec643e7b3a772ebaac8e3a7a2a8e8271d9e91ff023539b4dfb33 | ||
imagePullPolicy: "IfNotPresent" | ||
ports: | ||
- containerPort: 5432 | ||
protocol: TCP | ||
env: | ||
- name: POSTGRESQL_USER | ||
value: postgres | ||
- name: POSTGRESQL_DATABASE | ||
value: postgres | ||
- name: POSTGRESQL_PASSWORD | ||
value: postgres | ||
- name: POSTGRESQL_ADMIN_PASSWORD | ||
value: postgres | ||
- name: POSTGRESQL_SHARED_BUFFERS | ||
value: 256MB | ||
- name: POSTGRESQL_MAX_CONNECTIONS | ||
value: "2000" | ||
volumeMounts: | ||
- name: clair-postgres-conf-sample | ||
mountPath: /usr/share/pgsql/postgresql.conf.sample | ||
subPath: postgresql.conf.sample | ||
- name: postgres-data | ||
mountPath: /var/lib/pgsql/data | ||
resources: | ||
requests: | ||
cpu: 500m | ||
memory: 2Gi |
2 changes: 1 addition & 1 deletion
2
...ade/pg-upgrade.persistentvolumeclaim.yaml → ...e/clair-pg-old.persistentvolumeclaim.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# Overlay variant for upgrading to current Project Quay release. | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
resources: | ||
- ./clair-pg-upgrade.job.yaml | ||
- ./clair-pg-upgrade.persistentvolumeclaim.yaml | ||
- ./clair-pg-old.persistentvolumeclaim.yaml | ||
- ./clair-pg-old.deployment.yaml | ||
patchesStrategicMerge: | ||
- ./clair.deployment.patch.yaml | ||
- ./clair-pg.deployment.patch.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
kustomize/components/clairpostgres/postgres.persistentvolumeclaim.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# Overlay variant for upgrading to current Project Quay release. | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
resources: | ||
- ./pg-upgrade.job.yaml | ||
- ./pg-upgrade.persistentvolumeclaim.yaml | ||
- ./quay-pg-upgrade.job.yaml | ||
- ./quay-pg-old.persistentvolumeclaim.yaml | ||
- ./quay-pg-old.deployment.yaml | ||
patchesStrategicMerge: | ||
- ./quay.deployment.patch.yaml | ||
- ./quay-pg.deployment.patch.yaml |
Oops, something went wrong.