diff --git a/testing/yaml/datacreation.yaml b/testing/yaml/datacreation.yaml index da64aae..9151090 100644 --- a/testing/yaml/datacreation.yaml +++ b/testing/yaml/datacreation.yaml @@ -89,4 +89,32 @@ spec: - name: config-volume configMap: name: createfile +--- +apiVersion: batch/v1 +kind: Job +metadata: + name: prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0 +spec: + template: + spec: + containers: + - name: training-container + image: registry.k8s.io/nginx-slim:0.8 + command: + - bash + - /app/create.sh + volumeMounts: + - mountPath: /pvmigrate/ + name: data-volume + - name: config-volume + mountPath: /app/create.sh + subPath: create.sh + restartPolicy: Never + volumes: + - name: data-volume + persistentVolumeClaim: + claimName: prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0 + - name: config-volume + configMap: + name: createfile --- \ No newline at end of file diff --git a/testing/yaml/datavalidation.yaml b/testing/yaml/datavalidation.yaml index 8c2930b..ee84323 100644 --- a/testing/yaml/datavalidation.yaml +++ b/testing/yaml/datavalidation.yaml @@ -90,3 +90,42 @@ spec: configMap: name: filecontents --- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0 +spec: + replicas: 1 + selector: + matchLabels: + app: very-long-pvc-name + template: + metadata: + labels: + app: very-long-pvc-name + spec: + containers: + - name: nginx + image: registry.k8s.io/nginx-slim:0.8 + ports: + - containerPort: 80 + name: web + volumeMounts: + - name: data-volume + mountPath: /pvmigrate + - name: config-volume + mountPath: /app/contents.sh + subPath: contents.sh + readinessProbe: + exec: + command: + - bash + - /app/contents.sh + volumes: + - name: data-volume + persistentVolumeClaim: + claimName: prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0 + - name: config-volume + configMap: + name: filecontents +--- diff --git a/testing/yaml/pvcs.yaml b/testing/yaml/pvcs.yaml index 6ded8ed..fecd6c9 100644 --- a/testing/yaml/pvcs.yaml +++ b/testing/yaml/pvcs.yaml @@ -38,4 +38,15 @@ spec: storage: 1Gi storageClassName: int-source --- -# TODO: add PVC name with >63 characters \ No newline at end of file +# this PVC name is more than 63 characters and thus will not fit in a label/annotation +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: prometheus-kube-prometheus-stack-prometheus-db-prometheus-kube-prometheus-stack-prometheus-0 +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + storageClassName: int-source \ No newline at end of file