Skip to content
Snippets Groups Projects
Commit ebfb2d11 authored by Helmut Hutzler's avatar Helmut Hutzler
Browse files

Updates for Velero and Kasten Backup Tools

parent 7feba915
Branches
No related tags found
No related merge requests found
apiVersion: v1
kind: Service
metadata:
name: k10-gateway
namespace: kasten-io
labels:
app: kasten-io-dashboard
spec:
selector:
service: gateway
type: NodePort
ports:
- name: http
port: 8000
nodePort: 31111
apiVersion: v1
kind: PersistentVolume
metadata:
name: test-pv
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
storageClassName: nfs
mountOptions:
- hard
- nfsvers=4.1
nfs:
server: 141.75.148.151
path: /var/nfs/harbor
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: test-pvc
namespace: kasten-io
spec:
storageClassName: nfs
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-nfs-kubedata-nginx-1
spec:
storageClassName: managed-nfs-storage-db
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Mi
kubectl delete namespace testing
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-1
labels:
app: nginx-1
spec:
replicas: 1
selector:
matchLabels:
app: nginx-1
template:
metadata:
labels:
app: nginx-1
spec:
volumes:
- name: nginx-1-volume
persistentVolumeClaim:
claimName: pvc-nfs-kubedata-nginx-1
containers:
- image: nginx
name: nginx-1
imagePullPolicy: Always
resources:
limits:
memory: 512Mi
cpu: "1"
requests:
memory: 256Mi
cpu: "0.2"
volumeMounts:
- name: nginx-1-volume
mountPath: /usr/share/nginx/html
---
kind: Service
apiVersion: v1
metadata:
name: nginx-1-service
spec:
selector:
app: nginx-1
ports:
- port: 80
protocol: TCP
nodePort: 32222
type: NodePort
---
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<h1>Kubernetes - Webtest 1</h1>
<p>This page is located on a dynamic persistent volume, and run on a k8s-cluster!</p>
</body>
</html>
[default]
aws_access_key_id = minio
aws_secret_access_key = minio123
helm install velero vmware-tanzu/velero \
--namespace velero \
--create-namespace \
--set-file credentials.secretContents.cloud=./credentials-velero \
--set configuration.provider=aws \
--set configuration.backupStorageLocation.name=dev-storage \
--set configuration.backupStorageLocation.bucket=velero-backup-location \
--set configuration.backupStorageLocation.config.region=default \
--set configuration.backupStorageLocation.config.s3ForcePathStyle=true \
--set configuration.backupStorageLocation.config.s3Url=http://141.75.148.151:9000/ \
--set snapshotsEnabled=true \
--set deployRestic=true \
--set configuration.volumeSnapshotLocation.name=dev-storage \
--set configuration.volumeSnapshotLocation.config.region=default \
--set initContainers[0].name=velero-plugin-for-aws \
--set initContainers[0].image=velero/velero-plugin-for-aws:v1.1.0 \
--set initContainers[0].volumeMounts[0].mountPath=/target \
--set initContainers[0].volumeMounts[0].name=plugins
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment