Browse Source

update for deploy eventhub web

pull/39/head
yusuf karatoprak 6 years ago
parent
commit
b9a3f0a72a
  1. 8
      azure-pipelines.yml
  2. 21
      manifests/deployment.yml
  3. 13
      manifests/service.yml

8
azure-pipelines.yml

@ -3,7 +3,7 @@
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker # https://docs.microsoft.com/azure/devops/pipelines/languages/docker
trigger: trigger:
- main - dev
variables: variables:
@ -14,10 +14,6 @@ variables:
containerRegistry: 'voloeventhub.azurecr.io' containerRegistry: 'voloeventhub.azurecr.io'
dockerfilePath: '**/Dockerfile' dockerfilePath: '**/Dockerfile'
tag: '$(Build.BuildNumber)' tag: '$(Build.BuildNumber)'
<<<<<<< HEAD
=======
>>>>>>> main
# Agent VM image name # Agent VM image name
vmImageName: 'ubuntu-latest' vmImageName: 'ubuntu-latest'
@ -51,7 +47,7 @@ stages:
jobs: jobs:
- deployment: Deploy - deployment: Deploy
displayName: Deploy displayName: Deploy-EventHub.Web
pool: pool:
vmImage: $(vmImageName) vmImage: $(vmImageName)
environment: 'volosofteventhub-5982.default' environment: 'volosofteventhub-5982.default'

21
manifests/deployment.yml

@ -1,19 +1,22 @@
apiVersion : apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: voloeventhub name: volosoft-eventhub-web-deployment
spec: spec:
replicas: 1
selector: selector:
matchLabels: matchLabels:
app: voloeventhub app: volosoft-eventhub-web-pod
template: template:
metadata: metadata:
labels: labels:
app: voloeventhub app: volosoft-eventhub-web-pod
spec: spec:
containers: containers:
- name: voloeventhub - name: volosoft-eventhub-web-container
image: voloeventhub.azurecr.io/voloeventhub image: voloeventhub.azurecr.io/voloeventhub:v1
ports: resources:
- containerPort: 80 limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80

13
manifests/service.yml

@ -1,10 +1,11 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: voloeventhub name: volosoft-eventhub-web-service
spec: spec:
type: LoadBalancer selector:
ports: app: volosoft-eventhub-web-pod
- port: 80 ports:
selector: - port: 8080
app: voloeventhub targetPort: 80
type: ClusterIP
Loading…
Cancel
Save