-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- adds sanity test for upgrade - update build script to use travis tag or branch as version - use universal push script Signed-off-by: shubham <[email protected]>
- Loading branch information
1 parent
67f21dd
commit 697cc83
Showing
16 changed files
with
851 additions
and
133 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,100 @@ | ||
apiVersion: cstor.openebs.io/v1 | ||
kind: CStorPoolCluster | ||
metadata: | ||
name: cspc-stripe | ||
namespace: openebs | ||
spec: | ||
pools: | ||
- nodeSelector: | ||
kubernetes.io/hostname: "minikube" | ||
dataRaidGroups: | ||
- blockDevices: | ||
- blockDeviceName: "CSPCBD" | ||
poolConfig: | ||
dataRaidGroupType: "stripe" | ||
--- | ||
kind: StorageClass | ||
apiVersion: storage.k8s.io/v1 | ||
metadata: | ||
name: openebs-cstor-csi | ||
provisioner: cstor.csi.openebs.io | ||
allowVolumeExpansion: true | ||
parameters: | ||
cas-type: cstor | ||
cstorPoolCluster: cspc-stripe | ||
replicaCount: "1" | ||
--- | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: demo-csi-vol-claim | ||
spec: | ||
storageClassName: openebs-cstor-csi | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 5Gi | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: percona | ||
labels: | ||
lkey: lvalue | ||
openebs.io/target-affinity: percona | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
lkey: lvalue | ||
template: | ||
metadata: | ||
labels: | ||
lkey: lvalue | ||
openebs.io/target-affinity: percona | ||
spec: | ||
containers: | ||
- resources: | ||
limits: | ||
cpu: 0.5 | ||
name: percona | ||
image: openebs/tests-custom-percona:latest | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- "--ignore-db-dir" | ||
- "lost+found" | ||
env: | ||
- name: MYSQL_ROOT_PASSWORD | ||
value: k8sDem0 | ||
ports: | ||
- containerPort: 3306 | ||
name: percona | ||
volumeMounts: | ||
- mountPath: /var/lib/mysql | ||
name: data-vol | ||
#<!-- BEGIN ANSIBLE MANAGED BLOCK --> | ||
livenessProbe: | ||
exec: | ||
command: ["bash", "sql-test.sh"] | ||
initialDelaySeconds: 60 | ||
periodSeconds: 1 | ||
timeoutSeconds: 10 | ||
#<!-- END ANSIBLE MANAGED BLOCK --> | ||
volumes: | ||
- name: data-vol | ||
persistentVolumeClaim: | ||
claimName: demo-csi-vol-claim | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: percona-csi-mysql | ||
labels: | ||
lkey: lvalue | ||
spec: | ||
ports: | ||
- port: 3306 | ||
targetPort: 3306 | ||
selector: | ||
lkey: lvalue |
Oops, something went wrong.