Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[GOBBLIN-906] Initializes kubernetes cluster for GaaS and Gobblin Sta…
…ndalone Closes #2760 from Will-Lo/add-k8-gaas
- Loading branch information
William Lo
authored and
suvasude
committed
Oct 23, 2019
1 parent
2415173
commit da03be141c8b774a70a953c1aff08a788094137e
Showing
3 changed files
with
141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# 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 | ||
containers: | ||
- name: gobblin-service | ||
image: will97/gobblin-as-a-service:latest | ||
volumeMounts: | ||
- name: shared-jobs | ||
mountPath: /tmp/gobblin-service/jobs | ||
- name: shared-template-catalogs | ||
mountPath: /tmp/templateCatalog | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: 'gobblin-standalone-deployment' | ||
labels: | ||
app: gobblin-standalone-deployment | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: gobblin-standalone | ||
replicas: 1 | ||
template: | ||
metadata: | ||
name: 'gobblin-standalone' | ||
labels: | ||
app: gobblin-standalone | ||
spec: | ||
volumes: | ||
- name: 'shared-jobs' | ||
persistentVolumeClaim: | ||
claimName: shared-jobs-claim | ||
containers: | ||
- name: gobblin-standalone | ||
image: will97/gobblin-standalone:latest | ||
volumeMounts: | ||
- name: shared-jobs | ||
mountPath: /tmp/gobblin-standalone/jobs | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: gaas-svc | ||
labels: | ||
app: gobblin-service | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- protocol: TCP | ||
port: 6956 | ||
targetPort: 6956 | ||
selector: | ||
app: gaas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: networking.k8s.io/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: gaas-ingress | ||
spec: | ||
backend: | ||
serviceName: gaas-svc | ||
servicePort: 6956 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: shared-jobs-volume | ||
spec: | ||
capacity: | ||
storage: 100Mi | ||
volumeMode: Filesystem | ||
accessModes: | ||
- ReadWriteOnce | ||
persistentVolumeReclaimPolicy: Delete | ||
storageClassName: manual | ||
hostPath: | ||
path: "/etc/opt/job-conf" | ||
--- | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: shared-jobs-claim | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: manual | ||
resources: | ||
requests: | ||
storage: 100Mi | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: shared-template-catalogs-volume | ||
spec: | ||
capacity: | ||
storage: 50Mi | ||
volumeMode: Filesystem | ||
accessModes: | ||
- ReadWriteOnce | ||
persistentVolumeReclaimPolicy: Delete | ||
storageClassName: manual | ||
hostPath: | ||
path: "/tmp/templateCatalog" | ||
--- | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: shared-template-catalogs-claim | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: manual | ||
resources: | ||
requests: | ||
storage: 50Mi | ||
|