[ 
https://issues.apache.org/jira/browse/HDDS-1508?focusedWorklogId=254346&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-254346
 ]

ASF GitHub Bot logged work on HDDS-1508:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Jun/19 12:33
            Start Date: 05/Jun/19 12:33
    Worklog Time Spent: 10m 
      Work Description: elek commented on pull request #905: HDDS-1508. Provide 
example k8s deployment files for the new CSI server
URL: https://github.com/apache/hadoop/pull/905#discussion_r290714147
 
 

 ##########
 File path: 
hadoop-ozone/dist/src/main/k8s/examples/ozone-csi/datanode-daemonset.yaml
 ##########
 @@ -0,0 +1,56 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+apiVersion: apps/v1
+kind: DaemonSet
+metadata:
+  name: datanode
+  labels:
+    app.kubernetes.io/component: ozone
+spec:
+  selector:
+    matchLabels:
+      app: ozone
+      component: datanode
+  template:
+    metadata:
+      annotations:
+        prometheus.io/scrape: "true"
+        prometheus.io/port: "9882"
+        prometheus.io/path: /prom
+      labels:
+        app: ozone
+        component: datanode
+    spec:
+      containers:
+      - name: datanode
+        image: '@docker.image@'
+        args:
+        - ozone
+        - datanode
+        ports:
+        - containerPort: 9870
+          name: rpc
+        envFrom:
+        - configMapRef:
+            name: config
+        volumeMounts:
+        - name: data
+          mountPath: /data
+      initContainers: []
+      volumes:
+      - name: data
+        emptyDir: {}
 
 Review comment:
   Yes, we can.
   
   AFAIK there are two options:
    * using 
[hostPath](https://kubernetes.io/docs/concepts/storage/volumes/#hostpath)
    * or with [Local 
PersistentVolumes](https://kubernetes.io/blog/2018/04/13/local-persistent-volumes-beta/)
   
   The first one requires the knowledge of directory names on the host.
   The second one is recommended but it requires the creation of 
PersistentVolumes or install a PersistentVolume provider
   
   I am not sure what is the best approach, my current proposal is:
   
    * Use empty dir everywhere to make it easier to start simple ozone cluster
    * Provide simple option to turn on any of theses persistence (the 
kubernetes files are generated and the generation can be parametrized)
    * Document how to customize the kubernetes resources files
   
   Summary: it's question of the defaults:
    
     1. Use a complex, but persistent solution, which may not work out of the 
box   
     2. Use a simple, but ephemeral solution (as default)
   
   I started to use (2) but I am open to change.
 
----------------------------------------------------------------
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: 254346)
    Time Spent: 50m  (was: 40m)

> Provide example k8s deployment files for the new CSI server
> -----------------------------------------------------------
>
>                 Key: HDDS-1508
>                 URL: https://issues.apache.org/jira/browse/HDDS-1508
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Elek, Marton
>            Assignee: Elek, Marton
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Issue HDDS-1382 introduced a new internal CSI server. We should provide 
> example deployment files to make it easy to deploy it to any kubernetes 
> cluster.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to