Skip to content

Commit

Permalink
Merge pull request #140 from kanisterio/sync
Browse files Browse the repository at this point in the history
EBS Volume Support; Prefer running pods directly over K8s Jobs
  • Loading branch information
SupriyaKasten authored Nov 28, 2018
2 parents 541e624 + 2f6b3a6 commit f621db5
Show file tree
Hide file tree
Showing 33 changed files with 2,452 additions and 169 deletions.
14 changes: 7 additions & 7 deletions docs/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Example:
KubeTask
--------

KubeTask spins up a new container and executes a command via a Kubernetes job.
KubeTask spins up a new container and executes a command via a Pod.
This allows you to run a new Pod from a Blueprint.

.. csv-table::
Expand Down Expand Up @@ -197,7 +197,7 @@ Example of scaling up:
PrepareData
-----------

This function allows running a Kubernetes Job that will mount one or more PVCs
This function allows running a new Pod that will mount one or more PVCs
and execute a command or script that manipulates the data on the PVCs.

The function can be useful when it is necessary to perform operations on the
Expand Down Expand Up @@ -302,13 +302,13 @@ RestoreData
-----------

This function restores data backed up by the BackupData function.
It creates a Kubernetes Job that mounts the PVCs referenced
by the specified Pod and restores data to the specified path.
It creates a new Pod that mounts the PVCs referenced by the specified Pod
and restores data to the specified path.

.. note::
It is extremely important that, the PVCs are not be currently
in use by an active application container, as the Kubernetes Job
requires to mount the PVCs to a new Pod (ensure by using
in use by an active application container, as they are required
to be mounted to the new Pod (ensure by using
ScaleWorkload with replicas=0 first).
For advanced use cases, it is possible to have concurrent access but
the PV needs to have RWX mode enabled and the volume needs to use a
Expand Down Expand Up @@ -406,7 +406,7 @@ If the ActionSet `Object` is a PersistentVolumeClaim:
DeleteData
----------

This function uses a Kubernetes Job to delete the specified artifact
This function uses a new Pod to delete the specified artifact
from an S3 compatible object store.

.. csv-table::
Expand Down
2 changes: 1 addition & 1 deletion examples/time-log/blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ actions:
container: test-container
includePath: /var/log
backupArtifactPrefix: "{{ .Profile.Location.S3Compliant.Bucket }}/time-log"
backupIdentifier: "{{ toDate "2006-01-02T15:04:05.999999999Z07:00" .Time | date "2006-01-02" }}"
backupIdentifier: '{{ toDate "2006-01-02T15:04:05.999999999Z07:00" .Time | date "2006-01-02" }}'
restore:
type: Deployment
inputArtifactNames:
Expand Down
33 changes: 27 additions & 6 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import:
repo: https://github.com/GoogleCloudPlatform/google-cloud-go.git
- package: github.com/aws/aws-sdk-go
version: v1.14.31
- package: github.com/go-openapi/strfmt
version: 610b6cacdcde6852f4de68998bd20ce1dac85b22
- package: github.com/graymeta/stow
vcs: git
version: master
Expand All @@ -21,6 +23,8 @@ import:
vcs: git
version: rm-k8s-dep
repo: https://github.com/kastenhq/operator-kit.git
- package: github.com/satori/go.uuid
version: v1.2.0
- package: github.com/sirupsen/logrus
version: v1.0.6
- package: github.com/spf13/cobra
Expand Down
Loading

0 comments on commit f621db5

Please sign in to comment.