Introduced kustomize to install kubeflow with leofs.
Change-Id: I4d28bc193adf2a28715f0a4634b2324b01c20524
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
--- /dev/null
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: ml-pipeline
+spec:
+ template:
+ metadata:
+ labels:
+ app: ml-pipeline
+ spec:
+ containers:
+ - env:
+ - name: OBJECTSTORECONFIG_SECURE
+ value: "false"
+ - name: OBJECTSTORECONFIG_BUCKETNAME
+ valueFrom:
+ configMapKeyRef:
+ name: pipeline-install-config
+ key: bucketName
+ - name: OBJECTSTORECONFIG_HOST
+ valueFrom:
+ configMapKeyRef:
+ name: pipeline-install-config
+ key: minioServiceHost
+ - name: OBJECTSTORECONFIG_REGION
+ value: ""
+ - name: OBJECTSTORECONFIG_PORT
+ value: "8080"
+ name: ml-pipeline-api-server
--- /dev/null
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: ml-pipeline-ui
+spec:
+ template:
+ metadata:
+ labels:
+ app: ml-pipeline-ui
+ spec:
+ volumes:
+ - name: config-volume
+ configMap:
+ name: ml-pipeline-ui-configmap
+ containers:
+ - name: ml-pipeline-ui
+ env:
+ - name: AWS_ACCESS_KEY_ID
+ valueFrom:
+ secretKeyRef:
+ name: mlpipeline-minio-artifact
+ key: accesskey
+ - name: AWS_SECRET_ACCESS_KEY
+ valueFrom:
+ secretKeyRef:
+ name: mlpipeline-minio-artifact
+ key: secretkey
--- /dev/null
+{
+artifactRepository:
+{
+ s3: {
+ bucket: $(kfp-artifact-bucket-name),
+ keyPrefix: artifacts,
+ endpoint: leofs.kubeflow:8080,
+ insecure: true,
+ accessKeySecret: {
+ name: mlpipeline-minio-artifact,
+ key: accesskey
+ },
+ secretKeySecret: {
+ name: mlpipeline-minio-artifact,
+ key: secretkey
+ }
+ },
+ archiveLogs: true
+}
+}
--- /dev/null
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+namespace: kubeflow
+resources:
+ - ../../env/platform-agnostic
+configMapGenerator:
+ - name: pipeline-install-config
+ env: params.env
+ behavior: merge
+ - name: workflow-controller-configmap
+ behavior: replace
+ files:
+ - config
+ - name: ml-pipeline-ui-configmap
+ behavior: replace
+ files:
+ - viewer-pod-template.json
+secretGenerator:
+ - name: mlpipeline-minio-artifact
+ env: minio-artifact-secret-patch.env
+ behavior: merge
+generatorOptions:
+ disableNameSuffixHash: true
+patches:
+ - path: aimlfw-configuration-pipeline-patch.yaml
+ - path: aimlfw-configuration-pipeline-ui-patch.yaml
+# Identifier for application manager to apply ownerReference.
+# The ownerReference ensures the resources get garbage collected
+# when application is deleted.
+commonLabels:
+ application-crd-id: kubeflow-pipelines
--- /dev/null
+accesskey=leofs
+secretkey=
--- /dev/null
+bucketName=mlpipeline
+minioServiceHost=leofs.kubeflow
+minioServiceRegion=
\ No newline at end of file
--- /dev/null
+{
+ "spec": {
+ "containers": [
+ {
+ "env": [
+ {
+ "name": "AWS_ACCESS_KEY_ID",
+ "valueFrom": {
+ "secretKeyRef": {
+ "name": "mlpipeline-minio-artifact",
+ "key": "accesskey"
+ }
+ }
+ },
+ {
+ "name": "AWS_SECRET_ACCESS_KEY",
+ "valueFrom": {
+ "secretKeyRef": {
+ "name": "mlpipeline-minio-artifact",
+ "key": "secretkey"
+ }
+ }
+ },
+ {
+ "name": "AWS_REGION",
+ "valueFrom": {
+ "configMapKeyRef": {
+ "name": "pipeline-install-config",
+ "key": "minioServiceRegion"
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file