-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'add-http01-docs' of https://github.com/stakater/saap-docs…
… into add-http01-docs
- Loading branch information
Showing
60 changed files
with
277 additions
and
168 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ on: | |
|
||
jobs: | ||
qa: | ||
uses: stakater/.github/.github/workflows/[email protected].112 | ||
uses: stakater/.github/.github/workflows/[email protected].117 | ||
with: | ||
MD_CONFIG: .github/md_config.json | ||
DOC_SRC: content README.md | ||
MD_LINT_CONFIG: .markdownlint.yaml | ||
build: | ||
uses: stakater/.github/.github/workflows/[email protected].112 | ||
uses: stakater/.github/.github/workflows/[email protected].117 | ||
with: | ||
DOCKER_FILE_PATH: Dockerfile | ||
CONTAINER_REGISTRY_URL: ghcr.io/stakater | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
|
||
jobs: | ||
push: | ||
uses: stakater/.github/.github/workflows/[email protected].112 | ||
uses: stakater/.github/.github/workflows/[email protected].117 | ||
with: | ||
DOCKER_FILE_PATH: Dockerfile | ||
RELEASE_BRANCH: main | ||
|
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 |
---|---|---|
|
@@ -7,6 +7,6 @@ on: | |
|
||
jobs: | ||
release: | ||
uses: stakater/.github/.github/workflows/[email protected].112 | ||
uses: stakater/.github/.github/workflows/[email protected].117 | ||
secrets: | ||
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }} |
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 |
---|---|---|
|
@@ -6,3 +6,5 @@ MD029: | |
style: one | ||
MD033: false | ||
MD046: false | ||
MD055: | ||
style: leading_and_trailing |
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
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
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,5 @@ | ||
# Secrets Management | ||
|
||
SAAP provides an optional integration of HashiCorp Vault which enhances the security and secrets management capabilities of the platform. | ||
SAAP provides an optional integration of Hashicorp Vault which enhances the security and secrets management capabilities of the platform. | ||
|
||
By integrating Vault, SAAP provides customers with a secure and centralized solution for storing and accessing sensitive information such as passwords, API keys, and certificates. It complements the default OpenShift secrets mechanism, providing additional features and capabilities that are critical for managing secrets in modern containerized environments. |
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,13 @@ | ||
|
||
# Volume Expansion | ||
|
||
!!! info | ||
Volume Expansion is currently not supported on Stakater Cloud due to platform limitations. This feature may be available in future releases. You can follow the clone PVC workaround to resize or migrate PersistentVolumes if necessary. | ||
|
||
## Automatic | ||
|
||
### Volume Expander Operator | ||
|
||
SAAP offers volume expansion to expand volumes when they are running out of space. Volume expansion periodically checks the `kubelet_volume_stats_used_bytes` and `kubelet_volume_stats_capacity_bytes` published by the kubelets to decide when to expand a volume. These metrics are generated only when a volume is mounted to a pod. Also, the kubelet takes a minute or two to start generating accurate values for these metrics. | ||
|
||
Volume expansion works based on the following annotations to PersistentVolumeClaim resources: | ||
|
@@ -23,3 +31,96 @@ volume-expander-operator.redhat-cop.io/expand-by-percent: "20" # Volume e | |
volume-expander-operator.redhat-cop.io/polling-frequency: "10m" # Volume expansion poll the volume metrics after every 10 minutes | ||
volume-expander-operator.redhat-cop.io/expand-up-to: "1Ti" # Volume will be expanded no more than 1TB | ||
``` | ||
## Manual | ||
### Clone PVC | ||
The clone PVC is designed to copy the contents of one PersistentVolume (PV) to a newly created PersistentVolumeClaim (PVC). Clone PVC is especially useful when migrating PersistentVolumes to a new StorageClass or when you need to resize a PV that belongs to a StorageClass that doesn’t support resizing. | ||
The clone PVC employs a workaround for reclaiming PVs, which is necessary to handle ReadWriteOnce (RWO) PVs. If you're working with a ReadWriteMany (RWX) PV, you can directly run a copy job and attach the Job-Pod to the existing PVC—there's no need to create a new PVC. | ||
Use Cases | ||
- Migrate PVs to different StorageClasses. | ||
- Resize PVs that are using StorageClasses that don’t support resizing. | ||
- Copy data from one PV to another, maintaining data integrity. | ||
#### How to Use | ||
##### Step-by-Step Process | ||
**1. Clone the Repository:** First, clone the repository that contains the clone PVC. | ||
```bash | ||
git clone https://github.com/stakater/charts | ||
|
||
cd clone-pvc | ||
``` | ||
|
||
**2. Identify the PV to Copy:** Find the PersistentVolume (PV) you wish to copy. | ||
|
||
**3. Change PV Reclaim Policy:**: Update the persistentVolumeReclaimPolicy of the PV to Retain. | ||
|
||
**4. Get PV Name:**: Retrieve the name of the PV you want to copy. | ||
|
||
**5. Deploy the Helm Chart:** Apply the provided Helm chart, specifying: | ||
|
||
- The name of the PV in the values file. | ||
- The name, storage class, and size of the new PVC. | ||
|
||
**6. Delete the Original PVC:** Delete the old PVC and remove the claim reference from the source PV. | ||
|
||
**7. Monitor the Job:** The job will begin copying data from the original PV to the new PVC. The logs may show warnings about the inability to preserve the original file owners, but this is a known limitation due to OpenShift security settings and can be ignored. | ||
|
||
**8. Cleanup:** After the data has been copied, the new PVC will be available, and you can remove the Helm chart. | ||
|
||
##### Rebinding the PV to the Original PVC | ||
|
||
Once the data has been copied and the Job has been deleted, you can rebind the PV to the original PVC name. If you're using an inflexible operator, like OpenShift image operator, you may need to perform a "hot swap" with the PVC for the PV to be properly bound. | ||
|
||
##### Steps to Rebind | ||
|
||
**1. Check New PV:** Ensure the new PV has the persistentVolumeReclaimPolicy set to Retain and that the access mode matches the PVC you intend to bind it to. | ||
|
||
**2. Remove Claim reference:** Delete the PVC bound to the new PV and remove the `ClaimRef` from the PV. | ||
|
||
**3. Prepare PVC YAML:** Copy the YAML definition for the PVC you plan to bind the PV to. Paste it into a file or use OpenShift's "Import YAML" dialog. | ||
|
||
**4. Update PVC YAML:** Update the volume name in the PVC YAML to point to your new PV. | ||
|
||
**5. Delete PVC and Pod** Delete the application's PVC and pod. Then quickly apply the updated PVC YAML to bind the new PV to the PVC. | ||
|
||
**6. Confirm Application:** If successful, your application should now be using the newly copied PV, which is on the new StorageClass. | ||
|
||
##### Example Helm Chart Deployment for One-Off Job | ||
|
||
To deploy the clone PVC as a one-off job, you can use the following example Helm chart configuration: | ||
|
||
```yaml | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: clone-pvc | ||
namespace: argocd | ||
spec: | ||
destination: | ||
namespace: <target-namespace> | ||
server: https://kubernetes.default.svc | ||
source: | ||
path: clone-pvc | ||
repoURL: ssh://[email protected]:stakater/charts | ||
targetRevision: master | ||
helm: | ||
parameters: | ||
- name: oldPvName | ||
value: "<target-pv>" | ||
- name: newPvcName | ||
value: "clone-pvc" | ||
- name: newPvcStorageClass | ||
value: "" | ||
- name: newPvcSize | ||
value: "100Gi" | ||
``` | ||
By following this process, you can effectively copy data from an existing PersistentVolume to a new PVC, ensuring the migration to new StorageClasses or resizing needs are met. |
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
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
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
Oops, something went wrong.