ode>$/d; /^$/d
$ vi kustomization.yaml
commonLabels:
encore: mysql-commonLabels
commonAnnotations:
encore: mysql-annotations
resources:
- yaml/deploy.yaml
- yaml/pvc.yaml
- yaml/service.yaml
secretGenerator:
- name: mysql-secrets
literals:
- ROOT_PASSWORD=******
generatorOptions:
disableNameSuffixHash: true
labels:
type: generated
annotations:
note: generated
$ cd yaml
$ vi pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mysql-data-disk-trino
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
storageClassName: rook-ceph-block
$ cd yaml
$ vi deploy.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: mysql-deployment-trino
labels:
app: mysql-trino
spec:
replicas: 1
selector:
matchLabels:
app: mysql-trino
template:
metadata:
labels:
app: mysql-trino
spec:
containers:
- name: mysql-trino
image: desk-docker.bart.sec.samsung.net/tmp/mysql:5.7
ports:
- containerPort: 3306
volumeMounts:
- mountPath: "/var/lib/mysql"
subPath: "mysql"
name: mysql-data-trino
env:
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-secrets
key: ROOT_PASSWORD
volumes:
- name: mysql-data-trino
persistentVolumeClaim:
claimName: mysql-data-disk-trino
apiVersion: v1
kind: Service
metadata:
name: mysql-service-trino
spec:
selector:
app: mysql-trino
ports:
- protocol: TCP
port: 3306
targetPort: 3306
commonLabels:
cox: hive-commonLabels
commonAnnotations:
cox: hive-annotations
resources:
- yaml/configmap.yaml
- yaml/deploy-metastore.yaml
- yaml/job-initschema.yaml
- yaml/service.yaml
secretGenerator:
- name: my-s3-keys
literals:
- access-key=*****
- secret-key=*****
generatorOptions:
disableNameSuffixHash: true
labels:
type: generated
annotations:
note: generated
ode>$/d; /^</pre>$/d
ode>$/d; /^$/d