[
https://issues.apache.org/jira/browse/GOBBLIN-913?focusedWorklogId=336342&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-336342
]
ASF GitHub Bot logged work on GOBBLIN-913:
------------------------------------------
Author: ASF GitHub Bot
Created on: 30/Oct/19 17:50
Start Date: 30/Oct/19 17:50
Worklog Time Spent: 10m
Work Description: zxcware commented on pull request #2781: [GOBBLIN-913]
Add MySQL and configurations to cluster
URL: https://github.com/apache/incubator-gobblin/pull/2781#discussion_r340768889
##########
File path: gobblin-kubernetes/gobblin-service/dev-cluster/application.yaml
##########
@@ -0,0 +1,110 @@
+# In the future, build the kubernetes cluster from the official docker account
+# Also ensure that proper tagging/versioning is done i.e. remove :latest tag
and instead use the digest of the container
+
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: 'gaas-deployment'
+ labels:
+ app: gaas-deployment
+spec:
+ selector:
+ matchLabels:
+ app: gaas
+ replicas: 1
+ template:
+ metadata:
+ name: 'gaas'
+ labels:
+ app: gaas
+ spec:
+ volumes:
+ - name: shared-jobs
+ persistentVolumeClaim:
+ claimName: shared-jobs-claim
+ - name: shared-template-catalogs
+ persistentVolumeClaim:
+ claimName: shared-template-catalogs-claim
+ - name: gaas-config
+ configMap:
+ name: gaas-config
+ containers:
+ - name: gobblin-service
+ image: will97/gobblin-as-a-service:latest
+ command: ["./bin/entrypoint.sh"]
+ args: ["--args", "-DmysqlCredentials.user=$(MYSQL_USERNAME)
-DmysqlCredentials.password=$(MYSQL_PASSWORD)"]
+ env:
+ - name: MYSQL_USERNAME
+ valueFrom:
+ secretKeyRef:
+ name: mysql-credentials
+ key: username
+ - name: MYSQL_PASSWORD
+ valueFrom:
+ secretKeyRef:
+ name: mysql-credentials
+ key: password
+ volumeMounts:
+ - name: shared-jobs
+ mountPath: /tmp/gobblin-as-service/jobs
+ - name: shared-template-catalogs
+ mountPath: /tmp/templateCatalog
+ - name: gaas-config
+ mountPath: /home/gobblin/conf/gobblin-as-service/application.conf
+ subPath: gaas-application.conf
+ # dependency on mysql to be initialized before gaas can be initialized
+ initContainers:
Review comment:
This is interesting. Does k8s have a way to specify POD dependencies while
booting up application?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 336342)
Time Spent: 2h 10m (was: 2h)
> Initialize MySQL on Gobblin K8s Cluster
> ---------------------------------------
>
> Key: GOBBLIN-913
> URL: https://issues.apache.org/jira/browse/GOBBLIN-913
> Project: Apache Gobblin
> Issue Type: New Feature
> Affects Versions: 0.15.0
> Reporter: William Lo
> Priority: Major
> Fix For: 0.15.0
>
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)