inital commit for repo stucture 36/1236/1
authorKuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Mon, 22 Jul 2019 08:53:32 +0000 (01:53 -0700)
committerKuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Mon, 22 Jul 2019 08:53:32 +0000 (01:53 -0700)
Change-Id: Id65945b214a66dbd71a4d80a514632d519437fe7

28 files changed:
Makefile [new file with mode: 0644]
README.md [new file with mode: 0644]
build/build-image/README.md [new file with mode: 0644]
cmd/bpa-controller/README.md [new file with mode: 0644]
cmd/bpa-restapi-agent/README.md [new file with mode: 0644]
deploy/README.md [new file with mode: 0644]
deploy/kud-plugin-addons/README.md [new file with mode: 0644]
deploy/kud-plugin-addons/device-plugins/fpga/README.md [new file with mode: 0644]
deploy/kud-plugin-addons/device-plugins/gpu/README.md [new file with mode: 0644]
deploy/kud-plugin-addons/device-plugins/qat/README.md [new file with mode: 0644]
deploy/kud-plugin-addons/device-plugins/sriov/README.md [new file with mode: 0644]
deploy/kud-plugin-addons/nfd/how_to_nfd.md [new file with mode: 0644]
deploy/kud-plugin-addons/nfd/nfd-daemonset-combined.yaml.template [new file with mode: 0644]
deploy/kud-plugin-addons/nfd/nfd-master.yaml.template [new file with mode: 0644]
deploy/kud-plugin-addons/nfd/nfd-worker-daemonset.yaml.template [new file with mode: 0644]
deploy/kud-plugin-addons/prometheus/README.md [new file with mode: 0644]
deploy/kud-plugin-addons/rook/README.md [new file with mode: 0644]
deploy/kud/README.md [new file with mode: 0644]
deploy/metal3/README.md [new file with mode: 0644]
env/01_install_package.sh [new file with mode: 0644]
env/02_configure.sh [new file with mode: 0644]
env/03_launch_prereq.sh [new file with mode: 0644]
env/lib/common.sh [new file with mode: 0644]
env/lib/logging.sh [new file with mode: 0644]
pkg/icn.sh [new file with mode: 0644]
test/README.md [new file with mode: 0644]
tools/clean_usb_bootable.sh [new file with mode: 0644]
tools/create_usb_bootable.sh [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..cf3756c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,5 @@
+# Integrated Cloud Native
+
+Work in progress
+
+For more information refer - https://wiki.akraino.org/pages/viewpage.action?pageId=11995140
diff --git a/build/build-image/README.md b/build/build-image/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/cmd/bpa-controller/README.md b/cmd/bpa-controller/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/cmd/bpa-restapi-agent/README.md b/cmd/bpa-restapi-agent/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/deploy/README.md b/deploy/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/deploy/kud-plugin-addons/README.md b/deploy/kud-plugin-addons/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/deploy/kud-plugin-addons/device-plugins/fpga/README.md b/deploy/kud-plugin-addons/device-plugins/fpga/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/deploy/kud-plugin-addons/device-plugins/gpu/README.md b/deploy/kud-plugin-addons/device-plugins/gpu/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/deploy/kud-plugin-addons/device-plugins/qat/README.md b/deploy/kud-plugin-addons/device-plugins/qat/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/deploy/kud-plugin-addons/device-plugins/sriov/README.md b/deploy/kud-plugin-addons/device-plugins/sriov/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/deploy/kud-plugin-addons/nfd/how_to_nfd.md b/deploy/kud-plugin-addons/nfd/how_to_nfd.md
new file mode 100644 (file)
index 0000000..12b4590
--- /dev/null
@@ -0,0 +1,5 @@
+1. Installed Ubuntu 16.04, Kubeadm, Kubelet, and Kubectl on baremetal
+2. Cloned repo "https://github.com/kubernetes-sigs/node-feature-discovery.git"- git clone https://github.com/kubernetes-sigs/node-feature-discovery.git
+3. Create nfd ns - kubectl create namespace node-feature-discovery
+4. Use nfd ns - kubectl config set-context --current --namespace=node-feature-discovery
+5. Apply nfd for single baremetal server - kubectl apply -f nfd-daemonset-combined.yaml.template
diff --git a/deploy/kud-plugin-addons/nfd/nfd-daemonset-combined.yaml.template b/deploy/kud-plugin-addons/nfd/nfd-daemonset-combined.yaml.template
new file mode 100644 (file)
index 0000000..7120710
--- /dev/null
@@ -0,0 +1,104 @@
+# This template contains an example of running nfd-master and nfd-worker in the
+# same pod.
+#
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+  name: nfd-master
+  namespace: node-feature-discovery
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+  name: nfd-master
+rules:
+- apiGroups:
+  - ""
+  resources:
+  - nodes
+  verbs:
+  - get
+  - patch
+  - update
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: nfd-master
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: nfd-master
+subjects:
+- kind: ServiceAccount
+  name: nfd-master
+  namespace: node-feature-discovery
+---
+apiVersion: apps/v1
+kind: DaemonSet
+metadata:
+  labels:
+    app: nfd
+  name: nfd
+  namespace: node-feature-discovery
+spec:
+  selector:
+    matchLabels:
+      app: nfd
+  template:
+    metadata:
+      labels:
+        app: nfd
+    spec:
+      serviceAccount: nfd-master
+      hostNetwork: true
+      containers:
+        - env:
+          - name: NODE_NAME
+            valueFrom:
+              fieldRef:
+                fieldPath: spec.nodeName
+          image: quay.io/kubernetes_incubator/node-feature-discovery:v0.4.0
+          name: nfd-master
+          command:
+            - "nfd-master"
+        - env:
+          - name: NODE_NAME
+            valueFrom:
+              fieldRef:
+                fieldPath: spec.nodeName
+          image: quay.io/kubernetes_incubator/node-feature-discovery:v0.4.0
+          name: nfd-worker
+          command:
+            - "nfd-worker"
+          args:
+            - "--sleep-interval=60s"
+          volumeMounts:
+            - name: host-boot
+              mountPath: "/host-boot"
+              readOnly: true
+            - name: host-os-release
+              mountPath: "/host-etc/os-release"
+              readOnly: true
+            - name: host-sys
+              mountPath: "/host-sys"
+            - name: source-d
+              mountPath: "/etc/kubernetes/node-feature-discovery/source.d/"
+            - name: features-d
+              mountPath: "/etc/kubernetes/node-feature-discovery/features.d/"
+      volumes:
+        - name: host-boot
+          hostPath:
+            path: "/boot"
+        - name: host-os-release
+          hostPath:
+            path: "/etc/os-release"
+        - name: host-sys
+          hostPath:
+            path: "/sys"
+        - name: source-d
+          hostPath:
+            path: "/etc/kubernetes/node-feature-discovery/source.d/"
+        - name: features-d
+          hostPath:
+            path: "/etc/kubernetes/node-feature-discovery/features.d/"
diff --git a/deploy/kud-plugin-addons/nfd/nfd-master.yaml.template b/deploy/kud-plugin-addons/nfd/nfd-master.yaml.template
new file mode 100644 (file)
index 0000000..035c806
--- /dev/null
@@ -0,0 +1,110 @@
+apiVersion: v1
+kind: Namespace
+metadata:
+  name: node-feature-discovery # NFD namespace
+---
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+  name: nfd-master
+  namespace: node-feature-discovery
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+  name: nfd-master
+rules:
+- apiGroups:
+  - ""
+  resources:
+  - nodes
+  verbs:
+  - get
+  - patch
+  - update
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: nfd-master
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: nfd-master
+subjects:
+- kind: ServiceAccount
+  name: nfd-master
+  namespace: node-feature-discovery
+---
+apiVersion: apps/v1
+kind: DaemonSet
+metadata:
+  labels:
+    app: nfd-master
+  name: nfd-master
+  namespace: node-feature-discovery
+spec:
+  selector:
+    matchLabels:
+      app: nfd-master
+  template:
+    metadata:
+      labels:
+        app: nfd-master
+    spec:
+      serviceAccount: nfd-master
+      nodeSelector:
+        node-role.kubernetes.io/master: ""
+      tolerations:
+        - key: "node-role.kubernetes.io/master"
+          operator: "Equal"
+          value: ""
+          effect: "NoSchedule"
+      containers:
+        - env:
+          - name: NODE_NAME
+            valueFrom:
+              fieldRef:
+                fieldPath: spec.nodeName
+          image: quay.io/kubernetes_incubator/node-feature-discovery:v0.4.0
+          name: nfd-master
+          command:
+            - "nfd-master"
+## Enable TLS authentication
+## The example below assumes having the root certificate named ca.crt stored in
+## a ConfigMap named nfd-ca-cert, and, the TLS authentication credentials stored
+## in a TLS Secret named nfd-master-cert.
+## Additional hardening can be enabled by specifying --verify-node-name in
+## args, in which case every nfd-worker requires a individual node-specific
+## TLS certificate.
+#          args:
+#            - "--ca-file=/etc/kubernetes/node-feature-discovery/trust/ca.crt"
+#            - "--key-file=/etc/kubernetes/node-feature-discovery/certs/tls.key"
+#            - "--cert-file=/etc/kubernetes/node-feature-discovery/certs/tls.crt"
+#          volumeMounts:
+#            - name: nfd-ca-cert
+#              mountPath: "/etc/kubernetes/node-feature-discovery/trust"
+#              readOnly: true
+#            - name: nfd-master-cert
+#              mountPath: "/etc/kubernetes/node-feature-discovery/certs"
+#              readOnly: true
+#      volumes:
+#        - name: nfd-ca-cert
+#          configMap:
+#            name: nfd-ca-cert
+#        - name: nfd-master-cert
+#          secret:
+#            secretName: nfd-master-cert
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: nfd-master
+  namespace: node-feature-discovery
+spec:
+  selector:
+    app: nfd-master
+  ports:
+  - protocol: TCP
+    port: 8080
+  type: ClusterIP
diff --git a/deploy/kud-plugin-addons/nfd/nfd-worker-daemonset.yaml.template b/deploy/kud-plugin-addons/nfd/nfd-worker-daemonset.yaml.template
new file mode 100644 (file)
index 0000000..70b4861
--- /dev/null
@@ -0,0 +1,81 @@
+apiVersion: apps/v1
+kind: DaemonSet
+metadata:
+  labels:
+    app: nfd-worker
+  name: nfd-worker
+  namespace: node-feature-discovery
+spec:
+  selector:
+    matchLabels:
+      app: nfd-worker
+  template:
+    metadata:
+      labels:
+        app: nfd-worker
+    spec:
+      hostNetwork: true
+      dnsPolicy: ClusterFirstWithHostNet
+      containers:
+        - env:
+          - name: NODE_NAME
+            valueFrom:
+              fieldRef:
+                fieldPath: spec.nodeName
+          image: quay.io/kubernetes_incubator/node-feature-discovery:v0.4.0
+          name: nfd-worker
+          command:
+            - "nfd-worker"
+          args:
+            - "--sleep-interval=60s"
+            - "--server=nfd-master:8080"
+## Enable TLS authentication (1/3)
+## The example below assumes having the root certificate named ca.crt stored in
+## a ConfigMap named nfd-ca-cert, and, the TLS authentication credentials stored
+## in a TLS Secret named nfd-worker-cert
+#            - "--ca-file=/etc/kubernetes/node-feature-discovery/trust/ca.crt"
+#            - "--key-file=/etc/kubernetes/node-feature-discovery/certs/tls.key"
+#            - "--cert-file=/etc/kubernetes/node-feature-discovery/certs/tls.crt"
+          volumeMounts:
+            - name: host-boot
+              mountPath: "/host-boot"
+              readOnly: true
+            - name: host-os-release
+              mountPath: "/host-etc/os-release"
+              readOnly: true
+            - name: host-sys
+              mountPath: "/host-sys"
+            - name: source-d
+              mountPath: "/etc/kubernetes/node-feature-discovery/source.d/"
+            - name: features-d
+              mountPath: "/etc/kubernetes/node-feature-discovery/features.d/"
+## Enable TLS authentication (2/3)
+#            - name: nfd-ca-cert
+#              mountPath: "/etc/kubernetes/node-feature-discovery/trust"
+#              readOnly: true
+#            - name: nfd-worker-cert
+#              mountPath: "/etc/kubernetes/node-feature-discovery/certs"
+#              readOnly: true
+      volumes:
+        - name: host-boot
+          hostPath:
+            path: "/boot"
+        - name: host-os-release
+          hostPath:
+            path: "/etc/os-release"
+        - name: host-sys
+          hostPath:
+            path: "/sys"
+        - name: source-d
+          hostPath:
+            path: "/etc/kubernetes/node-feature-discovery/source.d/"
+        - name: features-d
+          hostPath:
+            path: "/etc/kubernetes/node-feature-discovery/features.d/"
+## Enable TLS authentication (3/3)
+#        - name: nfd-ca-cert
+#          configMap:
+#            name: nfd-ca-cert
+#        - name: nfd-worker-cert
+#          secret:
+#            secretName: nfd-worker-cert
diff --git a/deploy/kud-plugin-addons/prometheus/README.md b/deploy/kud-plugin-addons/prometheus/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/deploy/kud-plugin-addons/rook/README.md b/deploy/kud-plugin-addons/rook/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/deploy/kud/README.md b/deploy/kud/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/deploy/metal3/README.md b/deploy/metal3/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/env/01_install_package.sh b/env/01_install_package.sh
new file mode 100644 (file)
index 0000000..3e369c3
--- /dev/null
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+set -ex
+
+
diff --git a/env/02_configure.sh b/env/02_configure.sh
new file mode 100644 (file)
index 0000000..c1ddb47
--- /dev/null
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+set -xe
diff --git a/env/03_launch_prereq.sh b/env/03_launch_prereq.sh
new file mode 100644 (file)
index 0000000..d2577bb
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+set -xe
diff --git a/env/lib/common.sh b/env/lib/common.sh
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/env/lib/logging.sh b/env/lib/logging.sh
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/pkg/icn.sh b/pkg/icn.sh
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/test/README.md b/test/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tools/clean_usb_bootable.sh b/tools/clean_usb_bootable.sh
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tools/create_usb_bootable.sh b/tools/create_usb_bootable.sh
new file mode 100644 (file)
index 0000000..e69de29