Created
June 6, 2017 15:57
-
-
Save chawkins88/35c590b70d6a6e941f503aa4138c1b97 to your computer and use it in GitHub Desktop.
pentaho yaml
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
## workaround until kubeadm supports EBS volumes in yaml | |
## first mount the pentaho EBS disk on a k8s node: | |
## aws ec2 attach-volume --volume-id vol-06dd79a6011315ac6 --instance-id i-013ebea37264ae4a2 --device /dev/xvdf && mkdir /mnt/pentaho-data-volume && mount /dev/xvdf /mnt/pentaho-data-volume | |
## and label it like: | |
## kubectl label nodes kube-node-development-7-1 pentaho-data-volume-mounted=true | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: pentaho-dev-svc | |
spec: | |
type: NodePort | |
ports: | |
- name: ssh | |
protocol: TCP | |
port: 31222 | |
targetPort: 22 | |
nodePort: 31222 | |
- name: web | |
protocol: TCP | |
port: 31280 | |
targetPort: 8080 | |
nodePort: 31280 | |
selector: | |
app: pentaho-dev | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: pentaho-dev-ingress | |
annotations: | |
kubernetes.io/ingress.class: "nginx" | |
ingress.kubernetes.io/ssl-redirect: "false" | |
spec: | |
rules: | |
- host: pentaho.dev-k8s-1.wepacloud.com | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: pentaho-dev-svc | |
servicePort: 8080 | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: pentaho-dev-rc | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: pentaho-dev | |
spec: | |
volumes: | |
- name: dev-pentaho-volume | |
flocker: | |
datasetName: pentaho-flocker | |
containers: | |
- name: pentaho-dev | |
env: | |
- name: SEMATEXT_TOKEN | |
value: '2f32a6f6-d8b2-45d5-8d51-9ae2b2c4e488' | |
- name: PENTAHO_HOME | |
value: '/opt/pentaho' | |
- name: JAVA_HOME | |
value: '/usr/lib/jvm/java-1.7.0-openjdk-amd64' | |
- name: _PENTAHO_JAVA_HOME | |
value: '/usr/lib/jvm/java-1.7.0-openjdk-amd64' | |
- name: DB_ADDRESS | |
value: 'dbrep.wepanow.com:3306' | |
- name: DB_USER | |
value: 'root' | |
- name: DB_PASS | |
value: 'p3ntaho$' | |
- name: WEB_ADDRESS | |
value: 'dev-pentaho.wepacloud.com' | |
image: testvpc1-docker-registry.wepanow.com/pentaho_application:latest | |
imagePullPolicy: Always | |
volumeMounts: | |
- mountPath: /mnt/pentaho | |
name: dev-pentaho-volume | |
command: ["/bin/bash"] | |
args: ["-c", "source /root/.bashrc && mount -o bind /mnt/pentaho/pentaho_application /opt/pentaho && ./configure.sh -t pre && $PENTAHO_HOME/pentaho-server/start-pentaho.sh && ./configure.sh -t post && /usr/sbin/sshd -D && while true; do sleep 60; done"] | |
securityContext: | |
privileged: true | |
ports: | |
- containerPort: 8080 | |
name: web | |
- containerPort: 22 | |
name: ssh | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment