Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Last active July 18, 2019 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulsahay19/7d00c2507a9081514e41bee140ae1762 to your computer and use it in GitHub Desktop.
Save rahulsahay19/7d00c2507a9081514e41bee140ae1762 to your computer and use it in GitHub Desktop.
web-deployment.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: aksweb
namespace: aks-learning
labels:
run: webfront
spec:
replicas: 1
selector:
matchLabels:
run: webfront-deployment
template:
metadata:
labels:
run: webfront-deployment
spec:
containers:
- name: aksweb
image: rahulsahay19/aksweb
env:
- name: ASPNETCORE_ENVIRONMENT
value: "Development"
- name: ASPNETCORE_URLS
value: http://0.0.0.0:8080
- name: AKSApiUrl
value: "http://AKSApi:8081/api/eventsapi/"
ports:
- containerPort: 8080
protocol: TCP
imagePullPolicy: IfNotPresent
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment