change regi

This commit is contained in:
kimscott
2020-03-09 10:51:58 +09:00
parent 8d0113e69f
commit d10b3eeada
2 changed files with 2 additions and 14 deletions

View File

@@ -85,18 +85,6 @@ stages:
secretType: 'dockerRegistry'
containerRegistryType: 'Azure Container Registry'
outputFormat: "jsonpath='{.status.loadBalancer.ingress[0].ip}'"
- task: Kubernetes@1
displayName: 'Get gateway port'
name: 'gatewayport'
continueOnError: true
inputs:
connectionType: 'Kubernetes Service Connection'
namespace: 'default'
command: 'get'
arguments: "svc gateway --ignore-not-found"
secretType: 'dockerRegistry'
containerRegistryType: 'Azure Container Registry'
outputFormat: "jsonpath='{.spec.ports[0].port}'"
- task: Kubernetes@1
inputs:
connectionType: 'Kubernetes Service Connection'
@@ -128,7 +116,7 @@ stages:
- containerPort: 8080
env:
- name: VUE_APP_API_HOST
value: http://${gatewayip.KubectlOutput}:${gatewayport.KubectlOutput}
value: http://${gatewayip.KubectlOutput}:8080
secretType: 'dockerRegistry'
containerRegistryType: 'Azure Container Registry'
- task: Kubernetes@1

View File

@@ -87,4 +87,4 @@ options:
env:
# # location/name of GKE cluster (used by all kubectl commands)
- CLOUDSDK_COMPUTE_ZONE=asia-northeast1-a
- CLOUDSDK_CONTAINER_CLUSTER=standard-cluster-1
- CLOUDSDK_CONTAINER_CLUSTER=cluster-1