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

21
manifests/deployment.yml

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

13
manifests/service.yml

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