-
Notifications
You must be signed in to change notification settings - Fork 20
/
30-deployment.yml
55 lines (55 loc) · 1.42 KB
/
30-deployment.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
kind: Deployment
metadata:
name: hive
namespace: data
labels:
app: hive
spec:
replicas: 1
revisionHistoryLimit: 1
selector:
matchLabels:
app: hive
template:
metadata:
labels:
app: hive
spec:
containers:
- name: hive
image: apk8s/hive-s3m:3.1.2-1.0.0
imagePullPolicy: IfNotPresent
env:
- name: MYSQL_ENDPOINT
value: "mysql:3306"
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: mysql-credentials
key: USER
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-credentials
key: PASSWORD
- name: S3A_ENDPOINT
value: "http://minio:9000"
- name: S3A_ACCESS_KEY
valueFrom:
secretKeyRef:
name: minio-access-keys
key: username
- name: S3A_SECRET_KEY
valueFrom:
secretKeyRef:
name: minio-access-keys
key: password
- name: S3A_PATH_STYLE_ACCESS
value: "true"
ports:
- name: tcp-thrift-meta
containerPort: 9083
- name: tcp-thrift
containerPort: 10000
- name: http-hwi
containerPort: 10002