Alex | f7c7863 | 2021-02-12 16:44:02 -0600 | [diff] [blame^] | 1 | apiVersion: v1 |
| 2 | kind: Namespace |
| 3 | metadata: |
| 4 | name: qa-space |
| 5 | --- |
| 6 | apiVersion: v1 |
| 7 | kind: PersistentVolume |
| 8 | metadata: |
| 9 | name: qa-pv |
| 10 | namespace: qa-space |
| 11 | labels: |
| 12 | type: local |
| 13 | spec: |
| 14 | storageClassName: volumes-nvme |
| 15 | capacity: |
| 16 | storage: 50Gi |
| 17 | accessModes: |
| 18 | - ReadWriteOnce |
| 19 | hostPath: |
| 20 | path: "/tmp/artifacts" |
| 21 | --- |
| 22 | apiVersion: v1 |
| 23 | kind: PersistentVolumeClaim |
| 24 | metadata: |
| 25 | name: qa-pvc |
| 26 | namespace: qa-space |
| 27 | spec: |
| 28 | storageClassName: volumes-nvme |
| 29 | accessModes: |
| 30 | - ReadWriteOnce |
| 31 | resources: |
| 32 | requests: |
| 33 | storage: 50Gi |
| 34 | --- |
| 35 | apiVersion: v1 |
| 36 | kind: Pod |
| 37 | metadata: |
| 38 | name: qa-pod |
| 39 | namespace: qa-space |
| 40 | spec: |
| 41 | containers: |
| 42 | - command: |
| 43 | - /bin/sleep |
| 44 | - infinity |
| 45 | env: |
| 46 | - name: LANG |
| 47 | value: C.UTF-8 |
| 48 | - name: OS_IDENTITY_API_VERSION |
| 49 | value: "3" |
| 50 | - name: OS_AUTH_URL |
| 51 | valueFrom: |
| 52 | secretKeyRef: |
| 53 | key: OS_AUTH_URL |
| 54 | name: keystone-keystone-admin |
| 55 | - name: OS_REGION_NAME |
| 56 | valueFrom: |
| 57 | secretKeyRef: |
| 58 | key: OS_REGION_NAME |
| 59 | name: keystone-keystone-admin |
| 60 | - name: OS_INTERFACE |
| 61 | valueFrom: |
| 62 | secretKeyRef: |
| 63 | key: OS_INTERFACE |
| 64 | name: keystone-keystone-admin |
| 65 | - name: OS_ENDPOINT_TYPE |
| 66 | valueFrom: |
| 67 | secretKeyRef: |
| 68 | key: OS_INTERFACE |
| 69 | name: keystone-keystone-admin |
| 70 | - name: OS_PROJECT_DOMAIN_NAME |
| 71 | valueFrom: |
| 72 | secretKeyRef: |
| 73 | key: OS_PROJECT_DOMAIN_NAME |
| 74 | name: keystone-keystone-admin |
| 75 | - name: OS_PROJECT_NAME |
| 76 | valueFrom: |
| 77 | secretKeyRef: |
| 78 | key: OS_PROJECT_NAME |
| 79 | name: keystone-keystone-admin |
| 80 | - name: OS_USER_DOMAIN_NAME |
| 81 | valueFrom: |
| 82 | secretKeyRef: |
| 83 | key: OS_USER_DOMAIN_NAME |
| 84 | name: keystone-keystone-admin |
| 85 | - name: OS_USERNAME |
| 86 | valueFrom: |
| 87 | secretKeyRef: |
| 88 | key: OS_USERNAME |
| 89 | name: keystone-keystone-admin |
| 90 | - name: OS_PASSWORD |
| 91 | valueFrom: |
| 92 | secretKeyRef: |
| 93 | key: OS_PASSWORD |
| 94 | name: keystone-keystone-admin |
| 95 | - name: OS_DEFAULT_DOMAIN |
| 96 | valueFrom: |
| 97 | secretKeyRef: |
| 98 | key: OS_DEFAULT_DOMAIN |
| 99 | name: keystone-keystone-admin |
| 100 | # enable this image is rally is not enough |
| 101 | # image: mirantis.azurecr.io/openstack/heat:ussuri-bionic-20201121180111 |
| 102 | image: xrally/xrally-openstack:2.1.0 |
| 103 | imagePullPolicy: IfNotPresent |
| 104 | name: qa-pod |
| 105 | volumeMounts: |
| 106 | - mountPath: /artifacts |
| 107 | name: qa-pv |
| 108 | dnsPolicy: ClusterFirst |
| 109 | volumes: |
| 110 | - emptyDir: {} |
| 111 | name: pod-tmp |
| 112 | - name: qa-pv |
| 113 | persistentVolumeClaim: |
| 114 | claimName: qa-pvc |
| 115 | |