Switch back to heptio-ark for the server
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>pull/383/head
parent
74f60b1ee1
commit
1545406472
19
README.md
19
README.md
|
@ -64,7 +64,7 @@ NOTE: Make sure to check out the appropriate version. We recommend that you chec
|
||||||
1. Check to see that both the Ark and nginx deployments are successfully created:
|
1. Check to see that both the Ark and nginx deployments are successfully created:
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl get deployments -l component=ark --namespace=heptio-ark-server
|
kubectl get deployments -l component=ark --namespace=heptio-ark
|
||||||
kubectl get deployments --namespace=nginx-example
|
kubectl get deployments --namespace=nginx-example
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -137,19 +137,26 @@ For more information, see [the debugging information][18].
|
||||||
|
|
||||||
### Clean up
|
### Clean up
|
||||||
|
|
||||||
Delete any backups you created:
|
If you want to delete any backups you created, including data in object storage and persistent
|
||||||
|
volume snapshots, you can run:
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl delete -n heptio-ark backup --all
|
ark backup delete BACKUP_NAME
|
||||||
```
|
```
|
||||||
|
|
||||||
Before you continue, wait for the following to show no backups:
|
This asks the Ark server to delete all backup data associated with `BACKUP_NAME`. You need to do
|
||||||
|
this for each backup you want to permanently delete. A future version of Ark will allow you to
|
||||||
|
delete multiple backups by name or label selector.
|
||||||
|
|
||||||
|
Once fully removed, the backup is no longer visible when you run:
|
||||||
|
|
||||||
```
|
```
|
||||||
ark backup get
|
ark backup get BACKUP_NAME
|
||||||
```
|
```
|
||||||
|
|
||||||
To remove the Kubernetes objects for this example from your cluster, run:
|
If you want to uninstall Ark but preserve the backup data in object storage and persistent volume
|
||||||
|
snapshots, it is safe to remove the `heptio-ark` namespace and everything else created for this
|
||||||
|
example:
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl delete -f examples/common/
|
kubectl delete -f examples/common/
|
||||||
|
|
|
@ -131,7 +131,7 @@ Create a Secret. In the directory of the credentials file you just created, run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl create secret generic cloud-credentials \
|
kubectl create secret generic cloud-credentials \
|
||||||
--namespace <ARK_SERVER_NAMESPACE> \
|
--namespace <ARK_NAMESPACE> \
|
||||||
--from-file cloud=credentials-ark
|
--from-file cloud=credentials-ark
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@ Now you need to create a Secret that contains all the seven environment variable
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl create secret generic cloud-credentials \
|
kubectl create secret generic cloud-credentials \
|
||||||
--namespace <ARK_SERVER_NAMESPACE> \
|
--namespace <ARK_NAMESPACE> \
|
||||||
--from-literal AZURE_SUBSCRIPTION_ID=${AZURE_SUBSCRIPTION_ID} \
|
--from-literal AZURE_SUBSCRIPTION_ID=${AZURE_SUBSCRIPTION_ID} \
|
||||||
--from-literal AZURE_TENANT_ID=${AZURE_TENANT_ID} \
|
--from-literal AZURE_TENANT_ID=${AZURE_TENANT_ID} \
|
||||||
--from-literal AZURE_RESOURCE_GROUP=${AZURE_RESOURCE_GROUP} \
|
--from-literal AZURE_RESOURCE_GROUP=${AZURE_RESOURCE_GROUP} \
|
||||||
|
|
|
@ -74,7 +74,7 @@ Create a Secret. In the directory of the credentials file you just created, run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl create secret generic cloud-credentials \
|
kubectl create secret generic cloud-credentials \
|
||||||
--namespace <ARK_SERVER_NAMESPACE> \
|
--namespace <ARK_NAMESPACE> \
|
||||||
--from-file cloud=credentials-ark
|
--from-file cloud=credentials-ark
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ Create a Secret. In the directory of the credentials file you just created, run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl create secret generic cloud-credentials \
|
kubectl create secret generic cloud-credentials \
|
||||||
--namespace <ARK_SERVER_NAMESPACE> \
|
--namespace <ARK_NAMESPACE> \
|
||||||
--from-file cloud=credentials-ark
|
--from-file cloud=credentials-ark
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,14 @@ you run Ark client commands.
|
||||||
## Edit the example files
|
## Edit the example files
|
||||||
|
|
||||||
The Ark repository includes [a set of examples][0] that you can use to set up your Ark server. The
|
The Ark repository includes [a set of examples][0] that you can use to set up your Ark server. The
|
||||||
examples place the server in the `heptio-ark-server` namespace, and backup/schedule/restore/config
|
examples place the server and backup/schedule/restore/config data in the `heptio-ark` namespace.
|
||||||
data in the `heptio-ark` namespace.
|
|
||||||
|
|
||||||
To run the server in another namespace, you edit the relevant files, changing `heptio-ark-server` to
|
To run the server in another namespace, you edit the relevant files, changing `heptio-ark` to
|
||||||
your desired namespace.
|
your desired namespace.
|
||||||
|
|
||||||
To store your backups, schedules, restores, and config in another namespace, you edit the relevant
|
To store your backups, schedules, restores, and config in another namespace, you edit the relevant
|
||||||
files, changing `heptio-ark` to your desired namespace.
|
files, changing `heptio-ark` to your desired namespace. You also need to create the
|
||||||
|
`cloud-credentials` secret in your desired namespace.
|
||||||
|
|
||||||
WARNING: It is recommended to run the Ark server in one namespace, and place your backups, schedules,
|
WARNING: It is recommended to run the Ark server in one namespace, and place your backups, schedules,
|
||||||
restores, and config in a different namespace. You might encounter issues with deleting a single Ark
|
restores, and config in a different namespace. You might encounter issues with deleting a single Ark
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
apiVersion: apps/v1beta1
|
apiVersion: apps/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
namespace: heptio-ark-server
|
namespace: heptio-ark
|
||||||
name: ark
|
name: ark
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
@ -32,8 +32,6 @@ spec:
|
||||||
image: gcr.io/heptio-images/ark:latest
|
image: gcr.io/heptio-images/ark:latest
|
||||||
command:
|
command:
|
||||||
- /ark
|
- /ark
|
||||||
- --namespace
|
|
||||||
- heptio-ark
|
|
||||||
args:
|
args:
|
||||||
- server
|
- server
|
||||||
envFrom:
|
envFrom:
|
||||||
|
|
|
@ -93,18 +93,12 @@ kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: heptio-ark
|
name: heptio-ark
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: heptio-ark-server
|
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: ark
|
name: ark
|
||||||
namespace: heptio-ark-server
|
namespace: heptio-ark
|
||||||
labels:
|
labels:
|
||||||
component: ark
|
component: ark
|
||||||
|
|
||||||
|
@ -117,7 +111,7 @@ metadata:
|
||||||
component: ark
|
component: ark
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
namespace: heptio-ark-server
|
namespace: heptio-ark
|
||||||
name: ark
|
name: ark
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
apiVersion: apps/v1beta1
|
apiVersion: apps/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
namespace: heptio-ark-server
|
namespace: heptio-ark
|
||||||
name: ark
|
name: ark
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
@ -34,8 +34,6 @@ spec:
|
||||||
- /ark
|
- /ark
|
||||||
args:
|
args:
|
||||||
- server
|
- server
|
||||||
- --namespace
|
|
||||||
- heptio-ark
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: cloud-credentials
|
- name: cloud-credentials
|
||||||
mountPath: /credentials
|
mountPath: /credentials
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
apiVersion: apps/v1beta1
|
apiVersion: apps/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
namespace: heptio-ark-server
|
namespace: heptio-ark
|
||||||
name: minio
|
name: minio
|
||||||
labels:
|
labels:
|
||||||
component: minio
|
component: minio
|
||||||
|
@ -53,7 +53,7 @@ spec:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
namespace: heptio-ark-server
|
namespace: heptio-ark
|
||||||
name: minio
|
name: minio
|
||||||
labels:
|
labels:
|
||||||
component: minio
|
component: minio
|
||||||
|
@ -70,7 +70,7 @@ spec:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
namespace: heptio-ark-server
|
namespace: heptio-ark
|
||||||
name: cloud-credentials
|
name: cloud-credentials
|
||||||
labels:
|
labels:
|
||||||
component: minio
|
component: minio
|
||||||
|
@ -84,7 +84,7 @@ stringData:
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
namespace: heptio-ark-server
|
namespace: heptio-ark
|
||||||
name: minio-setup
|
name: minio-setup
|
||||||
labels:
|
labels:
|
||||||
component: minio
|
component: minio
|
||||||
|
|
|
@ -24,7 +24,7 @@ backupStorageProvider:
|
||||||
config:
|
config:
|
||||||
region: minio
|
region: minio
|
||||||
s3ForcePathStyle: "true"
|
s3ForcePathStyle: "true"
|
||||||
s3Url: http://minio.heptio-ark-server.svc:9000
|
s3Url: http://minio.heptio-ark.svc:9000
|
||||||
backupSyncPeriod: 1m
|
backupSyncPeriod: 1m
|
||||||
gcSyncPeriod: 1m
|
gcSyncPeriod: 1m
|
||||||
scheduleSyncPeriod: 1m
|
scheduleSyncPeriod: 1m
|
||||||
|
|
Loading…
Reference in New Issue