|
| 1 | +# Configuration to deploy the HPE 3PAR Primera Storage CSP service |
| 2 | +# |
| 3 | +# example usage: kubectl create -f <this_file> |
| 4 | + |
| 5 | +############################################## |
| 6 | +############ HPEVolumeInfos CRD ############ |
| 7 | +############################################## |
| 8 | + |
| 9 | +--- |
| 10 | +apiVersion: apiextensions.k8s.io/v1beta1 |
| 11 | +kind: CustomResourceDefinition |
| 12 | +metadata: |
| 13 | + creationTimestamp: null |
| 14 | + name: hpevolumeinfos.storage.hpe.com |
| 15 | +spec: |
| 16 | + group: storage.hpe.com |
| 17 | + names: |
| 18 | + kind: HPEVolumeInfo |
| 19 | + plural: hpevolumeinfos |
| 20 | + shortNames: |
| 21 | + - hperdi |
| 22 | + scope: Cluster |
| 23 | + validation: |
| 24 | + openAPIV3Schema: |
| 25 | + properties: |
| 26 | + hpeVolumes: |
| 27 | + description: List of HPE volumes configured for 3PAR/Primera arrays. |
| 28 | + items: |
| 29 | + properties: |
| 30 | + uuid: |
| 31 | + description: The UUID of the volume. |
| 32 | + type: string |
| 33 | + record: |
| 34 | + description: Metadata for the volume. |
| 35 | + type: map[string]string |
| 36 | + type: array |
| 37 | + version: v1 |
| 38 | +status: |
| 39 | + acceptedNames: |
| 40 | + kind: "" |
| 41 | + plural: "" |
| 42 | + conditions: [] |
| 43 | + storedVersions: [] |
| 44 | + |
| 45 | +--- |
| 46 | +apiVersion: apiextensions.k8s.io/v1beta1 |
| 47 | +kind: CustomResourceDefinition |
| 48 | +metadata: |
| 49 | + creationTimestamp: null |
| 50 | + name: hpereplicationdeviceinfos.storage.hpe.com |
| 51 | +spec: |
| 52 | + group: storage.hpe.com |
| 53 | + names: |
| 54 | + kind: HPEReplicationDeviceInfo |
| 55 | + plural: hpereplicationdeviceinfos |
| 56 | + scope: Cluster |
| 57 | + validation: |
| 58 | + openAPIV3Schema: |
| 59 | + properties: |
| 60 | + hpeReplicationDeviceInfos: |
| 61 | + description: List of HPE Replicated Arrays configured for 3PAR/Primera arrays. |
| 62 | + items: |
| 63 | + properties: |
| 64 | + targets: |
| 65 | + description: Target Array Details |
| 66 | + type: array |
| 67 | + items: |
| 68 | + properties: |
| 69 | + targetName: |
| 70 | + description: Target Name of the array |
| 71 | + type: string |
| 72 | + targetCpg: |
| 73 | + description: Target CPG of the array |
| 74 | + type: string |
| 75 | + targetSnapCpg: |
| 76 | + description: Target Snap CPG of the array |
| 77 | + type: string |
| 78 | + targetSecret: |
| 79 | + description: Secret of the replicated array |
| 80 | + type: string |
| 81 | + targetMode: |
| 82 | + description: Replication Mode |
| 83 | + type: string |
| 84 | + targetSecretNamespace: |
| 85 | + description: Namespace of secret |
| 86 | + type: string |
| 87 | + required: |
| 88 | + - targetName |
| 89 | + - targetCpg |
| 90 | + - targetSecret |
| 91 | + - targetSecretNamespace |
| 92 | + type: array |
| 93 | + version: v1 |
| 94 | +status: |
| 95 | + acceptedNames: |
| 96 | + kind: "" |
| 97 | + plural: "" |
| 98 | + conditions: [] |
| 99 | + storedVersions: [] |
| 100 | +--- |
| 101 | + |
| 102 | +#################################################### |
| 103 | +############ Alletra 9000 CSP Service ############ |
| 104 | +#################################################### |
| 105 | + |
| 106 | +kind: Service |
| 107 | +apiVersion: v1 |
| 108 | +metadata: |
| 109 | + name: alletra9000-csp-svc |
| 110 | + namespace: hpe-storage |
| 111 | + labels: |
| 112 | + app: alletra9000-csp-svc |
| 113 | +spec: |
| 114 | + ports: |
| 115 | + - port: 8080 |
| 116 | + protocol: TCP |
| 117 | + selector: |
| 118 | + app: primera3par-csp |
| 119 | + |
| 120 | + |
| 121 | +--- |
| 122 | + |
| 123 | +#################################################### |
| 124 | +############ Primera3Par CSP Service ############ |
| 125 | +#################################################### |
| 126 | + |
| 127 | +kind: Service |
| 128 | +apiVersion: v1 |
| 129 | +metadata: |
| 130 | + name: primera3par-csp-svc |
| 131 | + namespace: hpe-storage |
| 132 | + labels: |
| 133 | + app: primera3par-csp-svc |
| 134 | +spec: |
| 135 | + ports: |
| 136 | + - port: 8080 |
| 137 | + protocol: TCP |
| 138 | + selector: |
| 139 | + app: primera3par-csp |
| 140 | + |
| 141 | +--- |
| 142 | + |
| 143 | +########################################## |
| 144 | +############ CSP Deployment ############ |
| 145 | +########################################## |
| 146 | + |
| 147 | +kind: Deployment |
| 148 | +apiVersion: apps/v1 |
| 149 | +metadata: |
| 150 | + name: primera3par-csp |
| 151 | + namespace: hpe-storage |
| 152 | +spec: |
| 153 | + selector: |
| 154 | + matchLabels: |
| 155 | + app: primera3par-csp |
| 156 | + replicas: 1 |
| 157 | + template: |
| 158 | + metadata: |
| 159 | + labels: |
| 160 | + app: primera3par-csp |
| 161 | + spec: |
| 162 | + serviceAccountName: hpe-csp-sa |
| 163 | + priorityClassName: system-cluster-critical |
| 164 | + containers: |
| 165 | + - name: primera3par-csp |
| 166 | + image: quay.io/hpestorage/alletra-9000-primera-and-3par-csp:v2.1.0 |
| 167 | + imagePullPolicy: Always |
| 168 | + ports: |
| 169 | + - containerPort: 8080 |
| 170 | + volumeMounts: |
| 171 | + - name: log-dir |
| 172 | + mountPath: /var/log |
| 173 | + volumes: |
| 174 | + - name: log-dir |
| 175 | + hostPath: |
| 176 | + path: /var/log |
| 177 | + tolerations: |
| 178 | + - effect: NoExecute |
| 179 | + key: node.kubernetes.io/not-ready |
| 180 | + operator: Exists |
| 181 | + tolerationSeconds: 30 |
| 182 | + - effect: NoExecute |
| 183 | + key: node.kubernetes.io/unreachable |
| 184 | + operator: Exists |
| 185 | + tolerationSeconds: 30 |
0 commit comments