change regi
This commit is contained in:
@@ -85,18 +85,6 @@ stages:
|
|||||||
secretType: 'dockerRegistry'
|
secretType: 'dockerRegistry'
|
||||||
containerRegistryType: 'Azure Container Registry'
|
containerRegistryType: 'Azure Container Registry'
|
||||||
outputFormat: "jsonpath='{.status.loadBalancer.ingress[0].ip}'"
|
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
|
- task: Kubernetes@1
|
||||||
inputs:
|
inputs:
|
||||||
connectionType: 'Kubernetes Service Connection'
|
connectionType: 'Kubernetes Service Connection'
|
||||||
@@ -128,7 +116,7 @@ stages:
|
|||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
env:
|
env:
|
||||||
- name: VUE_APP_API_HOST
|
- name: VUE_APP_API_HOST
|
||||||
value: http://${gatewayip.KubectlOutput}:${gatewayport.KubectlOutput}
|
value: http://${gatewayip.KubectlOutput}:8080
|
||||||
secretType: 'dockerRegistry'
|
secretType: 'dockerRegistry'
|
||||||
containerRegistryType: 'Azure Container Registry'
|
containerRegistryType: 'Azure Container Registry'
|
||||||
- task: Kubernetes@1
|
- task: Kubernetes@1
|
||||||
|
|||||||
@@ -87,4 +87,4 @@ options:
|
|||||||
env:
|
env:
|
||||||
# # location/name of GKE cluster (used by all kubectl commands)
|
# # location/name of GKE cluster (used by all kubectl commands)
|
||||||
- CLOUDSDK_COMPUTE_ZONE=asia-northeast1-a
|
- CLOUDSDK_COMPUTE_ZONE=asia-northeast1-a
|
||||||
- CLOUDSDK_CONTAINER_CLUSTER=standard-cluster-1
|
- CLOUDSDK_CONTAINER_CLUSTER=cluster-1
|
||||||
Reference in New Issue
Block a user