-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
64 lines (62 loc) · 1.53 KB
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Deploy the Agrolly Website
apiVersion: apps/v1
kind: Deployment
metadata:
name: agrolly-web
labels:
app: agrolly-web
spec:
replicas: 1
selector:
matchLabels:
app: agrolly-web
template:
metadata:
labels:
app: agrolly-web
spec:
containers:
- name: agrolly-web
image: # Your image location here. Example "us.icr.io/agrolly-test/web:v1"
imagePullSecrets:
- name: # Your secrets here. Example all-icr-io
---
# Service for Agrolly Web
apiVersion: v1
kind: Service
metadata:
name: agrolly-web-svc
annotations:
service.kubernetes.io/ibm-load-balancer-cloud-provider-enable-features: "nlb"
spec:
selector:
app: agrolly-web
ports:
- name: http
protocol: TCP
port: 4000
targetPort: 4000
---
# Ingress for Agrolly
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: agrolly-ingress-web-resource
annotations:
kubernetes.io/ingress.class: "public-iks-k8s-nginx"
spec:
tls:
- hosts:
- # Your Ingress subdomain value here. Example: my-cluster-us-east-1-514bd37ab295f8aeaf548c9dacf89542-0000.us-east.containers.appdomain.cloud
secretName: # Your Ingress secret value here. Example: my-cluster-us-east-1-514bd37ab295f8aeaf548c9dacf89542-0000
rules:
- host: # Host to be routed here. Example: agrolly.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: agrolly-web-svc
port:
number: 4000