Add a bit of extra words to make complete sentences

This commit is contained in:
Jon Brohauge 2019-10-16 19:45:18 +02:00
parent 5a70001fc7
commit e65508bd19
No known key found for this signature in database
GPG Key ID: 2402404D1764DBE8
1 changed files with 8 additions and 8 deletions

View File

@ -7,11 +7,11 @@ description: >
Prevent loss of job history Prevent loss of job history
--- ---
Backup and restore is done by container sidecar. Backup and restore is done by a container sidecar.
#### Create PVC #### Create PVC
Save to file pvc.yaml: Save to the file named pvc.yaml:
```yaml ```yaml
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
@ -26,7 +26,7 @@ spec:
storage: 500Gi storage: 500Gi
``` ```
Run command: Run the following command:
```bash ```bash
$ kubectl -n <namespace> create -f pvc.yaml $ kubectl -n <namespace> create -f pvc.yaml
``` ```
@ -47,7 +47,7 @@ spec:
containers: containers:
- name: jenkins-master - name: jenkins-master
image: jenkins/jenkins:lts image: jenkins/jenkins:lts
- name: backup # container responsible for backup and restore - name: backup # container responsible for the backup and restore
env: env:
- name: BACKUP_DIR - name: BACKUP_DIR
value: /backup value: /backup
@ -72,13 +72,13 @@ spec:
exec: exec:
command: command:
- /home/user/bin/backup.sh # this command is invoked on "backup" container to make backup, for example /home/user/bin/backup.sh <backup_number>, <backup_number> is passed by operator - /home/user/bin/backup.sh # this command is invoked on "backup" container to make backup, for example /home/user/bin/backup.sh <backup_number>, <backup_number> is passed by operator
interval: 30 # how often make backup in seconds interval: 30 # how often to make a backup, in seconds
makeBackupBeforePodDeletion: true # make backup before pod deletion makeBackupBeforePodDeletion: true # make a backup before pod deletion
restore: restore:
containerName: backup # container name is responsible for restore backup containerName: backup # container name is responsible to restore the backup
action: action:
exec: exec:
command: command:
- /home/user/bin/restore.sh # this command is invoked on "backup" container to make restore backup, for example /home/user/bin/restore.sh <backup_number>, <backup_number> is passed by operator - /home/user/bin/restore.sh # this command is invoked on "backup" container to restore the backup, for example /home/user/bin/restore.sh <backup_number>, <backup_number> is passed by operator
#recoveryOnce: <backup_number> # if want to restore specific backup configure this field and then Jenkins will be restarted and desired backup will be restored #recoveryOnce: <backup_number> # if want to restore specific backup configure this field and then Jenkins will be restarted and desired backup will be restored
``` ```