Last active
February 12, 2019 03:20
-
-
Save elsonrodriguez/e75414b1944143d7fe840611dd042503 to your computer and use it in GitHub Desktop.
Superset/Caravel on Kubernetes
This file contains hidden or 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
kind: StorageClass | |
apiVersion: storage.k8s.io/v1beta1 | |
metadata: | |
name: fast | |
provisioner: kubernetes.io/gce-pd | |
parameters: | |
type: pd-ssd |
This file contains hidden or 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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "1" | |
labels: | |
run: postgres | |
name: postgres | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
run: postgres | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
run: postgres | |
spec: | |
containers: | |
- env: | |
- name: POSTGRES_USER | |
value: postgres | |
- name: POSTGRES_PASSWORD | |
value: password | |
image: postgres:9.6 | |
imagePullPolicy: IfNotPresent | |
name: postgres | |
ports: | |
- containerPort: 5432 | |
protocol: TCP | |
resources: {} | |
volumeMounts: | |
- name: postgres | |
mountPath: /var/lib/postgresql/ | |
resources: | |
limits: | |
cpu: .25 | |
memory: 500Mi | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
securityContext: {} | |
volumes: | |
- name: postgres | |
persistentVolumeClaim: | |
claimName: postgres |
This file contains hidden or 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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: postgres | |
annotations: | |
volume.beta.kubernetes.io/storage-class: fast | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 30Gi |
This file contains hidden or 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
run: postgres | |
name: postgres | |
spec: | |
ports: | |
- port: 5432 | |
protocol: TCP | |
targetPort: 5432 | |
selector: | |
run: postgres | |
sessionAffinity: None | |
type: ClusterIP |
This file contains hidden or 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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "1" | |
labels: | |
run: superset | |
name: superset | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
run: superset | |
template: | |
metadata: | |
labels: | |
run: superset | |
spec: | |
containers: | |
- image: tylerfowler/superset:0.13.2 | |
imagePullPolicy: IfNotPresent | |
name: superset | |
ports: | |
- containerPort: 8088 | |
protocol: TCP | |
resources: {} | |
stdin: true | |
env: | |
- name: SUP_META_DB_URI | |
value: postgresql://postgres:password@postgres/ | |
volumeMounts: | |
- name: superset | |
mountPath: /superset/ | |
resources: | |
limits: | |
cpu: .25 | |
memory: 500Mi | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
volumes: | |
- name: superset | |
persistentVolumeClaim: | |
claimName: superset |
This file contains hidden or 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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: superset | |
annotations: | |
volume.beta.kubernetes.io/storage-class: fast | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 10Gi |
This file contains hidden or 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
run: superset | |
name: superset | |
spec: | |
ports: | |
- port: 80 | |
protocol: TCP | |
targetPort: 8088 | |
selector: | |
run: superset | |
sessionAffinity: None | |
type: LoadBalancer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment