-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.yaml
90 lines (79 loc) · 1.55 KB
/
manifest.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
apiVersion: apps/v1
kind: Deployment
metadata:
name: wisecow-deployment
namespace: default
labels:
app: wisecow
spec:
selector:
matchLabels:
app: wisecow
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
template:
metadata:
labels:
app: wisecow
containers:
- name: wisecow-service
image: "wisecow/deployment:wiswcow-latest"
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 50m
memory: 50Mi
imagePullPolicy: Always
ports:
- containerPort: 4499
imagePullSecrets:
- name: pullsecret
---
apiVersion: v1
kind: Service
metadata:
name: wisecow-service
namespace: default
spec:
selector:
app: wisecow
type: ClusterIP
ports:
- protocol: "TCP"
port: 4499
targetPort: 4499
---
apiVersion: v1
kind: Secret
metadata:
name: wisecow-secret-tls
namespace: default
data:
tls.crt: "base64 encoded cert"
tls.key: "base64 encoded key"
type: kubernetes.io/tls
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: wisecow-ingress
namespace: default
spec:
tls:
- hosts:
- example.com
secretName: wisecow-secret-tls
rules:
- host: example.com
http:
paths:
- path: /
backend:
serviceName: wisecow-service
servicePort: 4499
#ingress-controller need
#pull-secret needed for pulling image form docker hub or any other repository