-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdeployment_os.yml
113 lines (113 loc) · 2.26 KB
/
deployment_os.yml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
apiVersion: v1
kind: Namespace
metadata:
name: gen-ai-rag-sample-app
labels:
---
apiVersion: v1
kind: Secret
metadata:
name: gen-ai-rag-sample-app-secret
namespace: gen-ai-rag-sample-app
labels:
app: gen-ai-rag-sample-app
data:
.dockerconfigjson: secret
type: kubernetes.io/dockerconfigjson
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: gen-ai-rag-sample-app-sa
namespace: gen-ai-rag-sample-app
labels:
app: gen-ai-rag-sample-app
imagePullSecrets:
- name: gen-ai-rag-sample-app-secret
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gen-ai-rag-sample-app
labels:
application: gen-ai-rag-sample-app
spec:
replicas: 1
selector:
matchLabels:
app: gen-ai-rag-sample-app
template:
metadata:
labels:
app: gen-ai-rag-sample-app
spec:
serviceAccountName: gen-ai-rag-sample-app-sa
containers:
- name: gen-ai-rag-sample-app
image: gen-ai-rag-sample-app
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
imagePullPolicy: Always
ports:
- containerPort: 8080
protocol: TCP
envFrom:
- configMapRef:
name: gen-ai-rag-sample-app-configmap
---
kind: Service
apiVersion: v1
metadata:
name: gen-ai-rag-sample-app
namespace: gen-ai-rag-sample-app
labels:
app: gen-ai-rag-sample-app
spec:
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8080
targetPort: 8080
selector:
app: gen-ai-rag-sample-app
---
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: gen-ai-rag-sample-app
namespace: gen-ai-rag-sample-app
labels:
app: gen-ai-rag-sample-app
spec:
to:
kind: Service
name: gen-ai-rag-sample-app
port:
targetPort: http
tls:
termination: edge
---
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: gen-ai-rag-sample-app-tls
namespace: gen-ai-rag-sample-app
labels:
app: gen-ai-rag-sample-app
ingress: ingress-public
spec:
host: gen-ai-rag-sample-app-tls-dev.subdomain
to:
kind: Service
name: gen-ai-rag-sample-app
port:
targetPort: http
tls:
termination: edge