getAzuriteService get the service for Azurite
(namespace string)
| 239 | |
| 240 | // getAzuriteService get the service for Azurite |
| 241 | func getAzuriteService(namespace string) corev1.Service { |
| 242 | azuriteService := corev1.Service{ |
| 243 | ObjectMeta: metav1.ObjectMeta{ |
| 244 | Name: "azurite", |
| 245 | Labels: map[string]string{"app": "azurite"}, |
| 246 | Namespace: namespace, |
| 247 | }, |
| 248 | Spec: corev1.ServiceSpec{ |
| 249 | Ports: []corev1.ServicePort{ |
| 250 | { |
| 251 | Port: 10000, |
| 252 | Protocol: "TCP", |
| 253 | TargetPort: intstr.IntOrString{ |
| 254 | IntVal: 10000, |
| 255 | }, |
| 256 | }, |
| 257 | }, |
| 258 | Selector: map[string]string{"app": "azurite"}, |
| 259 | }, |
| 260 | } |
| 261 | return azuriteService |
| 262 | } |
| 263 | |
| 264 | // getAzuriteDeployment get the deployment for Azurite |
| 265 | func getAzuriteDeployment(namespace string) appsv1.Deployment { |