{"@attributes":{"version":"2.0"},"channel":{"title":" \u2013 Documentation","link":"https:\/\/docs.storageos.com\/docs\/","description":"Recent content in Documentation on ","generator":"Hugo -- gohugo.io","item":[{"title":"Docs: Install","link":"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/install\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/install\/","description":"\n        \n        \n        <p>To install the operator follow the installation page for your orchestrator.<\/p>\n<ol>\n<li><a href=\"https:\/\/docs.storageos.com\/docs\/install\/kubernetes\/\">Kubernetes<\/a><\/li>\n<li><a href=\"https:\/\/docs.storageos.com\/docs\/install\/rancher\/\">Rancher<\/a><\/li>\n<li><a href=\"https:\/\/docs.storageos.com\/docs\/install\/openshift\/\">OpenShift<\/a><\/li>\n<\/ol>\n\n      "},{"title":"Docs: Kubernetes","link":"https:\/\/docs.storageos.com\/docs\/install\/kubernetes\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/install\/kubernetes\/","description":"\n        \n        \n        <blockquote>\n<p>Make sure the\n<a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/\">prerequisites for StorageOS<\/a> are\nsatisfied before proceeding.<\/p>\n<\/blockquote>\n<blockquote>\n<p>Any Kubernetes managed service such as EKS, AKS, GKE, DO or DockerEE\nplatform can use the following Kubernetes guide to install StorageOS.<\/p>\n<\/blockquote>\n<blockquote>\n<p>StorageOS supports the five most recent Kubernetes releases, at minimum.<\/p>\n<\/blockquote>\n<blockquote>\n<p>Make sure to add a StorageOS licence after installing.<\/p>\n<\/blockquote>\n<p>\u00a0<\/p>\n<nav>\n\t<div class=\"nav nav-tabs\" id=\"nav-tab\" role=\"tablist\">\n\n\t\t\n\t\t\n\t\t\n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link active\" id=\"nav-1\" data-toggle=\"tab\" href=\"#k8s-121\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"true\">1.21<\/a>\n\n            \n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link\" id=\"nav-1\" data-toggle=\"tab\" href=\"#k8s-120\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"false\">1.20<\/a>\n\n            \n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link\" id=\"nav-1\" data-toggle=\"tab\" href=\"#k8s-119\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"false\">1.19<\/a>\n\n            \n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link\" id=\"nav-1\" data-toggle=\"tab\" href=\"#k8s-118\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"false\">1.18<\/a>\n\n            \n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link\" id=\"nav-1\" data-toggle=\"tab\" href=\"#k8s-117\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"false\">1.17<\/a>\n\n            \n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link\" id=\"nav-1\" data-toggle=\"tab\" href=\"#k8s\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"false\"><\/a>\n\n            \n\t\t\n\n\t<\/div>\n<\/nav>\n\n<div class=\"tab-content\" id=\"1\">\n    <br><\/br>\n\n\n\n\n\n\n\n\n<div class=\"tab-pane fade show active\" id=\"k8s-121\" role=\"tabpanel\" aria-labelledby=\"nav-\">\n    <h1 id=\"install-storageos-on-kubernetes-121\">Install StorageOS on Kubernetes 1.21<\/h1>\n<p>The StorageOS Cluster Operator is a <a href=\"https:\/\/kubernetes.io\/docs\/concepts\/extend-kubernetes\/extend-cluster\/\">Kubernetes native\napplication<\/a>\ndeveloped to deploy and configure StorageOS clusters, and assist with\nmaintenance operations. We recommend its use for standard installations.<\/p>\n<p>The operator is a Kubernetes controller that watches the <code>StorageOSCluster<\/code>\nCRD. Once the controller is ready, a StorageOS cluster definition can be\ncreated. The operator will deploy a StorageOS cluster based on the\nconfiguration specified in the cluster definition.<\/p>\n<p>\u00a0<\/p>\n<p><strong>Helm Note:<\/strong> If you want to use <a href=\"https:\/\/helm.sh\/docs\/\">Helm<\/a> to install StorageOS, follow\nthe <a href=\"https:\/\/github.com\/storageos\/charts\/tree\/master\/stable\/storageos-operator#installing-the-chart\">StorageOS Operator Helm\nChart<\/a>\ndocumentation.<\/p>\n<h2 id=\"__steps-to-install-storageos__\"><strong>Steps to install StorageOS:<\/strong><\/h2>\n<ul>\n<li><a href=\"#1-install-storageos-operator\">Install StorageOS Operator<\/a><\/li>\n<li><a href=\"#2-create-a-secret\">Create a Secret for default username and password<\/a><\/li>\n<li><a href=\"#3-trigger-a-storageos-installation\">Trigger bootstrap using a CustomResource<\/a><\/li>\n<li><a href=\"#4-license-cluster\">Apply StorageOS licence<\/a><\/li>\n<\/ul>\n<h2 id=\"1-install-storageos-operator\">1. Install StorageOS operator<\/h2>\n<p>Install the StorageOS Cluster Operator using the following yaml manifest.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl create -f https:\/\/github.com\/storageos\/cluster-operator\/releases\/download\/v2.4.4\/storageos-operator.yaml\n<\/code><\/pre><\/div><h3 id=\"verify-the-cluster-operator-pod-status\">Verify the Cluster Operator Pod Status<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># kubectl -n storageos-operator get pod<\/span>\nNAME                                         READY     STATUS    RESTARTS   AGE\nstorageoscluster-operator-68678798ff-f28zw   1\/1       Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The READY 1\/1 indicates that <code>storageoscluster<\/code> resources can be created.<\/p>\n<\/blockquote>\n<h2 id=\"2-create-a-secret\">2. Create a Secret<\/h2>\n<p>Before deploying a StorageOS cluster, create a Secret defining the StorageOS\nAPI Username and Password in base64 encoding.\nThe API username and password are used to create the default StorageOS admin\naccount which can be used with the StorageOS CLI and to login to the StorageOS\nGUI. The CSI credentials are used to register the CSI accounts, so Kubernetes\nand StorageOS communicate over an authenticated API.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: v1\nkind: Secret\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\n  labels:\n    app: <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span>\ntype: <span style=\"color:#4e9a06\">&#34;kubernetes.io\/storageos&#34;<\/span>\ndata:\n  <span style=\"color:#8f5902;font-style:italic\"># echo -n &#39;&lt;secret&gt;&#39; | base64<\/span>\n  apiUsername: c3RvcmFnZW9z\n  apiPassword: c3RvcmFnZW9z\n  <span style=\"color:#8f5902;font-style:italic\"># CSI Credentials<\/span>\n  csiProvisionUsername: c3RvcmFnZW9z\n  csiProvisionPassword: c3RvcmFnZW9z\n  csiControllerPublishUsername: c3RvcmFnZW9z\n  csiControllerPublishPassword: c3RvcmFnZW9z\n  csiNodePublishUsername: c3RvcmFnZW9z\n  csiNodePublishPassword: c3RvcmFnZW9z\n  csiControllerExpandUsername: c3RvcmFnZW9z\n  csiControllerExpandPassword: c3RvcmFnZW9z\n<\/code><\/pre><\/div><p>This example contains a default password, for production installations, use a\nunique, strong password.<\/p>\n<blockquote>\n<p>You can define a base64 value by <code>echo -n &quot;mystring&quot; | base64<\/code>.<\/p>\n<\/blockquote>\n<blockquote>\n<p>Make sure that the encoding of the credentials doesn&rsquo;t have special characters such as &lsquo;\\n&rsquo;.\nThe <code>echo -n<\/code> ensures that a trailing new line is not appended to the string.<\/p>\n<\/blockquote>\n<blockquote>\n<p>If you wish to change the default accounts details post-install please see <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/users#altering-the-storageos-api-account\">Managing\nUsers<\/a><\/p>\n<\/blockquote>\n<h2 id=\"3-trigger-a-storageos-installation\">3 Trigger a StorageOS installation<\/h2>\n<nav>\n    <div class=\"nav nav-tabs\" id=\"nav-platforms-1-21\" role=\"tablist\">\n    <br><\/br><a class=\"nav-item nav-link active\" id=\"nav-1-21-upstream\"\n            data-toggle=\"tab\" href=\"#upstream-1-21\" role=\"tab\"\n            aria-controls=\"nav-home\" aria-selected=\"true\">\n            upstream\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-21-upstream-eks\" data-toggle=\"tab\"\n            href=\"#eks-1-21\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            eks\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-21-upstream-eks-aks\" data-toggle=\"tab\"\n            href=\"#aks-1-21\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            aks\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-21-upstream-eks-aks-gke\" data-toggle=\"tab\"\n            href=\"#gke-1-21\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            gke\n        <\/a><\/div>\n<\/nav>\n<div class=\"tab-content\" id=\"1-21-upstream-eks-aks-gke\">\n    <br><\/br><div class=\"tab-pane fade show active\" id=\"upstream-1-21\" role=\"tabpanel\" aria-labelledby=\"nav-upstream\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;upstream&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"eks-1-21\" role=\"tabpanel\" aria-labelledby=\"nav-eks\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;eks&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"aks-1-21\" role=\"tabpanel\" aria-labelledby=\"nav-aks\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;aks&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"gke-1-21\" role=\"tabpanel\" aria-labelledby=\"nav-gke\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;gke&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><\/div>\n<blockquote>\n<p>Additional <code>spec<\/code> parameters are available on the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\/\">Cluster Operator\nconfiguration<\/a>\npage.<\/p>\n<\/blockquote>\n<blockquote>\n<p>You can find more examples such as deployments referencing a external etcd kv\nstore for StorageOS in the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/examples\/\">Cluster Operator examples<\/a> page.<\/p>\n<\/blockquote>\n<h3 id=\"verify-storageos-installation\">Verify StorageOS Installation<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># kubectl -n kube-system get pods -w<\/span>\nNAME                                    READY   STATUS    RESTARTS   AGE\nstorageos-csi-helper-5cf59b5b4-f5nwr    2\/2     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-75f6c               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-czbqx               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-zv4tq               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-scheduler-6d67b46f67-5c46j    1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The above command watches the Pods created by the Cluster Definition example.\nNote that pods typically take approximately 65 seconds to enter the Running\nPhase.<\/p>\n<\/blockquote>\n<h2 id=\"4-license-cluster\">4. License cluster<\/h2>\n<p>Newly installed StorageOS clusters must be licensed within 24 hours. Our\ndeveloper license is free, and supports up to 5TiB of provisioned storage.<\/p>\n<p>To obtain a license, follow the instructions on our <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/licensing\/\">licensing operations\n<\/a> page.<\/p>\n\n<\/div>\n\n\n\n\n\n\n\n\n\n\n<div class=\"tab-pane fade\" id=\"k8s-120\" role=\"tabpanel\" aria-labelledby=\"nav-\">\n    <h1 id=\"install-storageos-on-kubernetes-120\">Install StorageOS on Kubernetes 1.20<\/h1>\n<p>The StorageOS Cluster Operator is a <a href=\"https:\/\/kubernetes.io\/docs\/concepts\/extend-kubernetes\/extend-cluster\/\">Kubernetes native\napplication<\/a>\ndeveloped to deploy and configure StorageOS clusters, and assist with\nmaintenance operations. We recommend its use for standard installations.<\/p>\n<p>The operator is a Kubernetes controller that watches the <code>StorageOSCluster<\/code>\nCRD. Once the controller is ready, a StorageOS cluster definition can be\ncreated. The operator will deploy a StorageOS cluster based on the\nconfiguration specified in the cluster definition.<\/p>\n<p>\u00a0<\/p>\n<p><strong>Helm Note:<\/strong> If you want to use <a href=\"https:\/\/helm.sh\/docs\/\">Helm<\/a> to install StorageOS, follow\nthe <a href=\"https:\/\/github.com\/storageos\/charts\/tree\/master\/stable\/storageos-operator#installing-the-chart\">StorageOS Operator Helm\nChart<\/a>\ndocumentation.<\/p>\n<h2 id=\"__steps-to-install-storageos__\"><strong>Steps to install StorageOS:<\/strong><\/h2>\n<ul>\n<li><a href=\"#1-install-storageos-operator\">Install StorageOS Operator<\/a><\/li>\n<li><a href=\"#2-create-a-secret\">Create a Secret for default username and password<\/a><\/li>\n<li><a href=\"#3-trigger-a-storageos-installation\">Trigger bootstrap using a CustomResource<\/a><\/li>\n<li><a href=\"#4-license-cluster\">Apply StorageOS licence<\/a><\/li>\n<\/ul>\n<h2 id=\"1-install-storageos-operator\">1. Install StorageOS operator<\/h2>\n<p>Install the StorageOS Cluster Operator using the following yaml manifest.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl create -f https:\/\/github.com\/storageos\/cluster-operator\/releases\/download\/v2.4.4\/storageos-operator.yaml\n<\/code><\/pre><\/div><h3 id=\"verify-the-cluster-operator-pod-status\">Verify the Cluster Operator Pod Status<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># kubectl -n storageos-operator get pod<\/span>\nNAME                                         READY     STATUS    RESTARTS   AGE\nstorageoscluster-operator-68678798ff-f28zw   1\/1       Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The READY 1\/1 indicates that <code>storageoscluster<\/code> resources can be created.<\/p>\n<\/blockquote>\n<h2 id=\"2-create-a-secret\">2. Create a Secret<\/h2>\n<p>Before deploying a StorageOS cluster, create a Secret defining the StorageOS\nAPI Username and Password in base64 encoding.\nThe API username and password are used to create the default StorageOS admin\naccount which can be used with the StorageOS CLI and to login to the StorageOS\nGUI. The CSI credentials are used to register the CSI accounts, so Kubernetes\nand StorageOS communicate over an authenticated API.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: v1\nkind: Secret\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\n  labels:\n    app: <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span>\ntype: <span style=\"color:#4e9a06\">&#34;kubernetes.io\/storageos&#34;<\/span>\ndata:\n  <span style=\"color:#8f5902;font-style:italic\"># echo -n &#39;&lt;secret&gt;&#39; | base64<\/span>\n  apiUsername: c3RvcmFnZW9z\n  apiPassword: c3RvcmFnZW9z\n  <span style=\"color:#8f5902;font-style:italic\"># CSI Credentials<\/span>\n  csiProvisionUsername: c3RvcmFnZW9z\n  csiProvisionPassword: c3RvcmFnZW9z\n  csiControllerPublishUsername: c3RvcmFnZW9z\n  csiControllerPublishPassword: c3RvcmFnZW9z\n  csiNodePublishUsername: c3RvcmFnZW9z\n  csiNodePublishPassword: c3RvcmFnZW9z\n  csiControllerExpandUsername: c3RvcmFnZW9z\n  csiControllerExpandPassword: c3RvcmFnZW9z\n<\/code><\/pre><\/div><p>This example contains a default password, for production installations, use a\nunique, strong password.<\/p>\n<blockquote>\n<p>You can define a base64 value by <code>echo -n &quot;mystring&quot; | base64<\/code>.<\/p>\n<\/blockquote>\n<blockquote>\n<p>Make sure that the encoding of the credentials doesn&rsquo;t have special characters such as &lsquo;\\n&rsquo;.\nThe <code>echo -n<\/code> ensures that a trailing new line is not appended to the string.<\/p>\n<\/blockquote>\n<blockquote>\n<p>If you wish to change the default accounts details post-install please see <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/users#altering-the-storageos-api-account\">Managing\nUsers<\/a><\/p>\n<\/blockquote>\n<h2 id=\"3-trigger-a-storageos-installation\">3 Trigger a StorageOS installation<\/h2>\n<nav>\n    <div class=\"nav nav-tabs\" id=\"nav-platforms-1-20\" role=\"tablist\">\n    <br><\/br><a class=\"nav-item nav-link active\" id=\"nav-1-20-upstream\"\n            data-toggle=\"tab\" href=\"#upstream-1-20\" role=\"tab\"\n            aria-controls=\"nav-home\" aria-selected=\"true\">\n            upstream\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-20-upstream-eks\" data-toggle=\"tab\"\n            href=\"#eks-1-20\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            eks\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-20-upstream-eks-aks\" data-toggle=\"tab\"\n            href=\"#aks-1-20\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            aks\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-20-upstream-eks-aks-gke\" data-toggle=\"tab\"\n            href=\"#gke-1-20\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            gke\n        <\/a><\/div>\n<\/nav>\n<div class=\"tab-content\" id=\"1-20-upstream-eks-aks-gke\">\n    <br><\/br><div class=\"tab-pane fade show active\" id=\"upstream-1-20\" role=\"tabpanel\" aria-labelledby=\"nav-upstream\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;upstream&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"eks-1-20\" role=\"tabpanel\" aria-labelledby=\"nav-eks\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;eks&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"aks-1-20\" role=\"tabpanel\" aria-labelledby=\"nav-aks\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;aks&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"gke-1-20\" role=\"tabpanel\" aria-labelledby=\"nav-gke\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;gke&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><\/div>\n<blockquote>\n<p>Additional <code>spec<\/code> parameters are available on the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\/\">Cluster Operator\nconfiguration<\/a>\npage.<\/p>\n<\/blockquote>\n<blockquote>\n<p>You can find more examples such as deployments referencing a external etcd kv\nstore for StorageOS in the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/examples\/\">Cluster Operator examples<\/a> page.<\/p>\n<\/blockquote>\n<h3 id=\"verify-storageos-installation\">Verify StorageOS Installation<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># kubectl -n kube-system get pods -w<\/span>\nNAME                                    READY   STATUS    RESTARTS   AGE\nstorageos-csi-helper-5cf59b5b4-f5nwr    2\/2     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-75f6c               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-czbqx               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-zv4tq               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-scheduler-6d67b46f67-5c46j    1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The above command watches the Pods created by the Cluster Definition example.\nNote that pods typically take approximately 65 seconds to enter the Running\nPhase.<\/p>\n<\/blockquote>\n<h2 id=\"4-license-cluster\">4. License cluster<\/h2>\n<p>Newly installed StorageOS clusters must be licensed within 24 hours. Our\ndeveloper license is free, and supports up to 5TiB of provisioned storage.<\/p>\n<p>To obtain a license, follow the instructions on our <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/licensing\/\">licensing operations\n<\/a> page.<\/p>\n\n<\/div>\n\n\n\n\n\n\n\n\n\n<div class=\"tab-pane fade\" id=\"k8s-119\" role=\"tabpanel\" aria-labelledby=\"nav-\">\n    <h1 id=\"install-storageos-on-kubernetes-119\">Install StorageOS on Kubernetes 1.19<\/h1>\n<p>The StorageOS Cluster Operator is a <a href=\"https:\/\/kubernetes.io\/docs\/concepts\/extend-kubernetes\/extend-cluster\/\">Kubernetes native\napplication<\/a>\ndeveloped to deploy and configure StorageOS clusters, and assist with\nmaintenance operations. We recommend its use for standard installations.<\/p>\n<p>The operator is a Kubernetes controller that watches the <code>StorageOSCluster<\/code>\nCRD. Once the controller is ready, a StorageOS cluster definition can be\ncreated. The operator will deploy a StorageOS cluster based on the\nconfiguration specified in the cluster definition.<\/p>\n<p>\u00a0<\/p>\n<p><strong>Helm Note:<\/strong> If you want to use <a href=\"https:\/\/helm.sh\/docs\/\">Helm<\/a> to install StorageOS, follow\nthe <a href=\"https:\/\/github.com\/storageos\/charts\/tree\/master\/stable\/storageos-operator#installing-the-chart\">StorageOS Operator Helm\nChart<\/a>\ndocumentation.<\/p>\n<h2 id=\"__steps-to-install-storageos__\"><strong>Steps to install StorageOS:<\/strong><\/h2>\n<ul>\n<li><a href=\"#1-install-storageos-operator\">Install StorageOS Operator<\/a><\/li>\n<li><a href=\"#2-create-a-secret\">Create a Secret for default username and password<\/a><\/li>\n<li><a href=\"#3-trigger-a-storageos-installation\">Trigger bootstrap using a CustomResource<\/a><\/li>\n<li><a href=\"#4-license-cluster\">Apply StorageOS licence<\/a><\/li>\n<\/ul>\n<h2 id=\"1-install-storageos-operator\">1. Install StorageOS operator<\/h2>\n<p>Install the StorageOS Cluster Operator using the following yaml manifest.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl create -f https:\/\/github.com\/storageos\/cluster-operator\/releases\/download\/v2.4.4\/storageos-operator.yaml\n<\/code><\/pre><\/div><h3 id=\"verify-the-cluster-operator-pod-status\">Verify the Cluster Operator Pod Status<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># kubectl -n storageos-operator get pod<\/span>\nNAME                                         READY     STATUS    RESTARTS   AGE\nstorageoscluster-operator-68678798ff-f28zw   1\/1       Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The READY 1\/1 indicates that <code>storageoscluster<\/code> resources can be created.<\/p>\n<\/blockquote>\n<h2 id=\"2-create-a-secret\">2. Create a Secret<\/h2>\n<p>Before deploying a StorageOS cluster, create a Secret defining the StorageOS\nAPI Username and Password in base64 encoding.\nThe API username and password are used to create the default StorageOS admin\naccount which can be used with the StorageOS CLI and to login to the StorageOS\nGUI. The CSI credentials are used to register the CSI accounts, so Kubernetes\nand StorageOS communicate over an authenticated API.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: v1\nkind: Secret\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\n  labels:\n    app: <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span>\ntype: <span style=\"color:#4e9a06\">&#34;kubernetes.io\/storageos&#34;<\/span>\ndata:\n  <span style=\"color:#8f5902;font-style:italic\"># echo -n &#39;&lt;secret&gt;&#39; | base64<\/span>\n  apiUsername: c3RvcmFnZW9z\n  apiPassword: c3RvcmFnZW9z\n  <span style=\"color:#8f5902;font-style:italic\"># CSI Credentials<\/span>\n  csiProvisionUsername: c3RvcmFnZW9z\n  csiProvisionPassword: c3RvcmFnZW9z\n  csiControllerPublishUsername: c3RvcmFnZW9z\n  csiControllerPublishPassword: c3RvcmFnZW9z\n  csiNodePublishUsername: c3RvcmFnZW9z\n  csiNodePublishPassword: c3RvcmFnZW9z\n  csiControllerExpandUsername: c3RvcmFnZW9z\n  csiControllerExpandPassword: c3RvcmFnZW9z\n<\/code><\/pre><\/div><p>This example contains a default password, for production installations, use a\nunique, strong password.<\/p>\n<blockquote>\n<p>You can define a base64 value by <code>echo -n &quot;mystring&quot; | base64<\/code>.<\/p>\n<\/blockquote>\n<blockquote>\n<p>Make sure that the encoding of the credentials doesn&rsquo;t have special characters such as &lsquo;\\n&rsquo;.\nThe <code>echo -n<\/code> ensures that a trailing new line is not appended to the string.<\/p>\n<\/blockquote>\n<blockquote>\n<p>If you wish to change the default accounts details post-install please see <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/users#altering-the-storageos-api-account\">Managing\nUsers<\/a><\/p>\n<\/blockquote>\n<h2 id=\"3-trigger-a-storageos-installation\">3 Trigger a StorageOS installation<\/h2>\n<nav>\n    <div class=\"nav nav-tabs\" id=\"nav-platforms-1-19\" role=\"tablist\">\n    <br><\/br><a class=\"nav-item nav-link active\" id=\"nav-1-19-upstream\"\n            data-toggle=\"tab\" href=\"#upstream-1-19\" role=\"tab\"\n            aria-controls=\"nav-home\" aria-selected=\"true\">\n            upstream\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-19-upstream-eks\" data-toggle=\"tab\"\n            href=\"#eks-1-19\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            eks\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-19-upstream-eks-aks\" data-toggle=\"tab\"\n            href=\"#aks-1-19\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            aks\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-19-upstream-eks-aks-gke\" data-toggle=\"tab\"\n            href=\"#gke-1-19\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            gke\n        <\/a><\/div>\n<\/nav>\n<div class=\"tab-content\" id=\"1-19-upstream-eks-aks-gke\">\n    <br><\/br><div class=\"tab-pane fade show active\" id=\"upstream-1-19\" role=\"tabpanel\" aria-labelledby=\"nav-upstream\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;upstream&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"eks-1-19\" role=\"tabpanel\" aria-labelledby=\"nav-eks\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;eks&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"aks-1-19\" role=\"tabpanel\" aria-labelledby=\"nav-aks\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;aks&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"gke-1-19\" role=\"tabpanel\" aria-labelledby=\"nav-gke\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;gke&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><\/div>\n<blockquote>\n<p>Additional <code>spec<\/code> parameters are available on the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\/\">Cluster Operator\nconfiguration<\/a>\npage.<\/p>\n<\/blockquote>\n<blockquote>\n<p>You can find more examples such as deployments referencing a external etcd kv\nstore for StorageOS in the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/examples\/\">Cluster Operator examples<\/a> page.<\/p>\n<\/blockquote>\n<h3 id=\"verify-storageos-installation\">Verify StorageOS Installation<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># kubectl -n kube-system get pods -w<\/span>\nNAME                                    READY   STATUS    RESTARTS   AGE\nstorageos-csi-helper-5cf59b5b4-f5nwr    2\/2     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-75f6c               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-czbqx               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-zv4tq               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-scheduler-6d67b46f67-5c46j    1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The above command watches the Pods created by the Cluster Definition example.\nNote that pods typically take approximately 65 seconds to enter the Running\nPhase.<\/p>\n<\/blockquote>\n<h2 id=\"4-license-cluster\">4. License cluster<\/h2>\n<p>Newly installed StorageOS clusters must be licensed within 24 hours. Our\ndeveloper license is free, and supports up to 5TiB of provisioned storage.<\/p>\n<p>To obtain a license, follow the instructions on our <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/licensing\/\">licensing operations\n<\/a> page.<\/p>\n\n<\/div>\n\n\n\n\n\n\n\n\n\n\n<div class=\"tab-pane fade\" id=\"k8s-118\" role=\"tabpanel\" aria-labelledby=\"nav-\">\n    <h1 id=\"install-storageos-on-kubernetes-118\">Install StorageOS on Kubernetes 1.18<\/h1>\n<p>The StorageOS Cluster Operator is a <a href=\"https:\/\/kubernetes.io\/docs\/concepts\/extend-kubernetes\/extend-cluster\/\">Kubernetes native\napplication<\/a>\ndeveloped to deploy and configure StorageOS clusters, and assist with\nmaintenance operations. We recommend its use for standard installations.<\/p>\n<p>The operator is a Kubernetes controller that watches the <code>StorageOSCluster<\/code>\nCRD. Once the controller is ready, a StorageOS cluster definition can be\ncreated. The operator will deploy a StorageOS cluster based on the\nconfiguration specified in the cluster definition.<\/p>\n<p>\u00a0<\/p>\n<p><strong>Helm Note:<\/strong> If you want to use <a href=\"https:\/\/helm.sh\/docs\/\">Helm<\/a> to install StorageOS, follow\nthe <a href=\"https:\/\/github.com\/storageos\/charts\/tree\/master\/stable\/storageos-operator#installing-the-chart\">StorageOS Operator Helm\nChart<\/a>\ndocumentation.<\/p>\n<h2 id=\"__steps-to-install-storageos__\"><strong>Steps to install StorageOS:<\/strong><\/h2>\n<ul>\n<li><a href=\"#1-install-storageos-operator\">Install StorageOS Operator<\/a><\/li>\n<li><a href=\"#2-create-a-secret\">Create a Secret for default username and password<\/a><\/li>\n<li><a href=\"#3-trigger-a-storageos-installation\">Trigger bootstrap using a CustomResource<\/a><\/li>\n<li><a href=\"#4-license-cluster\">Apply StorageOS licence<\/a><\/li>\n<\/ul>\n<h2 id=\"1-install-storageos-operator\">1. Install StorageOS operator<\/h2>\n<p>Install the StorageOS Cluster Operator using the following yaml manifest.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl create -f https:\/\/github.com\/storageos\/cluster-operator\/releases\/download\/v2.4.4\/storageos-operator.yaml\n<\/code><\/pre><\/div><h3 id=\"verify-the-cluster-operator-pod-status\">Verify the Cluster Operator Pod Status<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># kubectl -n storageos-operator get pod<\/span>\nNAME                                         READY     STATUS    RESTARTS   AGE\nstorageoscluster-operator-68678798ff-f28zw   1\/1       Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The READY 1\/1 indicates that <code>storageoscluster<\/code> resources can be created.<\/p>\n<\/blockquote>\n<h2 id=\"2-create-a-secret\">2. Create a Secret<\/h2>\n<p>Before deploying a StorageOS cluster, create a Secret defining the StorageOS\nAPI Username and Password in base64 encoding.\nThe API username and password are used to create the default StorageOS admin\naccount which can be used with the StorageOS CLI and to login to the StorageOS\nGUI. The CSI credentials are used to register the CSI accounts, so Kubernetes\nand StorageOS communicate over an authenticated API.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: v1\nkind: Secret\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\n  labels:\n    app: <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span>\ntype: <span style=\"color:#4e9a06\">&#34;kubernetes.io\/storageos&#34;<\/span>\ndata:\n  <span style=\"color:#8f5902;font-style:italic\"># echo -n &#39;&lt;secret&gt;&#39; | base64<\/span>\n  apiUsername: c3RvcmFnZW9z\n  apiPassword: c3RvcmFnZW9z\n  <span style=\"color:#8f5902;font-style:italic\"># CSI Credentials<\/span>\n  csiProvisionUsername: c3RvcmFnZW9z\n  csiProvisionPassword: c3RvcmFnZW9z\n  csiControllerPublishUsername: c3RvcmFnZW9z\n  csiControllerPublishPassword: c3RvcmFnZW9z\n  csiNodePublishUsername: c3RvcmFnZW9z\n  csiNodePublishPassword: c3RvcmFnZW9z\n  csiControllerExpandUsername: c3RvcmFnZW9z\n  csiControllerExpandPassword: c3RvcmFnZW9z\n<\/code><\/pre><\/div><p>This example contains a default password, for production installations, use a\nunique, strong password.<\/p>\n<blockquote>\n<p>You can define a base64 value by <code>echo -n &quot;mystring&quot; | base64<\/code>.<\/p>\n<\/blockquote>\n<blockquote>\n<p>Make sure that the encoding of the credentials doesn&rsquo;t have special characters such as &lsquo;\\n&rsquo;.\nThe <code>echo -n<\/code> ensures that a trailing new line is not appended to the string.<\/p>\n<\/blockquote>\n<blockquote>\n<p>If you wish to change the default accounts details post-install please see <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/users#altering-the-storageos-api-account\">Managing\nUsers<\/a><\/p>\n<\/blockquote>\n<h2 id=\"3-trigger-a-storageos-installation\">3 Trigger a StorageOS installation<\/h2>\n<nav>\n    <div class=\"nav nav-tabs\" id=\"nav-platforms-1-18\" role=\"tablist\">\n    <br><\/br><a class=\"nav-item nav-link active\" id=\"nav-1-18-upstream\"\n            data-toggle=\"tab\" href=\"#upstream-1-18\" role=\"tab\"\n            aria-controls=\"nav-home\" aria-selected=\"true\">\n            upstream\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-18-upstream-eks\" data-toggle=\"tab\"\n            href=\"#eks-1-18\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            eks\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-18-upstream-eks-aks\" data-toggle=\"tab\"\n            href=\"#aks-1-18\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            aks\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-18-upstream-eks-aks-gke\" data-toggle=\"tab\"\n            href=\"#gke-1-18\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            gke\n        <\/a><\/div>\n<\/nav>\n<div class=\"tab-content\" id=\"1-18-upstream-eks-aks-gke\">\n    <br><\/br><div class=\"tab-pane fade show active\" id=\"upstream-1-18\" role=\"tabpanel\" aria-labelledby=\"nav-upstream\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;upstream&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"eks-1-18\" role=\"tabpanel\" aria-labelledby=\"nav-eks\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;eks&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"aks-1-18\" role=\"tabpanel\" aria-labelledby=\"nav-aks\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;aks&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"gke-1-18\" role=\"tabpanel\" aria-labelledby=\"nav-gke\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;gke&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><\/div>\n<blockquote>\n<p>Additional <code>spec<\/code> parameters are available on the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\/\">Cluster Operator\nconfiguration<\/a>\npage.<\/p>\n<\/blockquote>\n<blockquote>\n<p>You can find more examples such as deployments referencing a external etcd kv\nstore for StorageOS in the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/examples\/\">Cluster Operator examples<\/a> page.<\/p>\n<\/blockquote>\n<h3 id=\"verify-storageos-installation\">Verify StorageOS Installation<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># kubectl -n kube-system get pods -w<\/span>\nNAME                                    READY   STATUS    RESTARTS   AGE\nstorageos-csi-helper-5cf59b5b4-f5nwr    2\/2     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-75f6c               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-czbqx               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-zv4tq               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-scheduler-6d67b46f67-5c46j    1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The above command watches the Pods created by the Cluster Definition example.\nNote that pods typically take approximately 65 seconds to enter the Running\nPhase.<\/p>\n<\/blockquote>\n<h2 id=\"4-license-cluster\">4. License cluster<\/h2>\n<p>Newly installed StorageOS clusters must be licensed within 24 hours. Our\ndeveloper license is free, and supports up to 5TiB of provisioned storage.<\/p>\n<p>To obtain a license, follow the instructions on our <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/licensing\/\">licensing operations\n<\/a> page.<\/p>\n\n<\/div>\n\n\n\n\n\n\n\n\n\n\n<div class=\"tab-pane fade\" id=\"k8s-117\" role=\"tabpanel\" aria-labelledby=\"nav-\">\n    <h1 id=\"install-storageos-on-kubernetes-117\">Install StorageOS on Kubernetes 1.17<\/h1>\n<p>The StorageOS Cluster Operator is a <a href=\"https:\/\/kubernetes.io\/docs\/concepts\/extend-kubernetes\/extend-cluster\/\">Kubernetes native\napplication<\/a>\ndeveloped to deploy and configure StorageOS clusters, and assist with\nmaintenance operations. We recommend its use for standard installations.<\/p>\n<p>The operator is a Kubernetes controller that watches the <code>StorageOSCluster<\/code>\nCRD. Once the controller is ready, a StorageOS cluster definition can be\ncreated. The operator will deploy a StorageOS cluster based on the\nconfiguration specified in the cluster definition.<\/p>\n<p>\u00a0<\/p>\n<p><strong>Helm Note:<\/strong> If you want to use <a href=\"https:\/\/helm.sh\/docs\/\">Helm<\/a> to install StorageOS, follow\nthe <a href=\"https:\/\/github.com\/storageos\/charts\/tree\/master\/stable\/storageos-operator#installing-the-chart\">StorageOS Operator Helm\nChart<\/a>\ndocumentation.<\/p>\n<h2 id=\"__steps-to-install-storageos__\"><strong>Steps to install StorageOS:<\/strong><\/h2>\n<ul>\n<li><a href=\"#1-install-storageos-operator\">Install StorageOS Operator<\/a><\/li>\n<li><a href=\"#2-create-a-secret\">Create a Secret for default username and password<\/a><\/li>\n<li><a href=\"#3-trigger-a-storageos-installation\">Trigger bootstrap using a CustomResource<\/a><\/li>\n<li><a href=\"#4-license-cluster\">Apply StorageOS licence<\/a><\/li>\n<\/ul>\n<h2 id=\"1-install-storageos-operator\">1. Install StorageOS operator<\/h2>\n<p>Install the StorageOS Cluster Operator using the following yaml manifest.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl create -f https:\/\/github.com\/storageos\/cluster-operator\/releases\/download\/v2.4.4\/storageos-operator.yaml\n<\/code><\/pre><\/div><h3 id=\"verify-the-cluster-operator-pod-status\">Verify the Cluster Operator Pod Status<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># kubectl -n storageos-operator get pod<\/span>\nNAME                                         READY     STATUS    RESTARTS   AGE\nstorageoscluster-operator-68678798ff-f28zw   1\/1       Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The READY 1\/1 indicates that <code>storageoscluster<\/code> resources can be created.<\/p>\n<\/blockquote>\n<h2 id=\"2-create-a-secret\">2. Create a Secret<\/h2>\n<p>Before deploying a StorageOS cluster, create a Secret defining the StorageOS\nAPI Username and Password in base64 encoding.\nThe API username and password are used to create the default StorageOS admin\naccount which can be used with the StorageOS CLI and to login to the StorageOS\nGUI. The CSI credentials are used to register the CSI accounts, so Kubernetes\nand StorageOS communicate over an authenticated API.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: v1\nkind: Secret\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\n  labels:\n    app: <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span>\ntype: <span style=\"color:#4e9a06\">&#34;kubernetes.io\/storageos&#34;<\/span>\ndata:\n  <span style=\"color:#8f5902;font-style:italic\"># echo -n &#39;&lt;secret&gt;&#39; | base64<\/span>\n  apiUsername: c3RvcmFnZW9z\n  apiPassword: c3RvcmFnZW9z\n  <span style=\"color:#8f5902;font-style:italic\"># CSI Credentials<\/span>\n  csiProvisionUsername: c3RvcmFnZW9z\n  csiProvisionPassword: c3RvcmFnZW9z\n  csiControllerPublishUsername: c3RvcmFnZW9z\n  csiControllerPublishPassword: c3RvcmFnZW9z\n  csiNodePublishUsername: c3RvcmFnZW9z\n  csiNodePublishPassword: c3RvcmFnZW9z\n  csiControllerExpandUsername: c3RvcmFnZW9z\n  csiControllerExpandPassword: c3RvcmFnZW9z\n<\/code><\/pre><\/div><p>This example contains a default password, for production installations, use a\nunique, strong password.<\/p>\n<blockquote>\n<p>You can define a base64 value by <code>echo -n &quot;mystring&quot; | base64<\/code>.<\/p>\n<\/blockquote>\n<blockquote>\n<p>Make sure that the encoding of the credentials doesn&rsquo;t have special characters such as &lsquo;\\n&rsquo;.\nThe <code>echo -n<\/code> ensures that a trailing new line is not appended to the string.<\/p>\n<\/blockquote>\n<blockquote>\n<p>If you wish to change the default accounts details post-install please see <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/users#altering-the-storageos-api-account\">Managing\nUsers<\/a><\/p>\n<\/blockquote>\n<h2 id=\"3-trigger-a-storageos-installation\">3 Trigger a StorageOS installation<\/h2>\n<nav>\n    <div class=\"nav nav-tabs\" id=\"nav-platforms-1-17\" role=\"tablist\">\n    <br><\/br><a class=\"nav-item nav-link active\" id=\"nav-1-17-upstream\"\n            data-toggle=\"tab\" href=\"#upstream-1-17\" role=\"tab\"\n            aria-controls=\"nav-home\" aria-selected=\"true\">\n            upstream\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-17-upstream-eks\" data-toggle=\"tab\"\n            href=\"#eks-1-17\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            eks\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-17-upstream-eks-aks\" data-toggle=\"tab\"\n            href=\"#aks-1-17\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            aks\n        <\/a>\n        <a class=\"nav-item nav-link\" id=\"nav-1-17-upstream-eks-aks-gke\" data-toggle=\"tab\"\n            href=\"#gke-1-17\" role=\"tab\" aria-controls=\"nav-home\"\n            aria-selected=\"false\">\n            gke\n        <\/a><\/div>\n<\/nav>\n<div class=\"tab-content\" id=\"1-17-upstream-eks-aks-gke\">\n    <br><\/br><div class=\"tab-pane fade show active\" id=\"upstream-1-17\" role=\"tabpanel\" aria-labelledby=\"nav-upstream\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;upstream&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"eks-1-17\" role=\"tabpanel\" aria-labelledby=\"nav-eks\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;eks&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"aks-1-17\" role=\"tabpanel\" aria-labelledby=\"nav-aks\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;aks&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><div class=\"tab-pane fade\" id=\"gke-1-17\" role=\"tabpanel\" aria-labelledby=\"nav-gke\"><p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;gke&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><\/div><\/div>\n<blockquote>\n<p>Additional <code>spec<\/code> parameters are available on the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\/\">Cluster Operator\nconfiguration<\/a>\npage.<\/p>\n<\/blockquote>\n<blockquote>\n<p>You can find more examples such as deployments referencing a external etcd kv\nstore for StorageOS in the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/examples\/\">Cluster Operator examples<\/a> page.<\/p>\n<\/blockquote>\n<h3 id=\"verify-storageos-installation\">Verify StorageOS Installation<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># kubectl -n kube-system get pods -w<\/span>\nNAME                                    READY   STATUS    RESTARTS   AGE\nstorageos-csi-helper-5cf59b5b4-f5nwr    2\/2     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-75f6c               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-czbqx               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-zv4tq               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-scheduler-6d67b46f67-5c46j    1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The above command watches the Pods created by the Cluster Definition example.\nNote that pods typically take approximately 65 seconds to enter the Running\nPhase.<\/p>\n<\/blockquote>\n<h2 id=\"4-license-cluster\">4. License cluster<\/h2>\n<p>Newly installed StorageOS clusters must be licensed within 24 hours. Our\ndeveloper license is free, and supports up to 5TiB of provisioned storage.<\/p>\n<p>To obtain a license, follow the instructions on our <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/licensing\/\">licensing operations\n<\/a> page.<\/p>\n\n<\/div>\n\n\n\n\n\n<\/div>\n\n<h2 id=\"first-storageos-volume\">First StorageOS volume<\/h2>\n<p>If this is your first installation you may wish to follow the <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/firstpvc\/\">StorageOS\nVolume guide<\/a> for an example of how\nto mount a StorageOS volume in a Pod.<\/p>\n\n      "},{"title":"Docs: What is StorageOS V2","link":"https:\/\/docs.storageos.com\/docs\/introduction\/overview\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/introduction\/overview\/","description":"\n        \n        \n        <p>Over the past several months, we&rsquo;ve been hard at work on StorageOS V2, which\ncontains some significant enhancements over our v1 product. We&rsquo;ve built V2\nbased on our observations of trends in the industry, as well as our own\nexperience.<\/p>\n<p>Many of our customers want to run big clusters - in the tens or hundreds of\nnodes. In these sorts of big environments, the challenges multiply. Not only do\nwe need to scale well, but we also need to be more failure tolerant. Bigger\nenvironments typically suffer higher failure rates (more nodes = greater chance\nof something failing), but are also subject to all sorts of transient\nconditions such as network partitions.<\/p>\n<p>The second trend we&rsquo;ve seen become increasingly common is the desire to run\nmultiple clusters, and consume storage between them in some way - sometimes to\nimplement novel topologies such as a centralised storage cluster with\nsatellites consuming the storage, and sometimes to replicate data between those\nclusters for HA or DR purposes.<\/p>\n<p>We&rsquo;ve built V2 with these architectures and design patterns in mind. Not only\ndoes it scale well, but it contains the foundations we need to implement a rich\nset of multi-cluster functionality.<\/p>\n<h2 id=\"upgraded-control-plane\">Upgraded Control Plane<\/h2>\n<p>At the heart of the V2 release is an upgraded control plane. We&rsquo;ve changed a\nlot here. Firstly, our usage of etcd is vastly improved. We&rsquo;ve learnt a lot\nabout the subtleties of distributed consensus in the last year, particularly in\nnoisy or unpredictable environments. Not only is StorageOS V2 much lighter on\nyour etcd cluster, but it&rsquo;s a lot more tolerant of transient failure conditions\nthat are often found in cloud environments, or clusters under heavy load.<\/p>\n<p>We spent some time describing and testing our internal state machine using the\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/TLA%2B\">TLA+<\/a> formal verification language. This\nallows us to have a much higher degree of confidence that our algorithms will\nbehave correctly, particularly under hard-to-test edge cases and failure\nconditions.<\/p>\n<p>Additionally, we&rsquo;ve changed the way volumes behave with respect to centralised\nscheduling. Each volume group (consisting of a master and 0 or more replicas)\nnow behaves as a strongly consistent unit allowing it to take action\nindependent of the activities of the rest of the cluster. Other state can be\ndistributed around the cluster using eventually consistent mechanisms. This\napproach inherently scales better and allows StorageOS V2 to effectively manage\nmany more nodes and volumes than before.<\/p>\n<p>We&rsquo;ve implemented TLS on all endpoints. Not only does this give you encrypted\ntraffic between nodes in your storage cluster, it also protects all endpoints\nwith strong, public key based authentication. Today&rsquo;s IT environments can&rsquo;t\nrely on firewalls to keep bad actors out - they must implement security at all\nlayers within the stack - defense in depth. While we recognise that this brings\na welcome relief to many security conscious administrators, we also know that\nmanaging certificate authorities (CAs) can be an unwelcome source of\ncomplexity. For this reason, StorageOS V2 implements an internal CA by default,\nto manage this complexity for you. If you&rsquo;d prefer to integrate your own CA, we\nsupport that too - it&rsquo;s up to you.<\/p>\n<p>Finally - our logging has undergone a complete transformation in this edition. We\nknow that systems engineers and operators don&rsquo;t just value headline features,\nbut that observability and diagnostics are equally important. All logs are now\ndecorated with rich context to help you understand what is happening within\nyour cluster, and we&rsquo;ll output in json by default, for easy ingestion into log\naggregators such as Elasticsearch.<\/p>\n<h2 id=\"upgraded-data-plane\">Upgraded Data Plane<\/h2>\n<p>Not to be outdone, our data plane contains some significant improvements.<\/p>\n<p>Firstly, we&rsquo;ve completely re-written our sync algorithm (see <a href=\"https:\/\/docs.storageos.com\/docs\/concepts\/volumes\/\">Delta Sync<\/a>, used when seeding or catching up replicas\nthat have been offline or partitioned. Our new algorithm uses a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Hash_list\">Hash\nList<\/a> to sync only changed sections of\na volume (similar in some ways to what rsync does). StorageOS maintains these\nhashes during normal operation, meaning that when resyncing a failed replica,\nfor example after a node reboot, we can very quickly and efficiently catch this\nreplica up, rather than needing to promote and build a new one from scratch.\nThis improves resiliency within your cluster, and prevents using excessive\nnetwork bandwidth during failover conditions - at a time when it might be\nneeded the most.<\/p>\n<p>Secondly, a new threading model, with dynamic pool sizing, means that StorageOS\nis faster, a lot faster. In our tests we observed improvements across the\nboard, with improvements in throughput of up to 135% for some scenarios.<\/p>\n\n      "},{"title":"Docs: Admission Controller","link":"https:\/\/docs.storageos.com\/docs\/reference\/scheduler\/admission-controller\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/scheduler\/admission-controller\/","description":"\n        \n        \n        <p>StorageOS implements a <code>MutatingAdmissionWebhook<\/code> <a href=\"https:\/\/kubernetes.io\/docs\/reference\/access-authn-authz\/extensible-admission-controllers\/#what-are-admission-webhooks\">Admission\nController<\/a>\nto ensure that Pods using StorageOS Volumes use the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/scheduler\/\">storageos-scheduler<\/a>. An admission controller intercepts\nrequests to the Kubernetes API server prior to persistence of the object, but\nafter the request is authenticated and authorized.<\/p>\n<p>The Admission Controller is responsible for mutating the PodSpec at creation time\nto populate the <code>PodSpec.schedulerName<\/code> field with the name of the StorageOS\nScheduler - <code>storageos-scheduler<\/code>.<\/p>\n<p>During Pod creation, Kubernetes sends a web request to the StorageOS\nWebHook with the Pod specification. The PodSpec is only altered to use the\nStorageOS scheduler if the Pod uses a StorageOS volume.<\/p>\n<h2 id=\"web-server\">Web Server<\/h2>\n<p>The Web Server hosting the web hook is executed in the StorageOS Cluster\nOperator. Since only HTTPS requests are allowed, the Operator generates a\nself-signed x509 certificate every time it starts. The Cluster Operator will\nalso renew certificates upon expiry (certs are valid for one year).<\/p>\n<p>There is no manual intervention required regarding the SSL configuration as the\nsetup is completely transparent between StorageOS and Kubernetes.<\/p>\n<h2 id=\"skipping-mutation\">Skipping Mutation<\/h2>\n<p>To avoid scheduler mutation, the <code>storageos.com\/scheduler=false<\/code> annotation can\nbe added to resources that use StorageOS volumes.<\/p>\n<p>When using StatefulSets the annotation can be set on the <code>spec.template.metadata.annotations<\/code> field.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>apps\/v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>StatefulSet<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span>...<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">template<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">annotations<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">storageos.com\/scheduler<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;false&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># N.B. the value must be a string and not a boolean<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>When using Pods the annotation is set on the <code>metadata.annotations<\/code> field.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>Pod<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>...<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">annotations<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">storageos.com\/scheduler<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;false&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># N.B. the value must be a string and not a boolean<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>...<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><h2 id=\"explicit-schedulername\">Explicit SchedulerName<\/h2>\n<blockquote>\n<p>It is not necessary to explicitly set the SchedulerName as the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/scheduler\/admission-controller\/\">Admission\nController<\/a>\nautomatically populates the PodSpec field. Set the SchedulerName in your\nmanifests, manually, only if you disable or can&rsquo;t execute the StorageOS\nAdmission Controller.<\/p>\n<\/blockquote>\n<p>Kubernetes allows the use of different schedulers by setting the field\n<code>.spec.schedulerName: storageos-scheduler<\/code>.<\/p>\n<p>For instance a Pod manifest utilising the StorageOS scheduler would appear as follows:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: v1\nkind: Pod\nmetadata:\n  name: d1\nspec:\n  schedulerName: storageos-scheduler <span style=\"color:#8f5902;font-style:italic\"># --&gt; StorageOS Scheduler<\/span>\n                                     <span style=\"color:#8f5902;font-style:italic\"># No need if using Admission Controller<\/span>\n                                     <span style=\"color:#8f5902;font-style:italic\"># (enabled by default)<\/span>\n  containers:\n    - name: debian\n      image: debian:9-slim\n      command: <span style=\"color:#ce5c00;font-weight:bold\">[<\/span><span style=\"color:#4e9a06\">&#34;\/bin\/sleep&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n      args: <span style=\"color:#ce5c00;font-weight:bold\">[<\/span> <span style=\"color:#4e9a06\">&#34;3600&#34;<\/span> <span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n      volumeMounts:\n        - mountPath: \/mnt\n          name: v1\n  volumes:\n    - name: v1\n      persistentVolumeClaim:\n        claimName: persistent-volume <span style=\"color:#8f5902;font-style:italic\"># ----&gt; StorageOS PVC<\/span>\n\n<\/code><\/pre><\/div><h2 id=\"compatibility\">Compatibility<\/h2>\n<p>The Admission Controller doesn&rsquo;t need to be enabled at Kubernetes cluster\nbootstrap time because it is a <code>Dynamic Admission Controller<\/code>. Hence, any\ncluster that has the <code>MutatingAdmissionWebhook<\/code> enabled is supported. Most\nKubernetes cluster enable the Webhook admission controller by default.<\/p>\n<p>The\n<a href=\"https:\/\/kubernetes.io\/docs\/reference\/access-authn-authz\/admission-controllers\/#mutatingadmissionwebhook\">MutatingAdmissionWebhook<\/a>\nis available from Kubernetes v1.13.<\/p>\n<p>You can check your Kubernetes cluster compatibility by checking if the\nfollowing object exists.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl api-versions <span style=\"color:#000;font-weight:bold\">|<\/span> grep admissionregistration.k8s.io\n<\/code><\/pre><\/div>\n      "},{"title":"Docs: Configuration","link":"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\/","description":"\n        \n        \n        <h2 id=\"storageoscluster-resource-configuration\">StorageOSCluster Resource Configuration<\/h2>\n<p>The following table lists the configurable spec parameters of the StorageOSCluster custom resource and their default values.<\/p>\n<table>\n<thead>\n<tr>\n<th align=\"left\">Parameter<\/th>\n<th align=\"left\">Description<\/th>\n<th align=\"left\">Default<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\"><code>csi.deploymentStrategy<\/code><\/td>\n<td align=\"left\">CSI helper deployment strategy (<code>statefulset<\/code> or <code>deployment<\/code>)<\/td>\n<td align=\"left\"><code>statefulset<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>csi.enable<\/code><\/td>\n<td align=\"left\">Enable CSI setup<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>csi.enableControllerPublishCreds<\/code><\/td>\n<td align=\"left\">Enable CSI controller publish credentials<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>csi.enableNodePublishCreds<\/code><\/td>\n<td align=\"left\">Enable CSI node publish credentials<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>csi.enableProvisionCreds<\/code><\/td>\n<td align=\"left\">Enable CSI provision credentials<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>debug<\/code><\/td>\n<td align=\"left\">Enable debug mode for all the cluster nodes<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>disableFencing<\/code><\/td>\n<td align=\"left\">Disable Pod fencing<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>disableScheduler<\/code><\/td>\n<td align=\"left\">Disable StorageOS scheduler<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>disableTCMU<\/code><\/td>\n<td align=\"left\">Disable TCMU to allow co-existence with other TCMU users. Disabling TCMU degrades performance<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>disableTelemetry<\/code><\/td>\n<td align=\"left\">Disable telemetry reports<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>forceTCMU<\/code><\/td>\n<td align=\"left\">Forces TCMU to be enabled or causes StorageOS to abort startup<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>images.apiManagerContainer<\/code><\/td>\n<td align=\"left\">StorageOS API Manager container image<\/td>\n<td align=\"left\"><code>storageos\/api-manager:v1.0.0<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>images.csiClusterDriverRegistrarContainer<\/code><\/td>\n<td align=\"left\">CSI Cluster Driver Registrar Container image<\/td>\n<td align=\"left\"><code>quay.io\/k8scsi\/csi-cluster-driver-registrar:v1.0.1<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>images.csiExternalAttacherContainer<\/code><\/td>\n<td align=\"left\">CSI External Attacher Container image<\/td>\n<td align=\"left\"><code>quay.io\/k8scsi\/csi-attacher:v1.0.1<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>images.csiExternalProvisionerContainer<\/code><\/td>\n<td align=\"left\">CSI External Provisioner Container image<\/td>\n<td align=\"left\"><code>storageos\/csi-provisioner:v1.0.1<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>\u00ecmages.csiLivenessProbeContainer<\/code><\/td>\n<td align=\"left\">CSI Liveness Probe Container Image<\/td>\n<td align=\"left\"><code>quay.io\/k8scsi\/livenessprobe:v1.0.1<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>images.csiNodeDriverRegistrarContainer<\/code><\/td>\n<td align=\"left\">CSI Node Driver Registrar Container image<\/td>\n<td align=\"left\"><code>quay.io\/k8scsi\/csi-node-driver-registrar:v1.0.1<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>images.hyperkubeContainer<\/code><\/td>\n<td align=\"left\">Deprecated field - HyperKube Container image<\/td>\n<td align=\"left\">Default dependent on Scheduler version<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>images.initContainer<\/code><\/td>\n<td align=\"left\">StorageOS init container image<\/td>\n<td align=\"left\"><code>storageos\/init:2.1.0<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>images.kubeSchedulerContainer<\/code><\/td>\n<td align=\"left\">Kube scheduler container image<\/td>\n<td align=\"left\">Default dependent on Scheduler version<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>images.nfsContainer<\/code><\/td>\n<td align=\"left\">StorageOS nfs container image<\/td>\n<td align=\"left\"><code>storageos\/nfs:1.0.0<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>images.nodeContainer<\/code><\/td>\n<td align=\"left\">StorageOS node container image<\/td>\n<td align=\"left\"><code>storageos\/node:v2.4.4<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>ingress.annotations<\/code><\/td>\n<td align=\"left\">Annotations of the ingress used by the cluster<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>ingress.enable<\/code><\/td>\n<td align=\"left\">Enable ingress for the cluster<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>ingress.hostname<\/code><\/td>\n<td align=\"left\">Hostname to be used in cluster ingress<\/td>\n<td align=\"left\"><code>storageos.local<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>ingress.tls<\/code><\/td>\n<td align=\"left\">Enable TLS for the ingress<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>k8sDistro<\/code><\/td>\n<td align=\"left\">The name of the Kubernetes distribution is use, e.g. <code>rancher<\/code> or <code>eks<\/code><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>kvBackend.address<\/code><\/td>\n<td align=\"left\">Comma-separated list of addresses of external key-value store. (<code>1.2.3.4:2379,2.3.4.5:2379<\/code>)<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>kvBackend.backend<\/code> (v2 deprecated)<\/td>\n<td align=\"left\">Name of the key-value store to use. Set to <code>etcd<\/code> for external key-value store.<\/td>\n<td align=\"left\"><code>embedded<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>namespace<\/code><\/td>\n<td align=\"left\">Namespace where storageos cluster resources are created<\/td>\n<td align=\"left\"><code>kube-system<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>nodeSelectorTerms<\/code><\/td>\n<td align=\"left\">Set node selector for storageos pod placement<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>pause<\/code><\/td>\n<td align=\"left\">Pause the operator for cluster maintenance<\/td>\n<td align=\"left\"><code>false<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>resources<\/code><\/td>\n<td align=\"left\">Set resource requirements for the containers<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>secretRefName<\/code><\/td>\n<td align=\"left\">Reference name of storageos secret<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>secretRefNamespace<\/code><\/td>\n<td align=\"left\">Namespace of storageos secret<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>service.annotations<\/code><\/td>\n<td align=\"left\">Annotations of the Service used by the cluster<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>service.externalPort<\/code><\/td>\n<td align=\"left\">External port of the Service used by the cluster<\/td>\n<td align=\"left\"><code>5705<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>service.internalPort<\/code><\/td>\n<td align=\"left\">Internal port of the Service used by the cluster<\/td>\n<td align=\"left\"><code>5705<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>service.name<\/code><\/td>\n<td align=\"left\">Name of the Service used by the cluster<\/td>\n<td align=\"left\"><code>storageos<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>service.type<\/code><\/td>\n<td align=\"left\">Type of the Service used by the cluster<\/td>\n<td align=\"left\"><code>ClusterIP<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>sharedDir<\/code><\/td>\n<td align=\"left\">Path to be shared with kubelet container when deployed as a pod<\/td>\n<td align=\"left\"><code>\/var\/lib\/kubelet\/plugins\/kubernetes.io~storageos<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>storageClassName<\/code><\/td>\n<td align=\"left\">The name of the default StorageClass created for StorageOS volumes<\/td>\n<td align=\"left\"><code>fast<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>tlsEtcdSecretRefName<\/code><\/td>\n<td align=\"left\">Secret containing etcd client certificates<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>tlsEtcdSecretRefNamespace<\/code><\/td>\n<td align=\"left\">Namespace of the tlsEtcdSecretRefName<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>tolerations<\/code><\/td>\n<td align=\"left\">Set pod tolerations for storageos pod placement<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n      "},{"title":"Docs: OpenShift","link":"https:\/\/docs.storageos.com\/docs\/install\/openshift\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/install\/openshift\/","description":"\n        \n        \n        <blockquote>\n<p>Make sure the\n<a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/\">prerequisites for StorageOS<\/a> are\nsatisfied before proceeding. Including the deployment of an etcd cluster and\nconfiguration of CRI-O PID limits.<\/p>\n<\/blockquote>\n<blockquote>\n<p>For OpenShift upgrades, refer to the\n<a href=\"https:\/\/docs.storageos.com\/docs\/platforms\/openshift\/#openshift-upgrades\">OpenShift platform page<\/a>.<\/p>\n<\/blockquote>\n<blockquote>\n<p>If you have installed OpenShift in AWS ensure that the requisite ports are\nopened for the worker nodes&rsquo; security group.<\/p>\n<\/blockquote>\n<blockquote>\n<p>Make sure to add a StorageOS licence after installing.<\/p>\n<\/blockquote>\n<p>StorageOS v2 supports OpenShift v4. For more information check the <a href=\"https:\/\/docs.storageos.com\/docs\/platforms\/openshift\/\">OpenShift\nplatform<\/a> page.<\/p>\n<nav>\n\t<div class=\"nav nav-tabs\" id=\"nav-tab\" role=\"tablist\">\n\n\t\t\n\t\t\n\t\t\n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link active\" id=\"nav-1\" data-toggle=\"tab\" href=\"#operatorhub\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"true\">OperatorHub<\/a>\n\n            \n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link\" id=\"nav-1\" data-toggle=\"tab\" href=\"#rh-marketplace\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"false\">RH Marketplace<\/a>\n\n            \n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link\" id=\"nav-1\" data-toggle=\"tab\" href=\"#manual\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"false\">Manual<\/a>\n\n            \n\t\t\n\n\t<\/div>\n<\/nav>\n\n<div class=\"tab-content\" id=\"1\">\n    <br><\/br>\n\n\n\n\n\n\n\n\n<div class=\"tab-pane fade show active\" id=\"operatorhub\" role=\"tabpanel\" aria-labelledby=\"nav-\">\n    <h1 id=\"operatorhub\">OperatorHub<\/h1>\n<ol>\n<li>\n<p>Select the <code>OperatorHub<\/code> from the Catalog sub menu and search for StorageOS<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/000-operatorhub-find-storageos.png\" alt=\"install-0\"><\/p>\n<blockquote>\n<p>Choose between using the RedHat Market Place or the Community Operators\ninstallation.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Select StorageOS and click install<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/010-install-operator-modal.png\" alt=\"install-1\"><\/p>\n<\/li>\n<li>\n<p>Select the install options<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/020-install-operator-options.png\" alt=\"install-2\"><\/p>\n<blockquote>\n<p>Make sure the <code>Approval Strategy<\/code> is set to Manual. So the StorageOS\nOperator doesn&rsquo;t upgrade versions without explicit approval.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Start the approval procedure<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/030-upgrade-operator-approval-0.png\" alt=\"install-3\"><\/p>\n<\/li>\n<li>\n<p>Follow the approval link<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/040-upgrade-operator-approval-1.png\" alt=\"install-4\"><\/p>\n<\/li>\n<li>\n<p>Approve the installation<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/050-approve-upgrade.png\" alt=\"install-5\"><\/p>\n<\/li>\n<li>\n<p>The StorageOS Cluster Operator is installed along the required CRDs<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/060-installed-crds.png\" alt=\"install-6\"><\/p>\n<\/li>\n<li>\n<p>Create a Secret in the <code>openshift-operators<\/code> project<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/070-create-secret.png\" alt=\"install-7\"><\/p>\n<\/li>\n<li>\n<p>Use the YAML options to create a secret containing the <code>apiUsername<\/code> and an\n<code>apiPassword<\/code> key. The username and password defined in the secret will be\nused to authenticate when using the StorageOS CLI and GUI. For the\ncommunication between StorageOS and OpenShift, the CSI credentials\n<code>csiProvisionUsername<\/code>, <code>csiProvisionPassword<\/code>,\n<code>csiControllerPublishUsername<\/code>, <code>csiControllerPublishPassword<\/code>,\n<code>csiNodePublishUsername<\/code>, <code>csiNodePublishPassword<\/code> are needed. Take note of\nwhich project you created the secret in.<\/p>\n<p>Input the Secret as YAML for simplicity.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>Secret<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>storageos-api<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">namespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>openshift-operators<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">type<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;kubernetes.io\/storageos&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">data<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># echo -n &#39;&lt;secret&gt;&#39; | base64<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">apiUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">apiPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># CSI Credentials<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiProvisionUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiProvisionPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerPublishUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerPublishPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiNodePublishUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiNodePublishPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerExpandUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerExpandPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/080-create-secret-yaml.png\" alt=\"install-8\"><\/p>\n<\/li>\n<li>\n<p>Go to the &ldquo;Installed Operators&rdquo;<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/090-operator-hub-installed.png\" alt=\"install-9\"><\/p>\n<blockquote>\n<p>Verify that the StorageOS Cluster Operator is installed<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Go to the &ldquo;StorageOS Cluster&rdquo; section<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/100-operator-details.png\" alt=\"install-10\"><\/p>\n<\/li>\n<li>\n<p>Create the StorageOS Cluster<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/110-create-storageos-cluster.png\" alt=\"install-11\"><\/p>\n<blockquote>\n<p>A StorageOS Cluster is defined using a Custom Resource Definition<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Create the Custom Resource<\/p>\n<p>The StorageOS cluster resource describes the StorageOS cluster that will be\ncreated. Parameters such as the <code>secretRefName<\/code>, the <code>secretRefNamespace<\/code> and\nthe <code>kvBackend.address<\/code> are mandatory.<\/p>\n<p>Additional <code>spec<\/code> parameters are available on the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\">Cluster Operator\nconfiguration<\/a> page.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: storageos\n  namespace: openshift-operators\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;openshift-operators&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret created in the previous step<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;openshift&#34;<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># nodeSelectorTerms:<\/span>\n  <span style=\"color:#8f5902;font-style:italic\">#   - matchExpressions:<\/span>\n  <span style=\"color:#8f5902;font-style:italic\">#     - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n  <span style=\"color:#8f5902;font-style:italic\">#       operator: In<\/span>\n  <span style=\"color:#8f5902;font-style:italic\">#       values:<\/span>\n  <span style=\"color:#8f5902;font-style:italic\">#       - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/120-create-cr-from-yaml.png\" alt=\"install-12\"><\/p>\n<\/li>\n<li>\n<p>Verify that the StorageOS Cluster Resource enters a running state.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/130-cr-created.png\" alt=\"install-13\"><\/p>\n<blockquote>\n<p>It can take up to a minute to report the StorageOS Pods ready<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Check the StorageOS Pods in the <code>kube-system<\/code> project<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/140-storageos-pods.png\" alt=\"install-14\"><\/p>\n<blockquote>\n<p>A Status of 3\/3 for the Daemonset Pods indicates that StorageOS is\nbootstrapped successfully.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>License cluster<\/p>\n<blockquote>\n<p>A newly installed StorageOS cluster does not include a licence. A cluster\nmust be licensed within 24 hours of the installation. For more information,\ncheck the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/licence\/\">reference licence page<\/a>.<\/p>\n<\/blockquote>\n<p>You can apply a Free Developer licence following the <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/licensing\/\">operations\nlicensing<\/a> page, or purchase a\nlicence contacting <a href=\"mailto:sales@storageos.com\">sales@storageos.com<\/a>.<\/p>\n<\/li>\n<\/ol>\n\n<\/div>\n\n\n\n\n\n\n\n\n\n<div class=\"tab-pane fade\" id=\"rh-marketplace\" role=\"tabpanel\" aria-labelledby=\"nav-\">\n    <h1 id=\"red-hat-marketplace\">Red Hat Marketplace<\/h1>\n<blockquote>\n<p>The installation of StorageOS using the Red Hat Marketplace requires the\nOpenshift cluster to be registered to the Marketplace Portal, including the\nroll out of the PullSecret in your cluster. Failure to do so will result in a\nimage pull authentication failure with the Red Hat registry.<\/p>\n<\/blockquote>\n<ol>\n<li>\n<p>Select the <code>OperatorHub<\/code> from the Catalog sub menu and search for StorageOS.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/marketplace\/1.png\" alt=\"install-0\"><\/p>\n<blockquote>\n<p>Choose the RedHat Marketplace option.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Select StorageOS and click purchase. Note that Openshift needs to be\nregistered with the Red Hat Marketplace portal.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/marketplace\/2.png\" alt=\"install-1\"><\/p>\n<\/li>\n<li>\n<p>Select the most suitable install option.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/marketplace\/3.png\" alt=\"install-2\"><\/p>\n<blockquote>\n<p>Project Edition is suitable for production workloads, Developer Edition\nfor personal experimentation and evaluation.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Specify the product configuration to fit your needs.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/marketplace\/4.png\" alt=\"install-3\"><\/p>\n<\/li>\n<li>\n<p>Navigate to your software within Red Hat Marketplace and install the\nStorageOS software as specified in the image.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/marketplace\/5.png\" alt=\"install-4\"><\/p>\n<\/li>\n<li>\n<p>Install the Operator. Set the update approval strategy to Automatic to\nensure that you always have the latest version of StorageOS installed.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/marketplace\/6.png\" alt=\"install-5\"><\/p>\n<\/li>\n<li>\n<p>The StorageOS Cluster Operator is installed into your specified cluster.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/marketplace\/7.png\" alt=\"install-6\"><\/p>\n<\/li>\n<li>\n<p>Create a Secret in the <code>openshift-operators<\/code> project<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/070-create-secret.png\" alt=\"install-7\"><\/p>\n<\/li>\n<li>\n<p>Use the YAML options to create a secret containing the <code>apiUsername<\/code> and an\n<code>apiPassword<\/code> key. The username and password defined in the secret will be\nused to authenticate when using the StorageOS CLI and GUI. For the\ncommunication between StorageOS and OpenShift, the CSI credentials\n<code>csiProvisionUsername<\/code>, <code>csiProvisionPassword<\/code>,\n<code>csiControllerPublishUsername<\/code>, <code>csiControllerPublishPassword<\/code>,\n<code>csiNodePublishUsername<\/code>, <code>csiNodePublishPassword<\/code> are needed. Take note of\nwhich project you created the secret in.<\/p>\n<p>Input the Secret as YAML for simplicity.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>Secret<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>storageos-api<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">namespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>openshift-operators<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">type<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;kubernetes.io\/storageos&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">data<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># echo -n &#39;&lt;secret&gt;&#39; | base64<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">apiUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">apiPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># CSI Credentials<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiProvisionUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiProvisionPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerPublishUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerPublishPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiNodePublishUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiNodePublishPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerExpandUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerExpandPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/080-create-secret-yaml.png\" alt=\"install-8\"><\/p>\n<\/li>\n<li>\n<p>Go to StorageOS in your &ldquo;Installed Operators&rdquo;<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/marketplace\/8.png\" alt=\"install-9\"><\/p>\n<blockquote>\n<p>Verify that the StorageOS Cluster Operator is installed<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Go to the &ldquo;StorageOS Cluster&rdquo; section<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/100-operator-details.png\" alt=\"install-10\"><\/p>\n<\/li>\n<li>\n<p>Create the StorageOS Cluster<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/110-create-storageos-cluster.png\" alt=\"install-11\"><\/p>\n<blockquote>\n<p>A StorageOS Cluster is defined using a Custom Resource Definition<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Create the Custom Resource<\/p>\n<p>The StorageOS cluster resource describes the StorageOS cluster that will be\ncreated. Parameters such as the <code>secretRefName<\/code>, the <code>secretRefNamespace<\/code> and\nthe <code>kvBackend.address<\/code> are mandatory.<\/p>\n<p>Additional <code>spec<\/code> parameters are available on the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\">Cluster Operator\nconfiguration<\/a> page.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: storageos\n  namespace: openshift-operators\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;openshift-operators&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret created in the previous step<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;openshift&#34;<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># nodeSelectorTerms:<\/span>\n  <span style=\"color:#8f5902;font-style:italic\">#   - matchExpressions:<\/span>\n  <span style=\"color:#8f5902;font-style:italic\">#     - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n  <span style=\"color:#8f5902;font-style:italic\">#       operator: In<\/span>\n  <span style=\"color:#8f5902;font-style:italic\">#       values:<\/span>\n  <span style=\"color:#8f5902;font-style:italic\">#       - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/120-create-cr-from-yaml.png\" alt=\"install-12\"><\/p>\n<\/li>\n<li>\n<p>Verify that the StorageOS Cluster Resource enters a running state.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/130-cr-created.png\" alt=\"install-13\"><\/p>\n<blockquote>\n<p>It can take up to a minute to report the StorageOS Pods ready<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Check the StorageOS Pods in the <code>kube-system<\/code> project<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/openshift4\/storageos-v2\/140-storageos-pods.png\" alt=\"install-14\"><\/p>\n<blockquote>\n<p>A Status of 3\/3 for the Daemonset Pods indicates that StorageOS is\nbootstrapped successfully.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>License cluster<\/p>\n<blockquote>\n<p>A newly installed StorageOS cluster does not include a licence. A cluster\nmust be licensed within 24 hours of the installation. For more information,\ncheck the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/licence\/\">reference licence page<\/a>.<\/p>\n<\/blockquote>\n<p>You can apply a Free Developer licence following the <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/licensing\/\">operations\nlicensing<\/a> page, or purchase a\nlicence contacting <a href=\"mailto:sales@storageos.com\">sales@storageos.com<\/a>.<\/p>\n<\/li>\n<\/ol>\n\n<\/div>\n\n\n\n\n\n\n\n\n\n<div class=\"tab-pane fade\" id=\"manual\" role=\"tabpanel\" aria-labelledby=\"nav-\">\n    <h1 id=\"manual-install\">Manual install<\/h1>\n<p>The StorageOS Cluster Operator is a <a href=\"https:\/\/kubernetes.io\/docs\/concepts\/extend-kubernetes\/extend-cluster\/\">Kubernetes native\napplication<\/a>\ndeveloped to deploy and configure StorageOS clusters, and assist with\nmaintenance operations. We recommend its use for standard installations.<\/p>\n<p>The operator is a Kubernetes controller that watches the <code>StorageOSCluster<\/code>\nCRD. Once the controller is ready, a StorageOS cluster definition can be\ncreated. The operator will deploy a StorageOS cluster based on the\nconfiguration specified in the cluster definition.<\/p>\n<p>\u00a0<\/p>\n<p><strong>Helm Note:<\/strong> If you want to use <a href=\"https:\/\/helm.sh\/docs\/\">Helm<\/a> to install StorageOS, follow\nthe <a href=\"https:\/\/github.com\/storageos\/charts\/tree\/master\/stable\/storageos-operator#installing-the-chart\">StorageOS Operator Helm\nChart<\/a>\ndocumentation.<\/p>\n<h2 id=\"__steps-to-install-storageos__\"><strong>Steps to install StorageOS:<\/strong><\/h2>\n<ul>\n<li><a href=\"#1-install-storageos-operator\">Install StorageOS Operator<\/a><\/li>\n<li><a href=\"#2-create-a-secret\">Create a Secret for default username and password<\/a><\/li>\n<li><a href=\"#3-trigger-a-storageos-installation\">Trigger bootstrap using a CustomResource<\/a><\/li>\n<li><a href=\"#4-license-cluster\">Apply StorageOS licence<\/a><\/li>\n<\/ul>\n<h2 id=\"1-install-storageos-operator\">1. Install StorageOS operator<\/h2>\n<p>Install the StorageOS Cluster Operator using the following yaml manifest.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">oc create -f https:\/\/github.com\/storageos\/cluster-operator\/releases\/download\/v2.4.4\/storageos-operator.yaml\n<\/code><\/pre><\/div><h3 id=\"verify-the-cluster-operator-pod-status\">Verify the Cluster Operator Pod Status<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># oc -n storageos-operator get pod<\/span>\nNAME                                         READY     STATUS    RESTARTS   AGE\nstorageoscluster-operator-68678798ff-f28zw   1\/1       Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The READY 1\/1 indicates that <code>storageoscluster<\/code> resources can be created.<\/p>\n<\/blockquote>\n<h2 id=\"2-create-a-secret\">2. Create a Secret<\/h2>\n<p>Before deploying a StorageOS cluster, create a Secret defining the StorageOS\nAPI Username and Password in base64 encoding.\nThe API username and password are used to create the default StorageOS admin\naccount which can be used with the StorageOS CLI and to login to the StorageOS\nGUI. The CSI credentials are used to register the CSI accounts, so Kubernetes\nand StorageOS communicate over an authenticated API.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: v1\nkind: Secret\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\n  labels:\n    app: <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span>\ntype: <span style=\"color:#4e9a06\">&#34;kubernetes.io\/storageos&#34;<\/span>\ndata:\n  <span style=\"color:#8f5902;font-style:italic\"># echo -n &#39;&lt;secret&gt;&#39; | base64<\/span>\n  apiUsername: c3RvcmFnZW9z\n  apiPassword: c3RvcmFnZW9z\n  <span style=\"color:#8f5902;font-style:italic\"># CSI Credentials<\/span>\n  csiProvisionUsername: c3RvcmFnZW9z\n  csiProvisionPassword: c3RvcmFnZW9z\n  csiControllerPublishUsername: c3RvcmFnZW9z\n  csiControllerPublishPassword: c3RvcmFnZW9z\n  csiNodePublishUsername: c3RvcmFnZW9z\n  csiNodePublishPassword: c3RvcmFnZW9z\n  csiControllerExpandUsername: c3RvcmFnZW9z\n  csiControllerExpandPassword: c3RvcmFnZW9z\n<\/code><\/pre><\/div><p>This example contains a default password, for production installations, use a\nunique, strong password.<\/p>\n<blockquote>\n<p>You can define a base64 value by <code>echo -n &quot;mystring&quot; | base64<\/code>.<\/p>\n<\/blockquote>\n<blockquote>\n<p>Make sure that the encoding of the credentials doesn&rsquo;t have special characters such as &lsquo;\\n&rsquo;.\nThe <code>echo -n<\/code> ensures that a trailing new line is not appended to the string.<\/p>\n<\/blockquote>\n<blockquote>\n<p>If you wish to change the default accounts details post-install please see <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/users#altering-the-storageos-api-account\">Managing\nUsers<\/a><\/p>\n<\/blockquote>\n<h2 id=\"3-trigger-a-storageos-installation\">3 Trigger a StorageOS installation<\/h2>\n<p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;openshift&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><blockquote>\n<p>Additional <code>spec<\/code> parameters are available on the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\/\">Cluster Operator\nconfiguration<\/a>\npage.<\/p>\n<\/blockquote>\n<blockquote>\n<p>You can find more examples such as deployments referencing a external etcd kv\nstore for StorageOS in the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/examples\/\">Cluster Operator examples<\/a> page.<\/p>\n<\/blockquote>\n<h3 id=\"verify-storageos-installation\">Verify StorageOS Installation<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># oc -n kube-system get pods -w<\/span>\nNAME                                    READY   STATUS    RESTARTS   AGE\nstorageos-csi-helper-5cf59b5b4-f5nwr    2\/2     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-75f6c               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-czbqx               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-zv4tq               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-scheduler-6d67b46f67-5c46j    1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The above command watches the Pods created by the Cluster Definition example.\nNote that pods typically take approximately 65 seconds to enter the Running\nPhase.<\/p>\n<\/blockquote>\n<h2 id=\"4-license-cluster\">4. License cluster<\/h2>\n<p>Newly installed StorageOS clusters must be licensed within 24 hours. Our\ndeveloper license is free, and supports up to 5TiB of provisioned storage.<\/p>\n<p>To obtain a license, follow the instructions on our <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/licensing\/\">licensing operations\n<\/a> page.<\/p>\n\n<\/div>\n\n\n\n\n\n<\/div>\n\n<h2 id=\"first-storageos-volume\">First StorageOS volume<\/h2>\n<p>If this is your first installation you may wish to follow the <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/firstpvc\/\">StorageOS\nVolume guide<\/a> for an example of how\nto mount a StorageOS volume in a Pod.<\/p>\n\n      "},{"title":"Docs: Quickstart","link":"https:\/\/docs.storageos.com\/docs\/introduction\/quickstart\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/introduction\/quickstart\/","description":"\n        \n        \n        <ul>\n<li>\n<p>Start by <a href=\"https:\/\/docs.storageos.com\/docs\/concepts\/components\/\">understanding the architecture<\/a>.<\/p>\n<\/li>\n<li>\n<p>Follow our installation guides for\n<a href=\"https:\/\/docs.storageos.com\/docs\/install\/kubernetes\/\">Kubernetes<\/a>,\n<a href=\"https:\/\/docs.storageos.com\/docs\/install\/openshift\/\">OpenShift<\/a> or\n<a href=\"https:\/\/docs.storageos.com\/docs\/install\/rancher\/\">Rancher<\/a>.<\/p>\n<\/li>\n<li>\n<p>Dive into our Use Case documentation for Workloads deployed in\n<a href=\"https:\/\/docs.storageos.com\/docs\/usecases\/\">Kubernetes<\/a>.<\/p>\n<\/li>\n<\/ul>\n\n      "},{"title":"Docs: Cluster Operator examples","link":"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/examples\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/examples\/","description":"\n        \n        \n        <p>Before deploying a StorageOS cluster, create a Secret to define the StorageOS\nAPI Username and Password in base64 encoding.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl create -f - <span style=\"color:#4e9a06\">&lt;&lt;END\n<\/span><span style=\"color:#4e9a06\">apiVersion: v1\n<\/span><span style=\"color:#4e9a06\">kind: Secret\n<\/span><span style=\"color:#4e9a06\">metadata:\n<\/span><span style=\"color:#4e9a06\">  name: &#34;storageos-api&#34;\n<\/span><span style=\"color:#4e9a06\">  namespace: &#34;default&#34;\n<\/span><span style=\"color:#4e9a06\">  labels:\n<\/span><span style=\"color:#4e9a06\">    app: &#34;storageos&#34;\n<\/span><span style=\"color:#4e9a06\">type: &#34;kubernetes.io\/storageos&#34;\n<\/span><span style=\"color:#4e9a06\">data:\n<\/span><span style=\"color:#4e9a06\">  apiUsername: c3RvcmFnZW9z\n<\/span><span style=\"color:#4e9a06\">  apiPassword: c3RvcmFnZW9z\n<\/span><span style=\"color:#4e9a06\">\n<\/span><span style=\"color:#4e9a06\">  # CSI Credentials\n<\/span><span style=\"color:#4e9a06\">  csiProvisionUsername: c3RvcmFnZW9z\n<\/span><span style=\"color:#4e9a06\">  csiProvisionPassword: c3RvcmFnZW9z\n<\/span><span style=\"color:#4e9a06\">  csiControllerPublishUsername: c3RvcmFnZW9z\n<\/span><span style=\"color:#4e9a06\">  csiControllerPublishPassword: c3RvcmFnZW9z\n<\/span><span style=\"color:#4e9a06\">  csiNodePublishUsername: c3RvcmFnZW9z\n<\/span><span style=\"color:#4e9a06\">  csiNodePublishPassword: c3RvcmFnZW9z\n<\/span><span style=\"color:#4e9a06\">  csiControllerExpandUsername: c3RvcmFnZW9z\n<\/span><span style=\"color:#4e9a06\">  csiControllerExpandPassword: c3RvcmFnZW9z\n<\/span><span style=\"color:#4e9a06\">END<\/span>\n<\/code><\/pre><\/div><p>This example contains a default password, for production installations, use a\nunique, strong password.<\/p>\n<blockquote>\n<p>Make sure that the encoding of the credentials doesn&rsquo;t have special characters such as &lsquo;\\n&rsquo;.<\/p>\n<\/blockquote>\n<blockquote>\n<p>You can define a base64 value by <code>echo -n &quot;mystring&quot; | base64<\/code>.<\/p>\n<\/blockquote>\n<p>Create a <code>cluster-config.yaml<\/code> according to your needs from the examples below.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl create -f cluster-config.yaml\n<\/code><\/pre><\/div><p>Note that StorageOS will be deployed in <code>spec.namespace<\/code> (storageos by\ndefault), irrespective of what NameSpace the CR is defined in.<\/p>\n<p>\u00a0 <!-- this is a blank line --><\/p>\n<h1 id=\"examples\">Examples<\/h1>\n<blockquote>\n<p>You can checkout all the parameters configurable in the\n<a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\/\">configuration<\/a>\npage.<\/p>\n<\/blockquote>\n<p>All examples must reference the <code>storageos-api<\/code> Secret.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">secretRefName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># Reference to the Secret created in the previous step<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">secretRefNamespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>Check out <a href=\"https:\/\/github.com\/storageos\/deploy\/tree\/master\/k8s\/deploy-storageos\/cluster-operator\/examples\">Cluster Definition\nexamples<\/a> for full CR files.<\/p>\n<h2 id=\"installing-with-an-external-etcd\">Installing with an external etcd<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">kvBackend<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">address<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#39;10.43.93.95:2379&#39;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># IP of the SVC that exposes ETCD<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can specify individual IPs of the etcd servers<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>If using Etcd with mTLS, you need to specify the secret that hold the\ncertificates with the following parameters:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># External mTLS secured etcd cluster specific properties<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">tlsEtcdSecretRefName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;etcd-client-tls&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">                          <\/span><span style=\"color:#8f5902;font-style:italic\"># Secret containing etcd client certificates<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">tlsEtcdSecretRefNamespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-etcd&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">                      <\/span><span style=\"color:#8f5902;font-style:italic\"># Namespace of the client certificates secret<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>Follow the <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/etcd\/storageos-secret-info\/\">etcd operations<\/a> page to setup the\nsecret with the Etcd client certificate, client key and CA.<\/p>\n<h2 id=\"installing-to-a-subset-of-nodes\">Installing to a subset of nodes<\/h2>\n<p>In this case we select nodes that are workers. To make sure that StorageOS doesn&rsquo;t start in Master nodes.<\/p>\n<p>You can see the labels in the nodes by <code>kubectl get node --show-labels<\/code>.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">nodeSelectorTerms<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- <span style=\"color:#204a87;font-weight:bold\">matchExpressions<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span>- <span style=\"color:#204a87;font-weight:bold\">key<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;node-role.kubernetes.io\/worker&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">operator<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>In<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">values<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span>- <span style=\"color:#4e9a06\">&#34;true&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#8f5902;font-style:italic\"># OpenShift uses &#34;node-role.kubernetes.io\/compute=true&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#8f5902;font-style:italic\"># Rancher uses &#34;node-role.kubernetes.io\/worker=true&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#8f5902;font-style:italic\"># Kops uses &#34;node-role.kubernetes.io\/node=&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><blockquote>\n<p>Different provisioners and Kubernetes distributions use node labels\ndifferently to specify master vs workers. Node Taints are not enough to\nmake sure StorageOS doesn&rsquo;t start in a node. The\n<a href=\"https:\/\/docs.storageos.com\/docs\/reference\/clusterdiscovery\">JOIN<\/a>\nvariable is defined by the operator by selecting all the nodes that match the\n<code>nodeSelectorTerms<\/code>.<\/p>\n<\/blockquote>\n<h2 id=\"enabling-csi\">Enabling CSI<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">enable<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">true<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">deploymentStrategy<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>deployment<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">enableProvisionCreds<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">true<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">enableControllerPublishCreds<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">true<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">enableNodePublishCreds<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">true<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">enableControllerExpandCreds<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">true<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>The credentials must be defined in the <code>storageos-api<\/code> Secret<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>Secret<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">namespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">labels<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">app<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">type<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;kubernetes.io\/storageos&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">data<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># echo -n &#39;&lt;secret&gt;&#39; | base64<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">apiUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">apiPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">   <\/span><span style=\"color:#8f5902;font-style:italic\"># Add base64 encoded creds below for CSI credentials.<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiProvisionUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiProvisionPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerPublishUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerPublishPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiNodePublishUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiNodePublishPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerExpandUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerExpandPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><h2 id=\"specifying-a-shared-directory-for-use-with-kubelet-as-a-container\">Specifying a shared directory for use with kubelet as a container<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">sharedDir<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#39;\/var\/lib\/kubelet\/plugins\/kubernetes.io~storageos&#39;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><h2 id=\"defining-pod-resource-requests-and-reservations\">Defining pod resource requests and reservations<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">resources<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">requests<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">memory<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\">#   cpu: &#34;1&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># limits:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\">#   memory: &#34;4Gi&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>Limiting StorageOS can cause malfunction for IO to StorageOS volumes, therefore\nwe do not currently recommend applying upper limits to resources for StorageOS\npods.<\/p>\n<h2 id=\"specifying-custom-tolerations\">Specifying custom Tolerations<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">tolerations<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span>- <span style=\"color:#204a87;font-weight:bold\">key<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;key1&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">operator<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;Equal&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">value<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;value1&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">effect<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;EffectToTolerate&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span>- <span style=\"color:#204a87;font-weight:bold\">key<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;key2&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">operator<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;Exists&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>Custom tolerations specified in the StorageOSCluster definition are added to\nall StorageOS components; the StorageOS daemonset, CSI helper and scheduler.<\/p>\n<p>In the above example a toleration <code>key1=value1:EffectToTolerate<\/code> would be\ntolerated and <code>key2<\/code> would be tolerated regardless of the value and effect. For\nmore information about tolerations please see the <a href=\"https:\/\/kubernetes.io\/docs\/concepts\/scheduling-eviction\/taint-and-toleration\/\">Kubernetes\ndocumentation<\/a>.<\/p>\n\n      "},{"title":"Docs: Rancher","link":"https:\/\/docs.storageos.com\/docs\/install\/rancher\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/install\/rancher\/","description":"\n        \n        \n        <p>StorageOS is a certified Rancher application. We offer two installation\nmethods:<\/p>\n<ul>\n<li>Rancher Catalogue - this is the easiest and requires just a few clicks<\/li>\n<li>Manual - allowing more control and visibility<\/li>\n<\/ul>\n<p>Before proceeding, ensure that you have followed our <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/\">prerequisites<\/a>. On Rancher, pay particular attention to\nthe OS version and image used - some platforms require extra mainline kernel\nmodules to be enabled.<\/p>\n<nav>\n\t<div class=\"nav nav-tabs\" id=\"nav-tab\" role=\"tablist\">\n\n\t\t\n\t\t\n\t\t\n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link active\" id=\"nav-1\" data-toggle=\"tab\" href=\"#catalog\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"true\">Catalog<\/a>\n\n            \n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link\" id=\"nav-1\" data-toggle=\"tab\" href=\"#manual\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"false\">Manual<\/a>\n\n            \n\t\t\n\n\t<\/div>\n<\/nav>\n\n<div class=\"tab-content\" id=\"1\">\n    <br><\/br>\n\n\n\n\n\n\n\n\n<div class=\"tab-pane fade show active\" id=\"catalog\" role=\"tabpanel\" aria-labelledby=\"nav-\">\n    <h1 id=\"catalog-install\">Catalog Install<\/h1>\n<p>StorageOS is a Certified application in the <a href=\"https:\/\/rancher.com\/docs\/rancher\/v2.x\/en\/catalog\/\">Rancher\nCatalog<\/a>. You can install\nStorageOS using the Rancher application install.<\/p>\n<p>Before completing the steps below, you will need an etcd cluster. For\nevaluations it is sufficient to use our simple <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/etcd\/#testing\">test<\/a> recipe. For production installations,\nplease follow our <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/etcd\/#production\">production<\/a> recipe. Make a note of the etcd endpoint URL in either case.<\/p>\n<ol>\n<li>\n<p>Select the <code>System<\/code> project of your cluster<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-1.png\" alt=\"install-1\"><\/p>\n<\/li>\n<li>\n<p>Select the <code>Apps<\/code> tab and click <code>Launch<\/code><\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-2.png\" alt=\"install-2\"><\/p>\n<\/li>\n<li>\n<p>Search for StorageOS and click on the App<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-3.png\" alt=\"install-3\"><\/p>\n<p>This will install the StorageOS operator, which manages the StorageOS\nDaemonSet.<\/p>\n<\/li>\n<li>\n<p>Check and ammend installation options<\/p>\n<p>A generic configuration for StorageOS is preset using the default values in\nthe form. Be sure to check the etcd address and ensure it matches the value\nyou noted at the beginning of this guide.<\/p>\n<p>The catalog form exposes several useful parameters - documented\n<a href=\"https:\/\/docs.storageos.com\/docs\/install\/rancher\/#simplecustomization\">below<\/a>.<\/p>\n<p>For further customization, you can opt to set the option to &lsquo;Install\nStorageOS Cluster&rsquo; to false and install a custom CR. See <a href=\"https:\/\/docs.storageos.com\/docs\/install\/rancher\/#advancedcustomization\">below<\/a> for this.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-4.png\" alt=\"install-4\"><\/p>\n<\/li>\n<li>\n<p>Launch the StorageOS cluster<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-8.png\" alt=\"install-8\"><\/p>\n<\/li>\n<li>\n<p>Verify the cluster bootstrap has successfully completed<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-81.png\" alt=\"install-81\"><\/p>\n<\/li>\n<li>\n<p>License the newly installed cluster<\/p>\n<p>Newly installed StorageOS clusters must be licensed within 24 hours. Our\npersonal license is free, and supports up to 1TiB of provisioned storage.<\/p>\n<p>You will need access to the StorageOS API on port 5705 of any of your nodes.\nFor convenience, it is often easiest to port forward the service using the\nfollowing kubectl incantation (this will block, so a second terminal window may\nbe advisable):<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl port-forward -n kube-system svc\/storageos <span style=\"color:#0000cf;font-weight:bold\">5705<\/span>\n<\/code><\/pre><\/div><p>Now follow the instructions on our <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/licensing\/\">licensing operations<\/a> page to obtain and apply a license.<\/p>\n<p>Installation of StorageOS is now complete.<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"a-namesimplecustomizationasimple-customization---modify-catalog-form\"><a name='simplecustomization'><\/a>Simple Customization - Modify Catalog Form<\/h2>\n<p>The following options are exposed by the catalog form to allow some simple\ncustomization of the StorageOS installation.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-5.png\" alt=\"install-5\">\n<img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-6.png\" alt=\"install-6\">\n<img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-7.png\" alt=\"install-7\"><\/p>\n<ul>\n<li><strong>Cluster Operator namespace<\/strong>\n: The Kubernetes namespace where the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/\">StorageOS Cluster Operator<\/a> and other resources will be\ncreated.<\/li>\n<li><strong>Container Images<\/strong> : By default images are pulled from DockerHub, you can<\/li>\n<li>specify the image URLs\nwhen using private registries.<\/li>\n<li><strong>Install StorageOS cluster<\/strong>\n: Controls the automatic deployment of StorageOS after installing the Cluster\nOperator. If set to <code>false<\/code>, the Operator will be created, but a Custom Resource will\nnot be applied to the cluster. Launch the operator and proceed to the section\n<a href=\"https:\/\/docs.storageos.com\/docs\/install\/rancher\/#advancedcustomization\">Advanced Customization<\/a> below.<\/li>\n<li><strong>Namespace<\/strong> : The Kubernetes namespace where StorageOS will be\ninstalled. By default, StorageOS installs into the <code>kube-system<\/code> namespace,\nwhich will add a priority class to ensure high priority resource allocation.\nInstalling StorageOS with the priority class prevents StorageOS from being\nevicted during periods of resource contention. It is inadvisable to modify this\nunder normal circumstances.<\/li>\n<li><strong>Username\/Password<\/strong> : Default Username and Password for the admin account\nto be created at StorageOS bootstrap. A random password will be generated by\nleaving the field empty or clicking the <code>Generate<\/code> button.<\/li>\n<li><strong>External etcd address(es)<\/strong> : Connection and configuration details for an\nexternal Etcd cluster.See our documentation <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/etcd\/\">here<\/a>.<\/li>\n<li><strong>Node Selectors and Tolerations<\/strong>\n: Control placement of StorageOS DaemonSet Pods. StorageOS will only be\ninstalled on the selected nodes.<\/li>\n<li><strong>Tolerations<\/strong> : Define any tolerations you wish the DaemonSet to observe.<\/li>\n<\/ul>\n<h2 id=\"a-nameadvancedcustomizationaadvanced-customization---apply-custom-cr\"><a name='advancedcustomization'><\/a>Advanced Customization - Apply Custom CR<\/h2>\n<p>If <code>Install StorageOS Cluster<\/code> was set to <code>false<\/code>, StorageOS will not be\nbootstrapped automatically. After the StorageOS Operator is installed, you can\nnow create a Custom Resource that describes the StorageOS cluster.<\/p>\n<ol>\n<li>\n<p>Select the <code>System Workloads<\/code> and <code>Import YAML<\/code>\n<img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-9.png\" alt=\"install-9\"><\/p>\n<\/li>\n<li>\n<p>Create the <code>Secret<\/code> and <code>CustomResource<\/code>\n<img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-10.png\" alt=\"install-10\">\n<img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-11.png\" alt=\"install-11\">\n<img src=\"https:\/\/docs.storageos.com\/images\/rancher-ui-v2\/rancher-12.png\" alt=\"install-12\"><\/p>\n<p>This is an example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">---\napiVersion: v1\nkind: Secret\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\n  labels:\n    app: <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span>\ntype: <span style=\"color:#4e9a06\">&#34;kubernetes.io\/storageos&#34;<\/span>\ndata:\n  <span style=\"color:#8f5902;font-style:italic\"># echo -n &#39;&lt;secret&gt;&#39; | base64<\/span>\n  apiUsername: c3RvcmFnZW9z\n  apiPassword: c3RvcmFnZW9z\n  <span style=\"color:#8f5902;font-style:italic\"># CSI Credentials<\/span>\n  csiProvisionUsername: c3RvcmFnZW9z\n  csiProvisionPassword: c3RvcmFnZW9z\n  csiControllerPublishUsername: c3RvcmFnZW9z\n  csiControllerPublishPassword: c3RvcmFnZW9z\n  csiNodePublishUsername: c3RvcmFnZW9z\n  csiNodePublishPassword: c3RvcmFnZW9z\n  csiControllerExpandUsername: c3RvcmFnZW9z\n  csiControllerExpandPassword: c3RvcmFnZW9z\n---\napiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;rancher&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  sharedDir: <span style=\"color:#4e9a06\">&#39;\/var\/lib\/kubelet\/plugins\/kubernetes.io~storageos&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Needed when Kubelet as a container<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n  nodeSelectorTerms:\n    - matchExpressions:\n      - key: <span style=\"color:#4e9a06\">&#34;node-role.kubernetes.io\/worker&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Compute node label will vary according to your installation<\/span>\n        operator: In\n        values:\n        - <span style=\"color:#4e9a06\">&#34;true&#34;<\/span>\n<\/code><\/pre><\/div><blockquote>\n<p>Additional <code>spec<\/code> parameters are available on the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\/\">Cluster Operator\nconfiguration<\/a> page.<\/p>\n<\/blockquote>\n<blockquote>\n<p>You can find more examples such as deployments referencing a external\netcd kv store for StorageOS in the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/examples\/\">Cluster Operator examples<\/a> page.<\/p>\n<\/blockquote>\n<\/li>\n<\/ol>\n\n<\/div>\n\n\n\n\n\n\n\n\n\n<div class=\"tab-pane fade\" id=\"manual\" role=\"tabpanel\" aria-labelledby=\"nav-\">\n    <h1 id=\"manual-installation\">Manual Installation<\/h1>\n<p>The StorageOS Cluster Operator is a <a href=\"https:\/\/kubernetes.io\/docs\/concepts\/extend-kubernetes\/extend-cluster\/\">Kubernetes native\napplication<\/a>\ndeveloped to deploy and configure StorageOS clusters, and assist with\nmaintenance operations. We recommend its use for standard installations.<\/p>\n<p>The operator is a Kubernetes controller that watches the <code>StorageOSCluster<\/code>\nCRD. Once the controller is ready, a StorageOS cluster definition can be\ncreated. The operator will deploy a StorageOS cluster based on the\nconfiguration specified in the cluster definition.<\/p>\n<p>\u00a0<\/p>\n<p><strong>Helm Note:<\/strong> If you want to use <a href=\"https:\/\/helm.sh\/docs\/\">Helm<\/a> to install StorageOS, follow\nthe <a href=\"https:\/\/github.com\/storageos\/charts\/tree\/master\/stable\/storageos-operator#installing-the-chart\">StorageOS Operator Helm\nChart<\/a>\ndocumentation.<\/p>\n<h2 id=\"__steps-to-install-storageos__\"><strong>Steps to install StorageOS:<\/strong><\/h2>\n<ul>\n<li><a href=\"#1-install-storageos-operator\">Install StorageOS Operator<\/a><\/li>\n<li><a href=\"#2-create-a-secret\">Create a Secret for default username and password<\/a><\/li>\n<li><a href=\"#3-trigger-a-storageos-installation\">Trigger bootstrap using a CustomResource<\/a><\/li>\n<li><a href=\"#4-license-cluster\">Apply StorageOS licence<\/a><\/li>\n<\/ul>\n<h2 id=\"1-install-storageos-operator\">1. Install StorageOS operator<\/h2>\n<p>Install the StorageOS Cluster Operator using the following yaml manifest.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl create -f https:\/\/github.com\/storageos\/cluster-operator\/releases\/download\/v2.4.4\/storageos-operator.yaml\n<\/code><\/pre><\/div><h3 id=\"verify-the-cluster-operator-pod-status\">Verify the Cluster Operator Pod Status<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># kubectl -n storageos-operator get pod<\/span>\nNAME                                         READY     STATUS    RESTARTS   AGE\nstorageoscluster-operator-68678798ff-f28zw   1\/1       Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The READY 1\/1 indicates that <code>storageoscluster<\/code> resources can be created.<\/p>\n<\/blockquote>\n<h2 id=\"2-create-a-secret\">2. Create a Secret<\/h2>\n<p>Before deploying a StorageOS cluster, create a Secret defining the StorageOS\nAPI Username and Password in base64 encoding.\nThe API username and password are used to create the default StorageOS admin\naccount which can be used with the StorageOS CLI and to login to the StorageOS\nGUI. The CSI credentials are used to register the CSI accounts, so Kubernetes\nand StorageOS communicate over an authenticated API.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: v1\nkind: Secret\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\n  labels:\n    app: <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span>\ntype: <span style=\"color:#4e9a06\">&#34;kubernetes.io\/storageos&#34;<\/span>\ndata:\n  <span style=\"color:#8f5902;font-style:italic\"># echo -n &#39;&lt;secret&gt;&#39; | base64<\/span>\n  apiUsername: c3RvcmFnZW9z\n  apiPassword: c3RvcmFnZW9z\n  <span style=\"color:#8f5902;font-style:italic\"># CSI Credentials<\/span>\n  csiProvisionUsername: c3RvcmFnZW9z\n  csiProvisionPassword: c3RvcmFnZW9z\n  csiControllerPublishUsername: c3RvcmFnZW9z\n  csiControllerPublishPassword: c3RvcmFnZW9z\n  csiNodePublishUsername: c3RvcmFnZW9z\n  csiNodePublishPassword: c3RvcmFnZW9z\n  csiControllerExpandUsername: c3RvcmFnZW9z\n  csiControllerExpandPassword: c3RvcmFnZW9z\n<\/code><\/pre><\/div><p>This example contains a default password, for production installations, use a\nunique, strong password.<\/p>\n<blockquote>\n<p>You can define a base64 value by <code>echo -n &quot;mystring&quot; | base64<\/code>.<\/p>\n<\/blockquote>\n<blockquote>\n<p>Make sure that the encoding of the credentials doesn&rsquo;t have special characters such as &lsquo;\\n&rsquo;.\nThe <code>echo -n<\/code> ensures that a trailing new line is not appended to the string.<\/p>\n<\/blockquote>\n<blockquote>\n<p>If you wish to change the default accounts details post-install please see <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/users#altering-the-storageos-api-account\">Managing\nUsers<\/a><\/p>\n<\/blockquote>\n<h2 id=\"3-trigger-a-storageos-installation\">3 Trigger a StorageOS installation<\/h2>\n<p>This is a Cluster Definition example.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">apiVersion: <span style=\"color:#4e9a06\">&#34;storageos.com\/v1&#34;<\/span>\nkind: StorageOSCluster\nmetadata:\n  name: <span style=\"color:#4e9a06\">&#34;example-storageos&#34;<\/span>\n  namespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>\nspec:\n  <span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span>\n  secretRefName: <span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Reference from the Secret created in the previous step<\/span>\n  secretRefNamespace: <span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span>  <span style=\"color:#8f5902;font-style:italic\"># Namespace of the Secret<\/span>\n  k8sDistro: <span style=\"color:#4e9a06\">&#34;rancher&#34;<\/span>\n  images:\n    nodeContainer: <span style=\"color:#4e9a06\">&#34;storageos\/node:v2.4.4&#34;<\/span> <span style=\"color:#8f5902;font-style:italic\"># StorageOS version<\/span>\n  kvBackend:\n    address: <span style=\"color:#4e9a06\">&#39;storageos-etcd-client.storageos-etcd:2379&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># Example address, change for your etcd endpoint<\/span>\n  <span style=\"color:#8f5902;font-style:italic\"># address: &#39;10.42.15.23:2379,10.42.12.22:2379,10.42.13.16:2379&#39; # You can set ETCD server ips<\/span>\n  resources:\n    requests:\n      memory: <span style=\"color:#4e9a06\">&#34;512Mi&#34;<\/span>\n      cpu: <span style=\"color:#0000cf;font-weight:bold\">1<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#  nodeSelectorTerms:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#    - matchExpressions:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#      - key: &#34;node-role.kubernetes.io\/worker&#34; # Compute node label will vary according to your installation<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        operator: In<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        values:<\/span>\n<span style=\"color:#8f5902;font-style:italic\">#        - &#34;true&#34;<\/span>\n<\/code><\/pre><\/div><blockquote>\n<p>Additional <code>spec<\/code> parameters are available on the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\/\">Cluster Operator\nconfiguration<\/a>\npage.<\/p>\n<\/blockquote>\n<blockquote>\n<p>You can find more examples such as deployments referencing a external etcd kv\nstore for StorageOS in the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/examples\/\">Cluster Operator examples<\/a> page.<\/p>\n<\/blockquote>\n<h3 id=\"verify-storageos-installation\">Verify StorageOS Installation<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>root@master03<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#8f5902;font-style:italic\"># kubectl -n kube-system get pods -w<\/span>\nNAME                                    READY   STATUS    RESTARTS   AGE\nstorageos-csi-helper-5cf59b5b4-f5nwr    2\/2     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-75f6c               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-czbqx               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-daemonset-zv4tq               3\/3     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\nstorageos-scheduler-6d67b46f67-5c46j    1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m\n<\/code><\/pre><\/div><blockquote>\n<p>The above command watches the Pods created by the Cluster Definition example.\nNote that pods typically take approximately 65 seconds to enter the Running\nPhase.<\/p>\n<\/blockquote>\n<h2 id=\"4-license-cluster\">4. License cluster<\/h2>\n<p>Newly installed StorageOS clusters must be licensed within 24 hours. Our\ndeveloper license is free, and supports up to 5TiB of provisioned storage.<\/p>\n<p>To obtain a license, follow the instructions on our <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/licensing\/\">licensing operations\n<\/a> page.<\/p>\n\n<\/div>\n\n\n\n\n\n<\/div>\n\n<h2 id=\"first-storageos-volume\">First StorageOS volume<\/h2>\n<p>If this is your first installation you may wish to follow the <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/firstpvc\/\">StorageOS\nVolume guide<\/a> for an example of how\nto mount a StorageOS volume in a Pod.<\/p>\n\n      "},{"title":"Docs: Cluster Operator Upgrade","link":"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/upgrade\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/upgrade\/","description":"\n        \n        \n        <h2 id=\"upgrade-storageos-operator-from-yaml-manifest\">Upgrade StorageOS operator from yaml manifest<\/h2>\n<p>Upgrade the StorageOS operator using the following yaml manifest.<\/p>\n<pre><code>kubectl apply -f https:\/\/github.com\/storageos\/cluster-operator\/releases\/download\/v2.4.4\/storageos-operator.yaml\n<\/code><\/pre><blockquote>\n<p>When you run the above command StorageOS Operator resources will be updated.\nSince, the Update Strategy of the StorageOS Operator Deployment is set to\nrolling update, a new StorageOS Operator Pod will be created. Only when\nthe new Pod enters the Running Phase will the old Pod be deleted.\nYour StorageOS Cluster will not be affected while the StorageOS\nOperator is upgrading.<\/p>\n<\/blockquote>\n<h2 id=\"upgrade-storageos-operator-using-helm\">Upgrade StorageOS Operator using Helm<\/h2>\n<p>If you have installed the StorageOS Operator using the <a href=\"https:\/\/github.com\/storageos\/charts\/tree\/master\/stable\/storageos-operator#installing-the-chart\">Helm Chart<\/a>, then you can upgrade the operator using the following commands.<\/p>\n<pre><code>$ helm list\n\nNAME            REVISION        STATUS          CHART                           APP VERSION     NAMESPACE   \nstorageos-v1   4               DEPLOYED        storageos-operator-0.2.11       1.3.0           storageos-operator\n<\/code><\/pre><pre><code>$ helm repo update\n$ helm upgrade $NAME storageos\/storageos-operator\n<\/code><\/pre><blockquote>\n<p>When you run the above command StorageOS Operator resources will be updated.\nSince, the Update Strategy of the StorageOS Operator Deployment is set to\nrolling update, a new StorageOS Operator Pod will be created. Only when\nthe new Pod enters the Running Phase will the old Pod be deleted.\nYour StorageOS Cluster will not be affected while the StorageOS\nOperator is upgrading.<\/p>\n<\/blockquote>\n\n      "},{"title":"Docs: Supported Platforms and Orchestrators","link":"https:\/\/docs.storageos.com\/docs\/introduction\/platforms\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/introduction\/platforms\/","description":"\n        \n        \n        <h2 id=\"os\">OS<\/h2>\n<ul>\n<li>Linux X86_64<\/li>\n<li>Kernels satisfying our module <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/systemconfiguration\/\">prerequisites<\/a><\/li>\n<li>3.x kernels have a limitation of 256 active volumes per node<\/li>\n<li>4.x kernels have a limitation of 4096 active volumes per node<\/li>\n<li>We are distribution agnostic as long as our prerequisites are met<\/li>\n<\/ul>\n<h2 id=\"orchestrators\">Orchestrators<\/h2>\n<ul>\n<li>Kubernetes 1.17 to 1.21<\/li>\n<li>OpenShift 4.0+<\/li>\n<\/ul>\n\n      "},{"title":"Docs: System Configuration","link":"https:\/\/docs.storageos.com\/docs\/prerequisites\/systemconfiguration\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/prerequisites\/systemconfiguration\/","description":"\n        \n        \n        <p>StorageOS requires certain kernel modules to function. In particular it\nrequires <a href=\"http:\/\/linux-iscsi.org\/wiki\/Main_Page\">Linux-IO<\/a>, an open-source\nimplementation of the SCSI target, on all nodes that will execute StorageOS\n(usually the workers).<\/p>\n<p>We require the following modules to be loaded:<\/p>\n<ul>\n<li><code>target_core_mod<\/code><\/li>\n<li><code>tcm_loop<\/code><\/li>\n<li><code>target_core_file<\/code><\/li>\n<li><code>configfs<\/code><\/li>\n<li><code>target_core_user<\/code><\/li>\n<li><code>uio<\/code><\/li>\n<\/ul>\n<blockquote>\n<p>N.B. Other applications utilising <a href=\"http:\/\/linux-iscsi.org\/wiki\/LIO\">TCMU<\/a>\ncannot be run concurrently with StorageOS. Doing so may result in corruption\nof data. On startup, StorageOS will detect if other applications are using\nTCMU and fall back to FUSE. However if StorageOS is started first there is no\nmechanism for StorageOS to fallback to FUSE if another application begins to\nuse TCMU. TCMU can be disabled using the\n<a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\">DISABLE_TCMU<\/a>\nStorageOSCluster spec parameter.<\/p>\n<\/blockquote>\n<p>Depending on the distribution, the modules are shipped as part of the\nbase kernel package or as part of a kernel extras package which needs to be\ninstalled.<\/p>\n<h2 id=\"distribution-specifics\">Distribution Specifics<\/h2>\n<p>The following distributions are supported by default:<\/p>\n<ul>\n<li>RHEL 7.5<\/li>\n<li>CentOS 7<\/li>\n<li>Debian 9<\/li>\n<li>Ubuntu Azure<\/li>\n<li>RancherOS - Note CSI is not supported on RancherOS<\/li>\n<\/ul>\n<p>Ubuntu 16.04\/18.04 requires the installation of additional packages.<\/p>\n<blockquote>\n<p>N.B. Ubuntu 16.04\/18.04 AWS and Ubuntu 18.04 GCE do not provide the\nnecessary linux-image-extra package - <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/systemconfiguration#ubuntu-on-aws-and-gce\">see\nbelow<\/a> for more information<\/p>\n<\/blockquote>\n<h2 id=\"ubuntu-package-installation\">Ubuntu Package Installation<\/h2>\n<p><strong>Ubuntu 16.04\/18.04 Generic<\/strong> and <strong>Ubuntu 16.04 GCE<\/strong> require extra packages:<\/p>\n<p>Ubuntu 16.04:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">sudo apt -y update\nsudo apt -y install linux-image-extra-<span style=\"color:#204a87;font-weight:bold\">$(<\/span>uname -r<span style=\"color:#204a87;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><p>Ubuntu 18.04+:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">sudo apt -y update\nsudo apt -y install linux-modules-extra-<span style=\"color:#204a87;font-weight:bold\">$(<\/span>uname -r<span style=\"color:#204a87;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"ubuntu-with-aws-or-gce-kernels\">Ubuntu With AWS Or GCE Kernels<\/h2>\n<p><strong>Ubuntu 16.04\/18.04 AWS<\/strong> and <strong>Ubuntu 18.04 GCE<\/strong> do not yet provide the\nlinux-image-extra package. As such you should either use <strong>Debian<\/strong>, <strong>CentOS<\/strong>\nor <strong>RHEL<\/strong>, or install the non-cloud-provider optimised Ubuntu kernel.<\/p>\n<p>Installing the non-cloud-provider optimised Ubuntu kernel is something that\nshould only be done with full understanding of potential ramifications.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">sudo apt -y update\nsudo apt install -y linux-virtual linux-image-extra-virtual\nsudo apt purge -y linux*aws\n\n<span style=\"color:#8f5902;font-style:italic\"># Reboot the machine<\/span>\nsudo shutdown -r now\n<\/code><\/pre><\/div><h2 id=\"automatic-configuration\">Automatic Configuration<\/h2>\n<p>Once required kernel modules are installed on the system, for convenience we\nprovide a container which will ensure the appropriate modules are loaded and\nready for use at runtime. On Docker installations, you will need to run the\ninit container prior to starting StorageOS. Our installation guides for\nKubernetes and OpenShift include this step.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#8f5902;font-style:italic\"># Load the required kernel modules. The Kubernetes and OpenShift installations include this step.<\/span>\ndocker run --name enable_lio                  <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>           --privileged                       <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>           --rm                               <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>           --cap-add<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>SYS_ADMIN                <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>           -v \/lib\/modules:\/lib\/modules       <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>           -v \/sys:\/sys:rshared               <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>           storageos\/init:0.2\n<\/code><\/pre><\/div><h2 id=\"manual-configuration\">Manual Configuration<\/h2>\n<p>For those wishing to manage their own kernel configuration, rather than using\nthe init container, perform the following steps:<\/p>\n<ul>\n<li>Ensure kernel modules are all loaded per list above<\/li>\n<li>Ensure configfs is loaded and mounted at \/sys\/kernel\/config<\/li>\n<\/ul>\n\n      "},{"title":"Docs: Availability of IPv6","link":"https:\/\/docs.storageos.com\/docs\/prerequisites\/ipv6\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/prerequisites\/ipv6\/","description":"\n        \n        \n        <h2 id=\"availability-of-ipv6-address-family\">Availability of IPv6 Address Family<\/h2>\n<p>Certain StorageOS components need to be able to listen on a standard\ndual-stack socket of type AF_INET6. The IPv6 address family must be supported\non the server so that this socket can be allocated. StorageOS does not require\nIPv6 to be configured on the server - no addressing or routing needs to be in\nplace, however StorageOS does need this functionality to be enabled in the\nkernel.<\/p>\n\n      "},{"title":"Docs: Firewalls","link":"https:\/\/docs.storageos.com\/docs\/prerequisites\/firewalls\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/prerequisites\/firewalls\/","description":"\n        \n        \n        <h2 id=\"port-list\">Port list<\/h2>\n<p>StorageOS daemons listen on specific ports, which we require to be accessible\nbetween all nodes in the cluster:<\/p>\n<table>\n<thead>\n<tr>\n<th align=\"center\">Port Number<\/th>\n<th align=\"center\">TCP\/UDP<\/th>\n<th align=\"left\">Use<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">5701<\/td>\n<td align=\"center\">TCP<\/td>\n<td align=\"left\">gRPC<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5703<\/td>\n<td align=\"center\">TCP<\/td>\n<td align=\"left\">DirectFS<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5704<\/td>\n<td align=\"center\">TCP<\/td>\n<td align=\"left\">Dataplane Supervisor<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5705<\/td>\n<td align=\"center\">TCP<\/td>\n<td align=\"left\">REST API<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5711<\/td>\n<td align=\"center\">TCP &amp; UDP<\/td>\n<td align=\"left\">Gossip service<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">25705-25960<\/td>\n<td align=\"center\">TCP<\/td>\n<td align=\"left\">RWX Volume Endpoints<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>StorageOS also uses <a href=\"https:\/\/en.wikipedia.org\/wiki\/Ephemeral_port\">ephemeral<\/a>\nports to dial-out to these ports on other StorageOS nodes. For this reason,\noutgoing traffic should be enabled.<\/p>\n<h2 id=\"firewalls-and-vps-providers\">Firewalls and VPS providers<\/h2>\n<p>Some VPS providers (such as Digital Ocean) ship default firewall rulesets which\nmust be updated to allow StorageOS to run. Some example rules are shown below -\nmodify to taste.<\/p>\n<h3 id=\"ufw\">UFW<\/h3>\n<p>For distributions using UFW, such as RHEL and derivatives:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">ufw default allow outgoing\nufw allow 5701:5711\/tcp\nufw allow 5711\/udp\nufw allow 25705:25960\/tcp\n<\/code><\/pre><\/div><h3 id=\"firewalld\">Firewalld<\/h3>\n<p>For distributions that enable firewalld to control iptables such as some installations of OpenShift.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">firewall-cmd --permanent  --new-service<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>storageos\nfirewall-cmd --permanent  --service<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>storageos --add-port<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>5700-5800\/tcp --add-port<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>25705-25960\/tcp\nfirewall-cmd --add-service<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>storageos  --zone<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>public --permanent\nfirewall-cmd --reload\n<\/code><\/pre><\/div><h3 id=\"iptables\">Iptables<\/h3>\n<p>For those using plain iptables:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#8f5902;font-style:italic\"># Inbound traffic<\/span>\niptables -I INPUT -i lo -m comment --comment <span style=\"color:#4e9a06\">&#39;Permit loopback traffic&#39;<\/span> -j ACCEPT\niptables -I INPUT -m state --state ESTABLISHED,RELATED -m comment --comment <span style=\"color:#4e9a06\">&#39;Permit established traffic&#39;<\/span> -j ACCEPT\niptables -I INPUT -p tcp --dport 5701:5711 -m comment --comment <span style=\"color:#4e9a06\">&#39;StorageOS&#39;<\/span> -j ACCEPT\niptables -I INPUT -p udp --dport <span style=\"color:#0000cf;font-weight:bold\">5711<\/span> -m comment --comment <span style=\"color:#4e9a06\">&#39;StorageOS&#39;<\/span> -j ACCEPT\niptables -I INPUT -p tcp --dport 25705:25960 -m comment --comment <span style=\"color:#4e9a06\">&#39;StorageOS&#39;<\/span> -j ACCEPT\n\n<span style=\"color:#8f5902;font-style:italic\"># Outbound traffic<\/span>\niptables -I OUTPUT -o lo -m comment --comment <span style=\"color:#4e9a06\">&#39;Permit loopback traffic&#39;<\/span> -j ACCEPT\niptables -I OUTPUT -d 0.0.0.0\/0 -m comment --comment <span style=\"color:#4e9a06\">&#39;Permit outbound traffic&#39;<\/span> -j ACCEPT\n<\/code><\/pre><\/div><p>Please ensure that the iptables rules you have added above come before any\ndefault DROP or REJECT rules.<\/p>\n\n      "},{"title":"Docs: Mount Propagation","link":"https:\/\/docs.storageos.com\/docs\/prerequisites\/mountpropagation\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/prerequisites\/mountpropagation\/","description":"\n        \n        \n        <blockquote>\n<p>Modern versions of Kubernetes, Docker or other Container Runtimes enable\nmount propagation by default.<\/p>\n<\/blockquote>\n<p>StorageOS requires mount propagation enabled to present devices as volumes for\ncontainers (see linux kernel documentation\n<a href=\"http:\/\/man7.org\/linux\/man-pages\/man2\/mount.2.html\">here<\/a>).<\/p>\n<p>Certain versions of docker ship with a systemd manifest with\n<a href=\"https:\/\/www.freedesktop.org\/software\/systemd\/man\/systemd.exec.html#\">MountFlags<\/a> set\nto &lsquo;slave&rsquo;, thus preventing StorageOS from working. This can be removed or set\nto &lsquo;shared&rsquo; with a systemd drop in:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">mkdir -p \/etc\/systemd\/system\/docker.service.d\/\ncat <span style=\"color:#4e9a06\">&lt;&lt;EOF &gt; \/etc\/systemd\/system\/docker.service.d\/mount_propagation_flags.conf\n<\/span><span style=\"color:#4e9a06\">[Service]\n<\/span><span style=\"color:#4e9a06\">MountFlags=shared\n<\/span><span style=\"color:#4e9a06\">EOF<\/span>\n\n<span style=\"color:#8f5902;font-style:italic\"># systemctl daemon-reload<\/span>\n<span style=\"color:#8f5902;font-style:italic\"># systemctl restart docker.service<\/span>\n<\/code><\/pre><\/div><p>To confirm behaviour, the following command should run without error.<\/p>\n<pre><code>docker run -it --rm -v \/mnt:\/mnt:shared busybox sh -c \/bin\/date\n<\/code><\/pre><p>Orchestrators such as Kubernetes or OpenShift have their own ways of exposing\nthis setting. Kubernetes 1.10 and OpenShift 3.10 have mount propagation enabled by\ndefault. Previous versions require that feature gates are enabled on the\nKubernetes master&rsquo;s <code>controller-manager<\/code> and <code>apiserver<\/code> services and in the\n<code>kubelet<\/code> service on each node.<\/p>\n<p>Installations of orchestrators using Docker require that mount propagation is\nenabled for both.<\/p>\n<p>Refer to our installation pages for the orchestrators to see details on how to\ncheck and enable mount propagation where appropriate.<\/p>\n\n      "},{"title":"Docs: PID Limits","link":"https:\/\/docs.storageos.com\/docs\/prerequisites\/pidlimits\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/prerequisites\/pidlimits\/","description":"\n        \n        \n        <p>StorageOS recommends that a <a href=\"https:\/\/www.kernel.org\/doc\/html\/latest\/admin-guide\/cgroup-v2.html#pid\">PID\ncgroup<\/a>\nlimit of 32768 be used for StorageOS pods.<\/p>\n<blockquote>\n<p>Most environments fulfill this prerequisite by default. Check the\nStorageOS init container logs as shown below to ensure this is the case.<\/p>\n<\/blockquote>\n<p>StorageOS pods running in Kubernetes are part of a PID cgroup that may limit\nthe maximum number of PIDs that all containers in the PID cgroup slice can\nspawn. As the Linux kernel assigns a PID to processes and Light Weight\nProcesses (LWP) a low limit can be easily reached under certain circumstances.\nThe PID limit can be set by the Kubernetes distribution or by the container\nruntime. Generally the limit is set to the machine wide default limit of 32768\nbut some environments can set this as low as 1024. A low PID limit may prevent\nStorageOS from spawning the required threads.<\/p>\n<p>The <a href=\"https:\/\/github.com\/storageos\/init\">StorageOS init container<\/a> runs a script\nthat checks for the PID limit of the PID cGroup slice that the StorageOS pod\nruns in. If the\n<a href=\"https:\/\/github.com\/storageos\/init\/blob\/master\/scripts\/02-limits\/limits.sh\">script<\/a>\nfinds that the limit is less than 32768 it will log a warning. This warning can\nbe viewed using kubectl to check the init container logs.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl -n kube-system logs -l <span style=\"color:#000\">app<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>storageos,kind<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>daemonset -c storageos-init\nWARNING: Effective max.pids limit <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>1024<span style=\"color:#ce5c00;font-weight:bold\">)<\/span> less than RECOMMENDED_MAX_PIDS_LIMIT <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>32768<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"setting-a-kubernetes-pid-limit\">Setting a Kubernetes PID limit<\/h2>\n<p>Kubernetes defaults to an unlimited <code>PodPidsLimit<\/code>, which results in the usage of\nthe machine wide limit; typically 32768.<\/p>\n<p>For information on how to configure the Kubernetes PID limit see the Kubernetes\ndocumentation\n<a href=\"https:\/\/kubernetes.io\/docs\/tasks\/administer-cluster\/kubelet-config-file\/\">here<\/a>.<\/p>\n<h2 id=\"setting-a-cri-o-pid-limit\">Setting a CRI-O PID limit<\/h2>\n<p>Certain orchestrators or setups use CRI-O as the container runtime. Openshift\n4.x currently has CRI-O set a PID limit of 1024 by default. To configure the\ndefault CRI-O limit in Openshift 4.x see the RedHat documentation\n<a href=\"https:\/\/access.redhat.com\/solutions\/5305611\">here<\/a>. To configure CRI-O more\ngenerally see the CRI-O documentation\n<a href=\"https:\/\/github.com\/cri-o\/cri-o\/blob\/master\/docs\/crio.conf.5.md\">here<\/a>.<\/p>\n\n      "},{"title":"Docs: StorageOS Best Practices","link":"https:\/\/docs.storageos.com\/docs\/best-practices\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/best-practices\/","description":"\n        \n        \n        <h2 id=\"use-an-external-etcd-cluster\">Use an external Etcd cluster<\/h2>\n<p>StorageOS uses the <code>etcd<\/code> distributed key-value store to store essential cluster\nmetadata and manage distributed configuration state. For production environments\nand testing of production workloads, <strong>we recommend deploying an external etcd\ncluster.<\/strong> For more details about, and an example of, how to run etcd, see the\n<a href=\"https:\/\/docs.storageos.com\/docs\/operations\/external-etcd\">External etcd Operations<\/a> page.<\/p>\n<p>It is highly recommended to use external etcd for <strong>cloud environments<\/strong> and\nplace the etcd cluster on stable nodes. Placing the etcd on nodes that are\nrecycled often might affect the normal operations of StorageOS.<\/p>\n<h2 id=\"etcd-low-latency-io\">Etcd low latency IO<\/h2>\n<p>It is recommended to run etcd on low-latency disks and keep other IO-intensive\napplications separate from the etcd nodes. Etcd is very sensitive to IO latency.\nThus, the effect of disk contention can cause etcd downtime.<\/p>\n<p>Batch jobs such as backups, builds or application bundling can easily cause a\nhigh usage of disks making etcd unstable. It is recommended to run such\nworkloads apart from the etcd servers.<\/p>\n<h2 id=\"setup-of-storage-on-the-hosts\">Setup of storage on the hosts<\/h2>\n<p>We recommend creating a separate filesystem for StorageOS to mitigate the risk\nof filling the root filesystem on nodes. This has to be done for each node in\nthe cluster.<\/p>\n<p>Follow the <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/managing-host-storage\/\">managing host storage<\/a> best practices page for more\ndetails.<\/p>\n<h2 id=\"resource-reservations\">Resource reservations<\/h2>\n<p>StorageOS resource consumption depends on the workloads and the StorageOS\nfeatures in use.<\/p>\n<p>The recommended minimum memory reservation for the StorageOS Pods is 512MB for\nnon-production environments. However it is recommended to prepare nodes so\nStorageOS can operate with at least with 1-2GB of memory. StorageOS frees\nmemory when possible.<\/p>\n<p>For production environments, we recommend 4GB of Memory and 1 CPU as a minimum\nand to test StorageOS using realistic workloads and tune resources accordingly.<\/p>\n<p>StorageOS Pods resource allocation will impact directly on the availability of\nvolumes in case of eviction or resource limit triggered restart. It is\nrecommended to not limit StorageOS Pods.<\/p>\n<p>StorageOS implements a storage engine, therefore limiting CPU consumption might\naffect the I\/O throughput of your volumes.<\/p>\n<h2 id=\"setting-a-kubernetes-pid-limit\">Setting a Kubernetes PID limit<\/h2>\n<p>StorageOS recommends that a PID cgroup limit of 32768 be set. StorageOS is a\nmulti-threaded application and while most Kubernetes distributions set the PID\ncgroup limit to 32768, some environments can set a limit as low as 1024. The\nStorageOS init container will print a log message warning if the PID cgroup\nlimit is too low. See our <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/pidlimits\">prerequisites<\/a> for\nmore information.<\/p>\n<h2 id=\"maintain-a-sufficient-number-of-nodes-for-replicas-to-be-created\">Maintain a sufficient number of nodes for replicas to be created<\/h2>\n<p>To ensure that a new replica can always be created, an additional node should\nbe available. To guarantee high availability, clusters using Volumes with 1\nreplica must have at least 3 storage nodes. When using Volumes with 2\nreplicas, at least 4 storage nodes, 3 replicas, 5 nodes, etc.<\/p>\n<p>Minimum number of storage nodes = 1 (primary) + N (replicas) + 1<\/p>\n<p>For more information, see the section on\n<a href=\"https:\/\/docs.storageos.com\/docs\/concepts\/replication\/#number-of-nodes\">replication<\/a>.<\/p>\n<h2 id=\"storageos-api-usernamepassword\">StorageOS API username\/password<\/h2>\n<p>The API grants full access to StorageOS functionality, therefore we recommend\nthat the default administrative password of &lsquo;storageos&rsquo; is reset to something\nunique and strong.<\/p>\n<p>You can change the default parameters by encoding the <code>apiUsername<\/code> and\n<code>apiPassword<\/code> values (in base64) into the <code>storageos-api<\/code> secret.<\/p>\n<p>To generate a unique password, a technique such as the following, which\ngenerates a pseudo-random 24 character string, may be used:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#8f5902;font-style:italic\"># Generate strong password<\/span>\n<span style=\"color:#000\">PASSWORD<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#204a87;font-weight:bold\">$(<\/span>cat -e \/dev\/urandom <span style=\"color:#000;font-weight:bold\">|<\/span> tr -dc <span style=\"color:#4e9a06\">&#39;a-zA-Z0-9-!@#$%^&amp;*()_+~&#39;<\/span> <span style=\"color:#000;font-weight:bold\">|<\/span> fold -w <span style=\"color:#0000cf;font-weight:bold\">24<\/span> <span style=\"color:#000;font-weight:bold\">|<\/span> head -n 1<span style=\"color:#204a87;font-weight:bold\">)<\/span>\n\n<span style=\"color:#8f5902;font-style:italic\"># Convert password to base64 representation for embedding in a K8S secret<\/span>\n<span style=\"color:#000\">BASE64PASSWORD<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#204a87;font-weight:bold\">$(<\/span><span style=\"color:#204a87\">echo<\/span> -n <span style=\"color:#000\">$PASSWORD<\/span> <span style=\"color:#000;font-weight:bold\">|<\/span> base64<span style=\"color:#204a87;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><p>Note that the Kubernetes secret containing a strong password <em>must<\/em> be created\nbefore bootstrapping the cluster. Multiple installation procedures use this\nSecret to create a StorageOS account when the cluster first starts.<\/p>\n<h2 id=\"storageos-pod-placement\">StorageOS Pod placement<\/h2>\n<p>StorageOS must run on all nodes that will contribute storage capacity to the\ncluster or that will host Pods which use StorageOS volumes. For production\nenvironments, it is recommended to avoid placing StorageOS Pods on Master\nnodes.<\/p>\n<p>StorageOS is deployed with a DaemonSet controller, and therefore tolerates the\nstandard unschedulable (:NoSchedule) action. If that is the only taint placed\non master or cordoned nodes StorageOS pods might start on them (see the\nKubernetes\n<a href=\"https:\/\/kubernetes.io\/docs\/concepts\/workloads\/controllers\/daemonset\/\">docs<\/a>\nfor more details). To avoid scheduling StorageOS pods on master nodes, you can\nadd an arbitrary taint to them for which the StorageOS DaemonSet won&rsquo;t have a\ntoleration.<\/p>\n<h2 id=\"dedicated-instance-groups\">Dedicated instance groups<\/h2>\n<p>Cloud environments give users the ability to quickly scale the number of nodes\nin a cluster in response to their needs. Because of the ephemeral nature of the\ncloud, StorageOS recommends setting conservative downscaling policies.<\/p>\n<p>For production clusters, it recommended to use dedicated instance groups for\nStateful applications that allow the user to set different scaling policies and\ndefine StorageOS pools based on node selectors to collocate volumes.<\/p>\n<p>Losing a few nodes at the same time could cause the loss of data even when\nvolume replicas are being used.<\/p>\n<h2 id=\"port-blocking\">Port blocking<\/h2>\n<p>StorageOS exposes ports to operate. It is recommended that the <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/firewalls\/\">ports<\/a> are not accessible from outside\nthe scope of your cluster.<\/p>\n<h2 id=\"storageos-in-docker-ee\">StorageOS in Docker EE<\/h2>\n<p>StorageOS does not support running on Swarm nodes nor on mixed (Kubernetes and\nSwarm) nodes. StorageOS volumes have to be provisioned and used from Kubernetes\nnodes.<\/p>\n\n      "},{"title":"Docs: Max AIO","link":"https:\/\/docs.storageos.com\/docs\/prerequisites\/max-aio\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/prerequisites\/max-aio\/","description":"\n        \n        \n        <p>As part of the dataplane operation, StorageOS uses Linux AIO (Asynchronous\nInput Output) contexts to serve I\/O requests without blocking. StorageOS\nrequires 4 AIO contexts per deployment (i.e. a StorageOS volume deployment,\nwhether master or replica).<\/p>\n<h2 id=\"max-aio-prerequisite\">Max AIO prerequisite.<\/h2>\n<p>By default there is a maximum number of AIO contexts that can be allocated at\nonce.<\/p>\n<p>The current and maximum number of AIO requests is visible in the virtual\nfiles <code>\/proc\/sys\/fs\/aio-nr<\/code> and <code>\/proc\/sys\/fs\/aio-max-nr<\/code>.<\/p>\n<p>The default context limit has been set at 2^16 or 65536. This figure may vary\nso please check your <code>\/proc\/sys\/fs\/aio-max-nr<\/code><\/p>\n<p>When <code>aio-nr<\/code> reaches <code>aio-max-nr<\/code> the <code>io_setup<\/code> syscall will fail with\nEAGAIN. For more information please see the Linux kernel docs\n<a href=\"https:\/\/www.kernel.org\/doc\/Documentation\/sysctl\/fs.txt\">here.<\/a><\/p>\n<h2 id=\"why-is-this-relevant\">Why is this relevant?<\/h2>\n<p>As StorageOS requires 4 AIO contexts per deployed volume, there is a limit to\nthe number of volumes that can be deployed per node. Trying to provision\nadditional deployments once the <code>aio-max-nr<\/code> has been reached will fail as the\nkernel will be unable to create enough new AIO contexts.<\/p>\n<h2 id=\"increasing-your-aio-context-cap\">Increasing your AIO context cap.<\/h2>\n<p>If your nodes <code>aio-max-nr<\/code> is set too low you can either provision additional\nnodes to reduce the number of deployments per node, or increase the <code>aio-max-nr<\/code>\nkernel parameter.<\/p>\n<p>You can do this by editing your <code>\/etc\/sysctl.conf<\/code> file with the following\nexample line:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">fs.aio-max-nr <span style=\"color:#ce5c00;font-weight:bold\">=<\/span> <span style=\"color:#0000cf;font-weight:bold\">1048576<\/span>\n<\/code><\/pre><\/div><p>To activate the new settings, run the following command:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ sysctl -p \/etc\/sysctl.conf\n<\/code><\/pre><\/div>\n      "},{"title":"Docs: Etcd","link":"https:\/\/docs.storageos.com\/docs\/prerequisites\/etcd\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/prerequisites\/etcd\/","description":"\n        \n        \n        <p>StorageOS requires an etcd cluster in order to function. For more information\non why etcd is required please see our <a href=\"https:\/\/docs.storageos.com\/docs\/concepts\/etcd\/\">etcd concepts<\/a> page.<\/p>\n<p>We do not support using the Kubernetes etcd for StorageOS installations.<\/p>\n<p>We provide two methods for installing etcd. For those looking for a quick\nroute to evaluating StorageOS, our first method installs etcd into your\nKubernetes cluster using the CoreOS operator. Due to limitations in the CoreOS\noperator, this installation is not backed by any persistent storage, and\ntherefore is unsuitable for production installations.<\/p>\n<p>For production installations, there is currently no satisfactory way of\ninstalling a production-grade etcd cluster inside Kubernetes (although the\nlandscape is changing rapidly, watch this space), and our production guidance\nremains to install etcd on separate machines outside of your Kubernetes\ncluster. This method is the best way to ensure a stable StorageOS cluster.\nPlease see our etcd operations page for additional information on deployment\n<a href=\"https:\/\/docs.storageos.com\/docs\/operations\/etcd\/\">best practices<\/a> and concerns.<\/p>\n<ol>\n<li>Ephemeral pods within Kubernetes (<em>Testing<\/em>)<\/li>\n<li>External Virtual Machines (<em>Production<\/em>)<\/li>\n<\/ol>\n<p>Click the tabs below to select the installation method of your choice.<\/p>\n<nav>\n\t<div class=\"nav nav-tabs\" id=\"nav-tab\" role=\"tablist\">\n\n\t\t\n\t\t\n\t\t\n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link active\" id=\"nav-9\" data-toggle=\"tab\" href=\"#testing\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"true\">Testing<\/a>\n\n            \n\t\t\n\n            \n            \n\n            \n            \n\n            \n\n            \n\n\t\t<a class=\"nav-item nav-link\" id=\"nav-9\" data-toggle=\"tab\" href=\"#production\" role=\"tab\"\n\t\t   aria-controls=\"nav-home\" aria-selected=\"false\">Production<\/a>\n\n            \n\t\t\n\n\t<\/div>\n<\/nav>\n\n<div class=\"tab-content\" id=\"9\">\n    <br><\/br>\n\n\n\n\n\n\n\n\n<div class=\"tab-pane fade show active\" id=\"testing\" role=\"tabpanel\" aria-labelledby=\"nav-testing\">\n    <h2 id=\"testing---installing-etcd-into-your-kubernetes-cluster\">Testing - Installing Etcd Into Your Kubernetes Cluster<\/h2>\n<p><strong>This fast and convenient method is useful for quickly creating an etcd\ncluster in order to evaluate StorageOS. Do not use it for production\ninstallations.<\/strong><\/p>\n<p>This method uses the <a href=\"https:\/\/github.com\/coreos\/etcd-operator\">CoreOS\netcd-operator<\/a> to install a 3 node\netcd cluster within your Kubernetes cluster, in the <code>storageos-etcd<\/code>\nnamespace. We then install a Kubernetes service in that same namespace.<\/p>\n<p>The official etcd-operator repository also has a backup deployment operator\nthat can help backup etcd data. <strong>A restore of the etcd keyspace from a backup\nmight cause issues<\/strong> due to the disparity between the cluster state and its\nmetadata in a different point in time. If you need to restore from a backup\nafter a failure of etcd, contact the StorageOS support team.<\/p>\n<h3 id=\"quick-install\">Quick Install<\/h3>\n<p>For a one command install, the following script uses <code>kubectl<\/code> to create an\netcd cluster in the <code>storageos-etcd<\/code> namespace. It requires kubectl in the\nsystem path, and the context set to the appropriate cluster.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">curl -s https:\/\/docs.storageos.com\/sh\/deploy-etcd.sh <span style=\"color:#000;font-weight:bold\">|<\/span> bash\n<\/code><\/pre><\/div><h3 id=\"installation-step-by-step\">Installation Step by Step<\/h3>\n<p>For those who would prefer to execute the steps by themselves, they are as\nfollows:<\/p>\n<ol>\n<li>\n<p>Configure Namespace<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#204a87\">export<\/span> <span style=\"color:#000\">NAMESPACE<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>storageos-etcd\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Create Namespace<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl create namespace <span style=\"color:#000\">$NAMESPACE<\/span>\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>If running in Openshift, an SCC is needed to start Pods<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">oc adm policy add-scc-to-user anyuid system:serviceaccount:<span style=\"color:#000\">$NAMESPACE<\/span>:default\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Create ClusterRole and ClusterRoleBinding<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"> $ kubectl -n <span style=\"color:#000\">$NAMESPACE<\/span> create -f-<span style=\"color:#4e9a06\">&lt;&lt;END\n<\/span><span style=\"color:#4e9a06\"> apiVersion: rbac.authorization.k8s.io\/v1beta1\n<\/span><span style=\"color:#4e9a06\"> kind: ClusterRoleBinding\n<\/span><span style=\"color:#4e9a06\"> metadata:\n<\/span><span style=\"color:#4e9a06\">   name: etcd-operator\n<\/span><span style=\"color:#4e9a06\"> roleRef:\n<\/span><span style=\"color:#4e9a06\">   apiGroup: rbac.authorization.k8s.io\n<\/span><span style=\"color:#4e9a06\">   kind: ClusterRole\n<\/span><span style=\"color:#4e9a06\">   name: etcd-operator\n<\/span><span style=\"color:#4e9a06\"> subjects:\n<\/span><span style=\"color:#4e9a06\">   - kind: ServiceAccount\n<\/span><span style=\"color:#4e9a06\">     name: default\n<\/span><span style=\"color:#4e9a06\">     namespace: $NAMESPACE\n<\/span><span style=\"color:#4e9a06\">END<\/span>\n<\/code><\/pre><\/div><div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl -n <span style=\"color:#000\">$NAMESPACE<\/span> create -f-<span style=\"color:#4e9a06\">&lt;&lt;END\n<\/span><span style=\"color:#4e9a06\">apiVersion: rbac.authorization.k8s.io\/v1beta1\n<\/span><span style=\"color:#4e9a06\">kind: ClusterRole\n<\/span><span style=\"color:#4e9a06\">metadata:\n<\/span><span style=\"color:#4e9a06\">  name: etcd-operator\n<\/span><span style=\"color:#4e9a06\">rules:\n<\/span><span style=\"color:#4e9a06\">- apiGroups:\n<\/span><span style=\"color:#4e9a06\">  - etcd.database.coreos.com\n<\/span><span style=\"color:#4e9a06\">  resources:\n<\/span><span style=\"color:#4e9a06\">  - etcdclusters\n<\/span><span style=\"color:#4e9a06\">  - etcdbackups\n<\/span><span style=\"color:#4e9a06\">  - etcdrestores\n<\/span><span style=\"color:#4e9a06\">  verbs:\n<\/span><span style=\"color:#4e9a06\">  - &#34;*&#34;\n<\/span><span style=\"color:#4e9a06\">- apiGroups:\n<\/span><span style=\"color:#4e9a06\">  - apiextensions.k8s.io\n<\/span><span style=\"color:#4e9a06\">  resources:\n<\/span><span style=\"color:#4e9a06\">   - customresourcedefinitions\n<\/span><span style=\"color:#4e9a06\">  verbs:\n<\/span><span style=\"color:#4e9a06\">  - &#34;*&#34;\n<\/span><span style=\"color:#4e9a06\">- apiGroups:\n<\/span><span style=\"color:#4e9a06\">  - &#34;&#34;\n<\/span><span style=\"color:#4e9a06\">  resources:\n<\/span><span style=\"color:#4e9a06\">  - pods\n<\/span><span style=\"color:#4e9a06\">  - services\n<\/span><span style=\"color:#4e9a06\">  - endpoints\n<\/span><span style=\"color:#4e9a06\">  - persistentvolumeclaims\n<\/span><span style=\"color:#4e9a06\">  - events\n<\/span><span style=\"color:#4e9a06\">  verbs:\n<\/span><span style=\"color:#4e9a06\">  - &#34;*&#34;\n<\/span><span style=\"color:#4e9a06\">- apiGroups:\n<\/span><span style=\"color:#4e9a06\">  - apps\n<\/span><span style=\"color:#4e9a06\">  resources:\n<\/span><span style=\"color:#4e9a06\">  - deployments\n<\/span><span style=\"color:#4e9a06\">  verbs:\n<\/span><span style=\"color:#4e9a06\">  - &#34;*&#34;\n<\/span><span style=\"color:#4e9a06\"># The following permissions can be removed if not using S3 backup and TLS\n<\/span><span style=\"color:#4e9a06\">- apiGroups:\n<\/span><span style=\"color:#4e9a06\">  - &#34;&#34;\n<\/span><span style=\"color:#4e9a06\">  resources:\n<\/span><span style=\"color:#4e9a06\">  - secrets\n<\/span><span style=\"color:#4e9a06\">  verbs:\n<\/span><span style=\"color:#4e9a06\">  - get\n<\/span><span style=\"color:#4e9a06\">END<\/span>\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Deploy Etcd Operator<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl -n <span style=\"color:#000\">$NAMESPACE<\/span> create -f - <span style=\"color:#4e9a06\">&lt;&lt;END\n<\/span><span style=\"color:#4e9a06\">apiVersion: apps\/v1\n<\/span><span style=\"color:#4e9a06\">kind: Deployment\n<\/span><span style=\"color:#4e9a06\">metadata:\n<\/span><span style=\"color:#4e9a06\">  name: etcd-operator\n<\/span><span style=\"color:#4e9a06\">spec:\n<\/span><span style=\"color:#4e9a06\">  selector:\n<\/span><span style=\"color:#4e9a06\">    matchLabels:\n<\/span><span style=\"color:#4e9a06\">      app: etcd-operator\n<\/span><span style=\"color:#4e9a06\">  replicas: 1\n<\/span><span style=\"color:#4e9a06\">  template:\n<\/span><span style=\"color:#4e9a06\">    metadata:\n<\/span><span style=\"color:#4e9a06\">      labels:\n<\/span><span style=\"color:#4e9a06\">        app: etcd-operator\n<\/span><span style=\"color:#4e9a06\">    spec:\n<\/span><span style=\"color:#4e9a06\">      containers:\n<\/span><span style=\"color:#4e9a06\">      - name: etcd-operator\n<\/span><span style=\"color:#4e9a06\">        image: quay.io\/coreos\/etcd-operator:v0.9.4\n<\/span><span style=\"color:#4e9a06\">        command:\n<\/span><span style=\"color:#4e9a06\">        - etcd-operator\n<\/span><span style=\"color:#4e9a06\">        env:\n<\/span><span style=\"color:#4e9a06\">        - name: MY_POD_NAMESPACE\n<\/span><span style=\"color:#4e9a06\">          valueFrom:\n<\/span><span style=\"color:#4e9a06\">            fieldRef:\n<\/span><span style=\"color:#4e9a06\">              fieldPath: metadata.namespace\n<\/span><span style=\"color:#4e9a06\">        - name: MY_POD_NAME\n<\/span><span style=\"color:#4e9a06\">          valueFrom:\n<\/span><span style=\"color:#4e9a06\">            fieldRef:\n<\/span><span style=\"color:#4e9a06\">              fieldPath: metadata.name\n<\/span><span style=\"color:#4e9a06\">END<\/span>\n<\/code><\/pre><\/div><p>Wait for the Etcd Operator Pod to start<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl -n <span style=\"color:#000\">$NAMESPACE<\/span> get pod -lapp<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>etcd-operator\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Create the EtcdCluster resource<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\">$<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>kubectl<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>-n<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>$NAMESPACE<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>create<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>-f<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>- &lt;&lt;END<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;etcd.database.coreos.com\/v1beta2&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;EtcdCluster&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-etcd&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">size<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#0000cf;font-weight:bold\">3<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">version<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;3.4.7&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">pod<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">etcdEnv<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- <span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>ETCD_QUOTA_BACKEND_BYTES<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">value<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;2147483648&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># 2 GB<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- <span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>ETCD_AUTO_COMPACTION_RETENTION<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">value<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;1000&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># Keep 1000 revisions (default)<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- <span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>ETCD_AUTO_COMPACTION_MODE<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">value<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;revision&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># Set the revision mode<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">resources<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">requests<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">cpu<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>200m<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">memory<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>300Mi<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">securityContext<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">runAsNonRoot<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">true<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">runAsUser<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#0000cf;font-weight:bold\">9000<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">fsGroup<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#0000cf;font-weight:bold\">9000<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">tolerations<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- <span style=\"color:#204a87;font-weight:bold\">operator<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;Exists&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">affinity<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">podAntiAffinity<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">preferredDuringSchedulingIgnoredDuringExecution<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span>- <span style=\"color:#204a87;font-weight:bold\">weight<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#0000cf;font-weight:bold\">100<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">          <\/span><span style=\"color:#204a87;font-weight:bold\">podAffinityTerm<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">            <\/span><span style=\"color:#204a87;font-weight:bold\">labelSelector<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">              <\/span><span style=\"color:#204a87;font-weight:bold\">matchExpressions<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">              <\/span>- <span style=\"color:#204a87;font-weight:bold\">key<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>etcd_cluster<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">                <\/span><span style=\"color:#204a87;font-weight:bold\">operator<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>In<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">                <\/span><span style=\"color:#204a87;font-weight:bold\">values<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">                <\/span>- storageos-etcd<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">            <\/span><span style=\"color:#204a87;font-weight:bold\">topologyKey<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>kubernetes.io\/hostname<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span>END<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><\/li>\n<\/ol>\n<h3 id=\"installation-verification\">Installation Verification<\/h3>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl -n storageos-etcd get pod,svc\nNAME                                 READY   STATUS    RESTARTS   AGE\npod\/etcd-operator-55978c4587-8kx7b   1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          2h\npod\/storageos-etcd-qm9tmrpnlm        1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          2h\npod\/storageos-etcd-rzhjdz74hp        1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          2h\npod\/storageos-etcd-wvvv2d9g98        1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          2h\n\nNAME                            TYPE        CLUSTER-IP       EXTERNAL-IP PORT<span style=\"color:#ce5c00;font-weight:bold\">(<\/span>S<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>             AGE\nservice\/storageos-etcd          ClusterIP   None             &lt;none&gt;      2379\/TCP,2380\/TCP   22h\nservice\/storageos-etcd-client   ClusterIP   172.30.132.255   &lt;none&gt;      2379\/TCP            22h\n<\/code><\/pre><\/div><blockquote>\n<p>The URL from the Service <code>storageos-etcd-client.storageos-etcd.svc:2379<\/code>\nwill be used later in the StorageOS Cluster CustomResource the\n<code>kvBackend.address<\/code>.<\/p>\n<\/blockquote>\n<h2 id=\"known-etcd-operator-issues\">Known etcd-operator issues<\/h2>\n<p>Etcd is a distributed key-value store database focused on strong consistency.\nThat means that etcd nodes perform operations across the cluster to ensure\nquorum. If quorum is lost, etcd nodes stop and etcd marks its contents as\nread-only. This is because it cannot guarantee that new data will be valid.\nQuorum is fundamental for etcd operations. When running etcd using the CoreOS\nOperator, it is important to consider that a loss of quorum could arise from\netcd pods being evicted from nodes.<\/p>\n<p>Operations such as Kubernetes Upgrades with rolling node pools could cause a\ntotal failure of the etcd cluster as nodes are discarded in favor of new ones.<\/p>\n<p>A 3 etcd node cluster can survive losing one node and recover, a 5 node\ncluster can survive the loss of two nodes. Loss of further nodes will result in quorum being lost.<\/p>\n<p><strong>The etcd-operator doesn&rsquo;t support a full stop of the cluster. Stopping the\netcd cluster causes the loss of all the etcd keystore and make StorageOS\nunable to perform metadata changes.<\/strong><\/p>\n\n<\/div>\n\n\n\n\n\n\n\n\n\n<div class=\"tab-pane fade\" id=\"production\" role=\"tabpanel\" aria-labelledby=\"nav-production\">\n    <h2 id=\"production---etcd-on-external-virtual-machines\">Production - Etcd on External Virtual Machines<\/h2>\n<p>For production installations, StorageOS strongly recommends running etcd\noutside of Kubernetes on a minimum of 3 dedicated virtual machines. This\ntopology offers strong guarantees of resilience and uptime. We recommend this\narchitecture in all environments, including those where Kubernetes is being\ndeployed as a managed service.<\/p>\n<p>StorageOS doesn&rsquo;t require a high performance etcd cluster, as the throughput\nof metadata to the cluster is low. However, we recommend a careful assessment\nof IOPS capacity <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/etcd\/#iops-requirements\">best practices<\/a> to ensure that etcd\noperates normally.<\/p>\n<p>Depending on the level of redundancy you feel comfortable with you can install\netcd on the Kubernetes Master nodes. <strong>Take extreme care to avoid collisions\nof the StorageOS etcd installation with the Kubernetes etcd when using the\nKubernetes Master nodes. Precautions such as changing the default\nconfiguration for the client and peer ports, and ensuring the etcd data\ndirectory is modified. The ansible playbook below will default the etcd\ninstallation directory to <code>\/var\/lib\/storageos-etcd<\/code>.<\/strong><\/p>\n<p>You can choose between two installation options.<\/p>\n<ul>\n<li><a href=\"#installation---manual\">Manual Installation<\/a><\/li>\n<li><a href=\"#installation---ansible\">Ansible Installation<\/a><\/li>\n<\/ul>\n<h3 id=\"installation---manual\">Installation - Manual<\/h3>\n<p>This section documents the steps required for manual installation of etcd\nusing standard package management commands and systemd manifests.<\/p>\n<blockquote>\n<p><strong>Repeat the following steps on all the nodes that will run etcd as a\nsystemd service.<\/strong><\/p>\n<\/blockquote>\n<ol>\n<li>\n<p>Configure Etcd version and ports<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#204a87\">export<\/span> <span style=\"color:#000\">ETCD_VERSION<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;3.4.9&#34;<\/span>\n<span style=\"color:#204a87\">export<\/span> <span style=\"color:#000\">CLIENT_PORT<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;2379&#34;<\/span>\n<span style=\"color:#204a87\">export<\/span> <span style=\"color:#000\">PEERS_PORT<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;2380&#34;<\/span>\n<\/code><\/pre><\/div><blockquote>\n<p><strong>If targeting Kubernetes Master nodes, you must change\n<code>CLIENT_PORT<\/code>, <code>PEERS_PORT<\/code><\/strong><\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Download Etcd from CoreOS official site<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">curl -L https:\/\/github.com\/coreos\/etcd\/releases\/download\/v<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">ETCD_VERSION<\/span><span style=\"color:#4e9a06\">}<\/span>\/etcd-v<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">ETCD_VERSION<\/span><span style=\"color:#4e9a06\">}<\/span>-linux-amd64.tar.gz -o \/tmp\/etcd-<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">ETCD_VERSION<\/span><span style=\"color:#4e9a06\">}<\/span>-linux-amd64.tar.gz\nmkdir -p \/tmp\/etcd-v<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">ETCD_VERSION<\/span><span style=\"color:#4e9a06\">}<\/span>-linux-amd64\ntar -xzvf \/tmp\/etcd-<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">ETCD_VERSION<\/span><span style=\"color:#4e9a06\">}<\/span>-linux-amd64.tar.gz -C \/tmp\/etcd-v<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">ETCD_VERSION<\/span><span style=\"color:#4e9a06\">}<\/span>-linux-amd64 --strip-components<span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#0000cf;font-weight:bold\">1<\/span>\nrm \/tmp\/etcd-<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">ETCD_VERSION<\/span><span style=\"color:#4e9a06\">}<\/span>-linux-amd64.tar.gz\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Install Etcd binaries<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#204a87\">cd<\/span> \/tmp\/etcd-v<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">ETCD_VERSION<\/span><span style=\"color:#4e9a06\">}<\/span>-linux-amd64\nmv etcd \/usr\/local\/sbin\/etcd3\nmv etcdctl \/usr\/local\/sbin\/etcdctl\nchmod <span style=\"color:#0000cf;font-weight:bold\">0755<\/span> \/usr\/local\/sbin\/etcd3 \/usr\/local\/sbin\/etcdctl\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Set up persistent Etcd data directory<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">mkdir \/var\/lib\/storageos-etcd\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Create the systemd environment file<\/p>\n<p>On all nodes that will run etcd create a systemd environemnt file\n<code>\/etc\/etcd.conf<\/code> which has the IPs of all the nodes. The <code>NODE_IP<\/code> will\nneed to change to correspond to the node IP where the environment file\nresides. <code>NODE1_IP<\/code>, <code>NODE2_IP<\/code> and <code>NODE3_IP<\/code> will remain the same across\nall three files.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ cat <span style=\"color:#4e9a06\">&lt;&lt;END &gt; \/etc\/etcd.conf\n<\/span><span style=\"color:#4e9a06\"># NODE_IP is the IP of the node where this file resides.\n<\/span><span style=\"color:#4e9a06\">NODE_IP=10.64.10.228\n<\/span><span style=\"color:#4e9a06\"># Node 1 IP\n<\/span><span style=\"color:#4e9a06\">NODE1_IP=10.64.10.228\n<\/span><span style=\"color:#4e9a06\"># Node 2 IP\n<\/span><span style=\"color:#4e9a06\">NODE2_IP=10.64.14.233\n<\/span><span style=\"color:#4e9a06\"># Node 3 IP  \n<\/span><span style=\"color:#4e9a06\">NODE3_IP=10.64.12.111\n<\/span><span style=\"color:#4e9a06\">CLIENT_PORT=${CLIENT_PORT}\n<\/span><span style=\"color:#4e9a06\">PEERS_PORT=${PEERS_PORT}\n<\/span><span style=\"color:#4e9a06\">END<\/span>\n\n<span style=\"color:#8f5902;font-style:italic\"># Verify that variables are expanded in the file<\/span>\n$ cat \/etc\/etcd.conf\n\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Create the systemd unit file for etcd3 service<\/p>\n<p>Create a systemd unit file <code>\/etc\/systemd\/system\/etcd3.service<\/code> with the\nfollowing information:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#ce5c00;font-weight:bold\">[<\/span>Unit<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n<span style=\"color:#000\">Description<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>etcd3\n<span style=\"color:#000\">Documentation<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>https:\/\/github.com\/coreos\/etcd\n<span style=\"color:#000\">Conflicts<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>etcd2.service\n\n<span style=\"color:#ce5c00;font-weight:bold\">[<\/span>Service<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n<span style=\"color:#000\">Type<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>notify\n<span style=\"color:#000\">Restart<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>always\n<span style=\"color:#000\">RestartSec<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>5s\n<span style=\"color:#000\">LimitNOFILE<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#0000cf;font-weight:bold\">40000<\/span>\n<span style=\"color:#000\">TimeoutStartSec<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#0000cf;font-weight:bold\">0<\/span>\n<span style=\"color:#000\">EnvironmentFile<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>\/etc\/etcd.conf\n\n<span style=\"color:#000\">ExecStart<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>\/usr\/local\/sbin\/etcd3 --name etcd-<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE_IP<\/span><span style=\"color:#4e9a06\">}<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --heartbeat-interval <span style=\"color:#0000cf;font-weight:bold\">500<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --election-timeout <span style=\"color:#0000cf;font-weight:bold\">5000<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --max-snapshots <span style=\"color:#0000cf;font-weight:bold\">10<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --max-wals <span style=\"color:#0000cf;font-weight:bold\">10<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --data-dir \/var\/lib\/storageos-etcd <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --quota-backend-bytes <span style=\"color:#0000cf;font-weight:bold\">8589934592<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --snapshot-count <span style=\"color:#0000cf;font-weight:bold\">100000<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --auto-compaction-retention <span style=\"color:#0000cf;font-weight:bold\">20000<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --auto-compaction-mode revision <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --initial-cluster-state new <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --initial-cluster-token etcd-token <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --listen-client-urls http:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">CLIENT_PORT<\/span><span style=\"color:#4e9a06\">}<\/span>,http:\/\/127.0.0.1:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">CLIENT_PORT<\/span><span style=\"color:#4e9a06\">}<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --advertise-client-urls http:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">CLIENT_PORT<\/span><span style=\"color:#4e9a06\">}<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --listen-peer-urls http:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">PEERS_PORT<\/span><span style=\"color:#4e9a06\">}<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --initial-advertise-peer-urls http:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">PEERS_PORT<\/span><span style=\"color:#4e9a06\">}<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --initial-cluster etcd-<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE1_IP<\/span><span style=\"color:#4e9a06\">}<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>http:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE1_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">PEERS_PORT<\/span><span style=\"color:#4e9a06\">}<\/span>,etcd-<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE2_IP<\/span><span style=\"color:#4e9a06\">}<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>http:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE2_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">PEERS_PORT<\/span><span style=\"color:#4e9a06\">}<\/span>,etcd-<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE3_IP<\/span><span style=\"color:#4e9a06\">}<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>http:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE3_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">PEERS_PORT<\/span><span style=\"color:#4e9a06\">}<\/span>\n\n\n<span style=\"color:#ce5c00;font-weight:bold\">[<\/span>Install<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n<span style=\"color:#000\">WantedBy<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>multi-user.target\n<\/code><\/pre><\/div><blockquote>\n<p><code>$NODE_IP<\/code> is the IP address of the machine you are installing etcd on.`<\/p>\n<\/blockquote>\n<blockquote>\n<p>Note that setting the advertise-client-urls incorrectly will cause any\nclient connection to fail. StorageOS will fail to communicate to Etcd.<\/p>\n<\/blockquote>\n<blockquote>\n<p>If enabling TLS, it is recomended to generate your own CA certificate\nand key. You will need to distribute the keys and certificates for the\nclient auth on all etcd nodes. Moreover, the <code>ExecStart<\/code> value should\nlook as below:<\/p>\n<\/blockquote>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">    <span style=\"color:#000\">ExecStart<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>\/usr\/local\/sbin\/etcd3 --name etcd-<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE_IP<\/span><span style=\"color:#4e9a06\">}<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --heartbeat-interval <span style=\"color:#0000cf;font-weight:bold\">500<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --election-timeout <span style=\"color:#0000cf;font-weight:bold\">5000<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --max-snapshots <span style=\"color:#0000cf;font-weight:bold\">10<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --max-wals <span style=\"color:#0000cf;font-weight:bold\">10<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --data-dir \/var\/lib\/storageos-etcd <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --quota-backend-bytes <span style=\"color:#0000cf;font-weight:bold\">8589934592<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --snapshot-count <span style=\"color:#0000cf;font-weight:bold\">100000<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --auto-compaction-retention <span style=\"color:#0000cf;font-weight:bold\">20000<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --auto-compaction-mode revision <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --peer-auto-tls <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --client-cert-auth --trusted-ca-file<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>\/path\/to\/client-cert.pem <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --cert-file<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>\/path\/to\/ca.pem <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --key-file<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>\/path\/to\/client-key.pem <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --initial-cluster-state new <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --initial-cluster-token etcd-token <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --listen-client-urls https:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">CLIENT_PORT<\/span><span style=\"color:#4e9a06\">}<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --advertise-client-urls https:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">CLIENT_PORT<\/span><span style=\"color:#4e9a06\">}<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --listen-peer-urls https:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">PEERS_PORT<\/span><span style=\"color:#4e9a06\">}<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --initial-advertise-peer-urls https:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">PEERS_PORT<\/span><span style=\"color:#4e9a06\">}<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>    --initial-cluster etcd-<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE1_IP<\/span><span style=\"color:#4e9a06\">}<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>https:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE1_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">PEERS_PORT<\/span><span style=\"color:#4e9a06\">}<\/span>,etcd-<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE2_IP<\/span><span style=\"color:#4e9a06\">}<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>https:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE2_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">PEERS_PORT<\/span><span style=\"color:#4e9a06\">}<\/span>,etcd-<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE3_IP<\/span><span style=\"color:#4e9a06\">}<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>https:\/\/<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE3_IP<\/span><span style=\"color:#4e9a06\">}<\/span>:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">PEERS_PORT<\/span><span style=\"color:#4e9a06\">}<\/span>\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Reload and start the etc3 systemd service<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ systemctl daemon-reload\n$ systemctl <span style=\"color:#204a87\">enable<\/span> etcd3.service\n$ systemctl start  etcd3.service\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Installation Verification<\/p>\n<blockquote>\n<p>The <code>etcdctl<\/code> binary is installed at <code>\/usr\/local\/bin<\/code> on the nodes.<\/p>\n<\/blockquote>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ ssh <span style=\"color:#000\">$NODE<\/span> <span style=\"color:#8f5902;font-style:italic\"># Any node running the new etcd<\/span>\n$ <span style=\"color:#000\">ETCDCTL_API<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#0000cf;font-weight:bold\">3<\/span> etcdctl --endpoints<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>http:\/\/127.0.0.1:<span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">CLIENT_PORT<\/span><span style=\"color:#4e9a06\">}<\/span> member list <span style=\"color:#8f5902;font-style:italic\"># $NODE_IP - the IP of the node<\/span>\n66946cff1224bb5, started, etcd-b94bqkb9rf,  http:\/\/172.28.0.1:2380, http:\/\/172.28.0.1:2379\n17e7256953f9319b, started, etcd-gjr25s4sdr, http:\/\/172.28.0.2:2380, http:\/\/172.28.0.2:2379\n8b698843a4658823, started, etcd-rqdf9thx5p, http:\/\/172.28.0.3:2380, http:\/\/172.28.0.3:2379\n<\/code><\/pre><\/div><blockquote>\n<p>Read the <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/etcd\/\">etcd operations<\/a>\npage for our etcd recommendations.<\/p>\n<\/blockquote>\n<\/li>\n<\/ol>\n<h3 id=\"installation---ansible\">Installation - Ansible<\/h3>\n<p>For a repeatable and automated installation, use of a configuration management\ntool such as ansible is recommended. StorageOS provides an ansible playbook to\nhelp you deploy etcd on standalone virtual machines.<\/p>\n<ol>\n<li>\n<p>Clone StorageOS deployment repository<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">git clone https:\/\/github.com\/storageos\/deploy.git\n<span style=\"color:#204a87\">cd<\/span> k8s\/deploy-storageos\/etcd-helpers\/etcd-ansible-systemd\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Edit the inventory file<\/p>\n<blockquote>\n<p>The inventory file targets the nodes that will run etcd. The file\n<code>hosts<\/code> is an example of such an inventory file.<\/p>\n<\/blockquote>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ cat hosts\n<span style=\"color:#ce5c00;font-weight:bold\">[<\/span>nodes<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\ncentos-1 <span style=\"color:#000\">ip<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;10.64.10.228&#34;<\/span> <span style=\"color:#000\">fqdn<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;ip-10-64-10-228.eu-west-2.compute.internal&#34;<\/span>\ncentos-2 <span style=\"color:#000\">ip<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;10.64.14.233&#34;<\/span> <span style=\"color:#000\">fqdn<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;ip-10-64-14-233.eu-west-2.compute.internal&#34;<\/span>\ncentos-3 <span style=\"color:#000\">ip<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;10.64.12.111&#34;<\/span> <span style=\"color:#000\">fqdn<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;ip-10-64-12-111.eu-west-2.compute.internal&#34;<\/span>\n\n<span style=\"color:#8f5902;font-style:italic\"># Edit the inventory file<\/span>\n$ vi hosts <span style=\"color:#8f5902;font-style:italic\"># Or your own inventory file<\/span>\n<\/code><\/pre><\/div><blockquote>\n<p>The ip or fqdn are used to expose the advertise-client-urls of Etcd.\nFailing to provide valid ip\/fqdn will cause any client connection to\nfail. StorageOS will fail to communicate to Etcd.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Edit the etcd configuration<\/p>\n<blockquote>\n<p><strong>If targeting Kubernetes Master nodes, you must change\n<code>etcd_port_client<\/code>, <code>etcd_port_peers<\/code><\/strong><\/p>\n<\/blockquote>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ cat group_vars\/all\netcd_version: <span style=\"color:#4e9a06\">&#34;3.4.9&#34;<\/span>\netcd_port_client: <span style=\"color:#4e9a06\">&#34;2379&#34;<\/span>\netcd_port_peers: <span style=\"color:#4e9a06\">&#34;2380&#34;<\/span>\netcd_quota_bytes: <span style=\"color:#0000cf;font-weight:bold\">8589934592<\/span>  <span style=\"color:#8f5902;font-style:italic\"># 8 GB<\/span>\netcd_auto_compaction_mode: <span style=\"color:#4e9a06\">&#34;revision&#34;<\/span>\netcd_auto_compaction_retention: <span style=\"color:#4e9a06\">&#34;1000&#34;<\/span>\nmembers: <span style=\"color:#4e9a06\">&#34;{{ groups[&#39;nodes&#39;] }}&#34;<\/span>\ninstallation_dir: <span style=\"color:#4e9a06\">&#34;\/var\/lib\/storageos-etcd&#34;<\/span>\nadvertise_format: <span style=\"color:#4e9a06\">&#39;fqdn&#39;<\/span> <span style=\"color:#8f5902;font-style:italic\"># fqdn || ip<\/span>\nbackup_file: <span style=\"color:#4e9a06\">&#34;\/tmp\/backup.db&#34;<\/span>\n\ntls:\n  enabled: <span style=\"color:#204a87\">false<\/span>\n  ca_common_name: <span style=\"color:#4e9a06\">&#34;eu-west-2.compute.internal&#34;<\/span>\n  etcd_common_name: <span style=\"color:#4e9a06\">&#34;*.eu-west-2.compute.internal&#34;<\/span>\n  cert_dir: <span style=\"color:#4e9a06\">&#34;\/etc\/etcdtls&#34;<\/span>\n  ca_cert_file: <span style=\"color:#4e9a06\">&#34;etcd-ca.pem&#34;<\/span>\n  etcd_server_cert_file: <span style=\"color:#4e9a06\">&#34;server.pem&#34;<\/span>\n  etcd_server_key_file: <span style=\"color:#4e9a06\">&#34;server-key.pem&#34;<\/span>\n  etcd_client_cert_file: <span style=\"color:#4e9a06\">&#34;etcd-client.crt&#34;<\/span>\n  etcd_client_key_file: <span style=\"color:#4e9a06\">&#34;etcd-client.key&#34;<\/span>\n\n$ vi group_vars\/all\n<\/code><\/pre><\/div><blockquote>\n<p>Choose between using IP addressing or FQDN in the <code>advertise_format<\/code>\nparameter. It allows you to decide how Etcd advertises its address to\nclients. This is particularly relevant when using TLS.<\/p>\n<\/blockquote>\n<blockquote>\n<p>If enabling TLS, it is recomended to generate your own CA certificate\nand key. You can do it by generating the CA from the machine running\nAnsible by: <code>ansible-playbook create_ca.yaml<\/code>.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Install<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">ansible-playbook -i hosts install.yaml\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Installation Verification<\/p>\n<blockquote>\n<p>The playbook installs the <code>etcdctl<\/code> binary on the nodes, at\n<code>\/usr\/local\/bin<\/code>.<\/p>\n<\/blockquote>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ ssh <span style=\"color:#000\">$NODE<\/span> <span style=\"color:#8f5902;font-style:italic\"># Any node running the new etcd<\/span>\n$ <span style=\"color:#000\">ETCDCTL_API<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#0000cf;font-weight:bold\">3<\/span> etcdctl --endpoints<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>127.0.0.1:2379 member list\n66946cff1224bb5, started, etcd-b94bqkb9rf,  http:\/\/172.28.0.1:2380, http:\/\/172.28.0.1:2379\n17e7256953f9319b, started, etcd-gjr25s4sdr, http:\/\/172.28.0.2:2380, http:\/\/172.28.0.2:2379\n8b698843a4658823, started, etcd-rqdf9thx5p, http:\/\/172.28.0.3:2380, http:\/\/172.28.0.3:2379\n<\/code><\/pre><\/div><\/li>\n<\/ol>\n<h2 id=\"benefits-of-running-external-to-kubernetes\">Benefits of Running External to Kubernetes<\/h2>\n<p>Etcd is a distributed key-value store database focused on strong consistency.\nThat means that etcd nodes perform operations across the cluster to ensure\nquorum. In the case that quorum is lost, an etcd node stops and marks its\ncontents as read-only. Another peer might have a newer version that has not\nbeen committed to the database. Quorum is fundamental for etcd operations.<\/p>\n<p>In a Kubernetes environment, applications are scheduled across and in some\nscenarios such as &ldquo;DiskPressure&rdquo; they may need to be evicted from a node, and\nbe scheduled onto a different node. With an application such as etcd, the\nscenario described can result in quorum being lost, making the cluster unable\nto recover automatically. Usually a 3 node etcd cluster can survive losing one\nnode and recover. However, losing a second node at the same time or even\nhaving a network partition between them will result in quorum lost.<\/p>\n<h2 id=\"bind-etcd-ips-to-kubernetes-service\">Bind Etcd IPs to Kubernetes Service<\/h2>\n<p>Kubernetes external services use a DNS name to reference external endpoints,\nmaking them easy to reference from inside the cluster.  You can use the\nexample from the <a href=\"https:\/\/github.com\/storageos\/deploy\/tree\/master\/k8s\/deploy-storageos\/etcd-helpers\/etcd-external-svc\">helper github\nrepository<\/a>\nto deploy the external Service. Using an external service can make monitoring\nof etcd from Prometheus easier.<\/p>\n\n<\/div>\n\n\n\n\n\n<\/div>\n\n<h2 id=\"using-etcd-with-storageos\">Using Etcd with StorageOS<\/h2>\n<p>During installation of StorageOS the <code>kvBackend.address<\/code> parameter of the\nStorageOS operator is used to specify the address of the etcd cluster. See the\n<a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/examples\/#installing-with-an-external-etcd\">StorageOS cluster operator configuration<\/a> examples for more information.<\/p>\n\n      "},{"title":"Docs: Support","link":"https:\/\/docs.storageos.com\/docs\/support\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/support\/","description":"\n        \n        \n        <p>When you need support, please raise a ticket via our <a href=\"https:\/\/support.storageos.com\">Help Desk\nportal<\/a>. It is important to select the priority\nof your ticket in accordance with the severity:<\/p>\n<ul>\n<li>Severity 1 - Urgent<\/li>\n<li>Severity 2 - High<\/li>\n<li>Severity 3 - Medium<\/li>\n<li>Severity 4 - Low<\/li>\n<\/ul>\n<p>This helps us route and prioritise the ticket accordingly. You can find\ndefinitions of our support severity levels on our\n<a href=\"https:\/\/storageos.com\/support\">website<\/a>.<\/p>\n<p>Responses to tickets will be cc&rsquo;d via email.<\/p>\n<p>For personal support and general enquiries, please join our <a href=\"https:\/\/slack.storageos.com\">public Slack\nchannel.<\/a> <script async defer\nsrc=\"http:\/\/slack.storageos.com\/slackin.js\"><\/script><\/p>\n<h2 id=\"information-to-include-in-tickets\">Information to include in tickets<\/h2>\n<p>To help us provide effective support, we request that you provide as much\ninformation as possible when contacting us. The list below is a suggested\nstarting point. Additionally, please include anything specific, such as log\nentries, that may help us debug your issue.<\/p>\n<h3 id=\"platform\">Platform<\/h3>\n<ul>\n<li>Cloud provider\/Bare metal<\/li>\n<li>OS distribution and version<\/li>\n<li>Kernel version<\/li>\n<li>docker version and installation procedure (distro packages or docker install)<\/li>\n<\/ul>\n<h3 id=\"storageos\">StorageOS<\/h3>\n<ul>\n<li>Version of StorageOS<\/li>\n<li><code>storageos get nodes<\/code><\/li>\n<li><code>storageos get volumes<\/code><\/li>\n<li><code>storageos describe volume VOL_ID<\/code> # in case of issues with a specific volume<\/li>\n<\/ul>\n<h3 id=\"orchestrator-related-kubernetes-openshift-etc\">Orchestrator related (Kubernetes, OpenShift, etc)<\/h3>\n<ul>\n<li>Version and installation method<\/li>\n<li>Managed or self managed?<\/li>\n<li><code>kubectl -n kube-system get pod<\/code><\/li>\n<li><code>kubectl -n kube-system logs -lapp=storageos -c storageos<\/code><\/li>\n<li><code>kubectl -n kube-system get storageclass<\/code><\/li>\n<li>Specific for your namespaces: <code>kubectl describe pvc PVC_NAME<\/code><\/li>\n<li>Specific for your namespaces: <code>kubectl describe pod POD_NAME<\/code><\/li>\n<\/ul>\n<h3 id=\"environment-changes\">Environment Changes<\/h3>\n<ul>\n<li>Details of any recent changes to your environment such as planned\nmaintenance, node reboots, network failures, etcd outage, etc.. This can\nhelp speed up ticket triage and resolution considerably<\/li>\n<\/ul>\n<h3 id=\"storageos-support-bundle\">StorageOS Support Bundle<\/h3>\n<p>StorageOS provides the ability to generate a support bundle that aggregates\ncluster information. See <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/bundles\/support_bundle\/\">Support Bundle<\/a> for a list of what is\nincluded.<\/p>\n<p>StorageOS engineers might ask for a support bundle to be generated\nduring support cases.<\/p>\n<p>The information in the bundle is used only for support purposes, and will be\nremoved once it is no longer needed. If the information is sensitive and can&rsquo;t\nbe given to StorageOS, please make sure that the support engineers have as\nmuch information about your environment as possible.<\/p>\n<p>Refer to the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/bundles\/support_bundle\/\">Support Bundle<\/a> documentation page for details\nof how to generate a bundle.<\/p>\n\n      "},{"title":"Docs: Self Evaluation Guide","link":"https:\/\/docs.storageos.com\/docs\/self-eval\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/self-eval\/","description":"\n        \n        \n        <p>Our self-evaluation guide is a step by step recipe for installing and testing\nStorageOS. This guide is divided into three sections:<\/p>\n<ul>\n<li><strong>Installation<\/strong> - install StorageOS with a single command<\/li>\n<li><strong>Feature Testing<\/strong> - short walkthrough of some of our features<\/li>\n<li><strong>Benchmarking<\/strong> - a recipe to benchmark StorageOS on your infrastructure<\/li>\n<\/ul>\n<p>For more comprehensive documentation including installation advice for complex\nsetups, operational guides, and use-cases, please see our main <a href=\"https:\/\/docs.storageos.com\/docs\/\">documentation\nsite<\/a>.<\/p>\n<h2 id=\"support-for-self-evaluations\">Support for Self Evaluations<\/h2>\n<p>Should you have questions or require support, there are several ways to get in\ntouch with us. The fastest way to get in touch is to <a href=\"https:\/\/slack.storageos.com\">join our public Slack\nchannel<\/a>. You can also get in touch via email to\n<a href=\"mailto:support@storageos.com\">info@storageos.com<\/a>.<\/p>\n<h1 id=\"installation\">Installation<\/h1>\n<p>In this document we detail a simple installation suitable for evaluation\npurposes. The etcd we install uses a 3 node cluster with ephemeral storage, and\nas such is not suitable for production workloads. However, for evaluation\npurposes it should be sufficient. For production deployments, please see our\nmain <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/etcd\/\">documentation pages<\/a>.<\/p>\n<p>A standard StorageOS installation uses the StorageOS operator, which performs\nmost platform-specific configuration for you. The StorageOS operator has been\ncertified by <a href=\"https:\/\/storageos.com\/red-hat\/\">Red Hat<\/a> and is <a href=\"https:\/\/github.com\/storageos\/cluster-operator\">open\nsource<\/a>.<\/p>\n<p>The basic installation steps are:<\/p>\n<ul>\n<li>Check prerequisites<\/li>\n<li>Install an etcd cluster<\/li>\n<li>Install the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/\">StorageOS Operator<\/a><\/li>\n<li>Install StorageOS by applying a CR for the Operator to action<\/li>\n<\/ul>\n<h2 id=\"a-nameprerequisitesaprerequisites\"><a name='Prerequisites'><\/a>Prerequisites<\/h2>\n<p>While we do not require custom kernel modules or additional userspace tooling,\nStorageOS does have a few basic prerequisites that are met by default by most\nmodern distributions:<\/p>\n<ul>\n<li>At least 1 CPU core, 2GB RAM free.<\/li>\n<li>A Kubernetes release within the four most recent versions.<\/li>\n<li>TCP ports 5701-5710 and TCP &amp; UDP 5711 open between all nodes in the cluster.<\/li>\n<li>A 64bit supported operating system - StorageOS can run without additional\npackages in Debian 9, RancherOS, RHEL7.5,8 and CentOS7,8 and need the package\nlinux-image-extra for Ubuntu.<\/li>\n<li>Mainline kernel modules <code>target_core_mod<\/code>, <code>tcp_loop<\/code>, <code>target_core_file<\/code>,\n<code>target_core_user<\/code>, <code>configfs<\/code>, and <code>ui<\/code>. These are present by default on\nmost modern linux distributions, and can be installed with standard package\nmanagers. See our <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/systemconfiguration\/\">system configuration<\/a> page for instructions.<\/li>\n<\/ul>\n<h2 id=\"a-namequick-installationaquick-installation\"><a name='Quick Installation'><\/a>Quick Installation<\/h2>\n<p>For those feeling brave and\/or lucky, we have encapsulated the installation\ninstructions in this guide into a short bash script. As with similar\ninstructions elsewhere on the internet, caution is advised here. The script is\nliberally commented and we recommend that you inspect it in your text editor of\nchoice before running.<\/p>\n<blockquote>\n<p>Run the following command where <code>kubectl<\/code> is installed and with the context\nset for your Kubernetes cluster<\/p>\n<\/blockquote>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">curl -sL https:\/\/storageos.run <span style=\"color:#000;font-weight:bold\">|<\/span> bash\n<\/code><\/pre><\/div><p>Note that this script deploys a cluster with etcd on transient storage,\n<strong>suitable for evaluation purposes only<\/strong>. Do not use this cluster for\nproduction workloads.<\/p>\n<p>Your new cluster can be used straight away. You can now jump to the\n<a href=\"https:\/\/docs.storageos.com\/docs\/self-eval\/#StorageOSVolume\">Provision a Volume<\/a> section below to provision your first volume and license\nthe cluster.<\/p>\n<h2 id=\"a-namestepbystepainstalling-storageos-step-by-step\"><a name='StepByStep'><\/a>Installing StorageOS Step By Step<\/h2>\n<p>This section describes the installation steps in some more detail.<\/p>\n<h3 id=\"a-nameinstalletcdainstall-etcd\"><a name='Installetcd'><\/a>Install etcd<\/h3>\n<p>Here we install a 3 node etcd cluster using the CoreOS operator to install on\nephemeral storage within your Kubernetes cluster. This is suitable for\nevaluation purposes. For production deployment instructions, please see our\n<a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/etcd\/\">production etcd<\/a> page.<\/p>\n<ol>\n<li>\n<p>Download repo<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ git clone https:\/\/github.com\/coreos\/etcd-operator.git\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Configure NS, Role and RoleBinding<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ <span style=\"color:#204a87\">export<\/span> <span style=\"color:#000\">ROLE_NAME<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>etcd-operator\n$ <span style=\"color:#204a87\">export<\/span> <span style=\"color:#000\">ROLE_BINDING_NAME<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>etcd-operator\n$ <span style=\"color:#204a87\">export<\/span> <span style=\"color:#000\">NAMESPACE<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>etcd\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Create Namespace<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl create namespace <span style=\"color:#000\">$NAMESPACE<\/span>\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Deploy Operator<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ .\/etcd-operator\/example\/rbac\/create_role.sh\n$ kubectl -n <span style=\"color:#000\">$NAMESPACE<\/span> create -f - <span style=\"color:#4e9a06\">&lt;&lt;END\n<\/span><span style=\"color:#4e9a06\">apiVersion: apps\/v1\n<\/span><span style=\"color:#4e9a06\">kind: Deployment\n<\/span><span style=\"color:#4e9a06\">metadata:\n<\/span><span style=\"color:#4e9a06\">  name: etcd-operator\n<\/span><span style=\"color:#4e9a06\">spec:\n<\/span><span style=\"color:#4e9a06\">  selector:\n<\/span><span style=\"color:#4e9a06\">    matchLabels:\n<\/span><span style=\"color:#4e9a06\">      app: etcd-operator\n<\/span><span style=\"color:#4e9a06\">  replicas: 1\n<\/span><span style=\"color:#4e9a06\">  template:\n<\/span><span style=\"color:#4e9a06\">    metadata:\n<\/span><span style=\"color:#4e9a06\">      labels:\n<\/span><span style=\"color:#4e9a06\">        app: etcd-operator\n<\/span><span style=\"color:#4e9a06\">    spec:\n<\/span><span style=\"color:#4e9a06\">      containers:\n<\/span><span style=\"color:#4e9a06\">      - name: etcd-operator\n<\/span><span style=\"color:#4e9a06\">        image: quay.io\/coreos\/etcd-operator:v0.9.4\n<\/span><span style=\"color:#4e9a06\">        command:\n<\/span><span style=\"color:#4e9a06\">        - etcd-operator\n<\/span><span style=\"color:#4e9a06\">        env:\n<\/span><span style=\"color:#4e9a06\">        - name: MY_POD_NAMESPACE\n<\/span><span style=\"color:#4e9a06\">          valueFrom:\n<\/span><span style=\"color:#4e9a06\">            fieldRef:\n<\/span><span style=\"color:#4e9a06\">              fieldPath: metadata.namespace\n<\/span><span style=\"color:#4e9a06\">        - name: MY_POD_NAME\n<\/span><span style=\"color:#4e9a06\">          valueFrom:\n<\/span><span style=\"color:#4e9a06\">            fieldRef:\n<\/span><span style=\"color:#4e9a06\">              fieldPath: metadata.name\n<\/span><span style=\"color:#4e9a06\">END<\/span>\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Create the EtcdCluster resource<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl -n <span style=\"color:#000\">$NAMESPACE<\/span> create -f - <span style=\"color:#4e9a06\">&lt;&lt;YAML\n<\/span><span style=\"color:#4e9a06\">apiVersion: &#34;etcd.database.coreos.com\/v1beta2&#34;\n<\/span><span style=\"color:#4e9a06\">kind: &#34;EtcdCluster&#34;\n<\/span><span style=\"color:#4e9a06\">metadata:\n<\/span><span style=\"color:#4e9a06\"> name: &#34;storageos-etcd&#34;\n<\/span><span style=\"color:#4e9a06\">spec:\n<\/span><span style=\"color:#4e9a06\"> size: 3 # Set to 1 if insufficient nodes\n<\/span><span style=\"color:#4e9a06\"> version: &#34;3.4.7&#34;\n<\/span><span style=\"color:#4e9a06\"> pod:\n<\/span><span style=\"color:#4e9a06\">   etcdEnv:\n<\/span><span style=\"color:#4e9a06\">   - name: ETCD_QUOTA_BACKEND_BYTES\n<\/span><span style=\"color:#4e9a06\">     value: &#34;2147483648&#34;  # 2 GB \n<\/span><span style=\"color:#4e9a06\">   - name: ETCD_AUTO_COMPACTION_RETENTION\n<\/span><span style=\"color:#4e9a06\">     value: &#34;1000&#34; # Keep 1000 revisions\n<\/span><span style=\"color:#4e9a06\">   - name: ETCD_AUTO_COMPACTION_MODE\n<\/span><span style=\"color:#4e9a06\">     value: &#34;revision&#34; # Set the revision mode\n<\/span><span style=\"color:#4e9a06\">   resources:\n<\/span><span style=\"color:#4e9a06\">     requests:\n<\/span><span style=\"color:#4e9a06\">       cpu: 200m\n<\/span><span style=\"color:#4e9a06\">       memory: 300Mi\n<\/span><span style=\"color:#4e9a06\">   securityContext:\n<\/span><span style=\"color:#4e9a06\">     runAsNonRoot: true\n<\/span><span style=\"color:#4e9a06\">     runAsUser: 9000\n<\/span><span style=\"color:#4e9a06\">     fsGroup: 9000\n<\/span><span style=\"color:#4e9a06\">   tolerations:\n<\/span><span style=\"color:#4e9a06\">   - operator: &#34;Exists&#34; # add tolerations to match all taints on the master nodes where etcd will be deployed\n<\/span><span style=\"color:#4e9a06\">   affinity:\n<\/span><span style=\"color:#4e9a06\">     podAntiAffinity:\n<\/span><span style=\"color:#4e9a06\">       preferredDuringSchedulingIgnoredDuringExecution:\n<\/span><span style=\"color:#4e9a06\">       - weight: 100\n<\/span><span style=\"color:#4e9a06\">         podAffinityTerm:\n<\/span><span style=\"color:#4e9a06\">           labelSelector:\n<\/span><span style=\"color:#4e9a06\">             matchExpressions:\n<\/span><span style=\"color:#4e9a06\">             - key: etcd_cluster\n<\/span><span style=\"color:#4e9a06\">               operator: In\n<\/span><span style=\"color:#4e9a06\">               values:\n<\/span><span style=\"color:#4e9a06\">               - storageos-etcd\n<\/span><span style=\"color:#4e9a06\">           topologyKey: kubernetes.io\/hostname\n<\/span><span style=\"color:#4e9a06\">YAML<\/span>\n<\/code><\/pre><\/div><\/li>\n<\/ol>\n<p>This creates a 3 node etcd cluster and associated service in Kubernetes. We can\nuse the service endpoint when creating the StorageOS cluster.<\/p>\n<h2 id=\"a-nameinstallstorageosoperatorainstall-storageos-operator\"><a name='InstallStorageOSOperator'><\/a>Install StorageOS Operator<\/h2>\n<p>In order to install the StorageOS operator download the requisite yaml\nmanifests or apply them with kubectl.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl create -f https:\/\/github.com\/storageos\/cluster-operator\/releases\/download\/v2.4.4\/storageos-operator.yaml\n<\/code><\/pre><\/div><p>You can verify the operator is running using the following command<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl get pods -n storageos-operator\n<\/code><\/pre><\/div><p>\u00a0<\/p>\n<h2 id=\"a-nameinstallstorageosainstall-storageos\"><a name='InstallStorageOS'><\/a>Install StorageOS<\/h2>\n<p>Once the StorageOS operator has been installed a StorageOS cluster can be\ngenerated by creating a StorageOSCluster resource.<\/p>\n<p>A StorageOSCluster resource describes the state of the StorageOS cluster that\nis desired and the StorageOS operator will create the desired StorageOS\ncluster. For examples of StorageOSCluster resources please see our examples\npage\n<a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/examples\">here<\/a>.\nFor a full list of the configurable <code>spec<\/code> parameters of the StorageOSCluster\nresource please see\n<a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cluster-operator\/configuration\">here<\/a>.<\/p>\n<ol>\n<li>\n<p>Create a secret defining the API username and password<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\">$<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>kubectl<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>create<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>-f<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>- &lt;&lt;END<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>Secret<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">namespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">labels<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">   <\/span><span style=\"color:#204a87;font-weight:bold\">app<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">type<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;kubernetes.io\/storageos&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">data<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># echo -n &#39;&lt;secret&gt;&#39; | base64<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">apiUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">apiPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># CSI Credentials<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">csiProvisionUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">csiProvisionPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerPublishUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerPublishPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">csiNodePublishUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">csiNodePublishPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerExpandUsername<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">csiControllerExpandPassword<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>c3RvcmFnZW9z<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span>END<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><\/li>\n<li>\n<p>Create a StorageOSCluster resource<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\">$<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>kubectl<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>create<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>-f<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>- &lt;&lt;END<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>storageos.com\/v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>StorageOSCluster<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>example-storageoscluster<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">namespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># StorageOS Pods are in kube-system by default<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">secretRefName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-api&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">secretRefNamespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-operator&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">k8sDistro<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;upstream&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># Set the Kubernetes distribution for your cluster (upstream, eks, aks, gke, rancher, dockeree)<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># storageClassName: fast # The storage class creates by the StorageOS operator is configurable<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">kvBackend<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">   <\/span><span style=\"color:#204a87;font-weight:bold\">address<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-etcd-client.etcd.svc.cluster.local:2379&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span>END<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><\/li>\n<li>\n<p>Confirm that the cluster has been created and that StorageOS pods are\nrunning<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl -n kube-system get pods\n<\/code><\/pre><\/div><p>StorageOS pods enter a ready state after a minimum of 45s has passed.<\/p>\n<\/li>\n<li>\n<p>Deploy the StorageOS CLI as a container<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl -n kube-system run <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>--image storageos\/cli:v2.4.4 <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>--restart<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>Never                          <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>--env <span style=\"color:#000\">STORAGEOS_ENDPOINTS<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>storageos:5705 <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>--env <span style=\"color:#000\">STORAGEOS_USERNAME<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>storageos       <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>--env <span style=\"color:#000\">STORAGEOS_PASSWORD<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>storageos       <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>--command cli                            <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>-- \/bin\/sh -c <span style=\"color:#4e9a06\">&#34;while true; do sleep 999999; done&#34;<\/span>\n<\/code><\/pre><\/div><\/li>\n<\/ol>\n<h2 id=\"a-namestorageosvolumeaprovision-a-storageos-volume\"><a name='StorageOSVolume'><\/a>Provision a StorageOS Volume<\/h2>\n<p>Now that we have a working StorageOS cluster, we can provision a volume to test\neverything is working as expected.<\/p>\n<ol>\n<li>\n<p>Create a PVC<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl create -f - <span style=\"color:#4e9a06\">&lt;&lt;END\n<\/span><span style=\"color:#4e9a06\">apiVersion: v1\n<\/span><span style=\"color:#4e9a06\">kind: PersistentVolumeClaim\n<\/span><span style=\"color:#4e9a06\">metadata:\n<\/span><span style=\"color:#4e9a06\">  name: pvc-1\n<\/span><span style=\"color:#4e9a06\">spec:\n<\/span><span style=\"color:#4e9a06\">  storageClassName: &#34;fast&#34;\n<\/span><span style=\"color:#4e9a06\">  accessModes:\n<\/span><span style=\"color:#4e9a06\">    - ReadWriteOnce\n<\/span><span style=\"color:#4e9a06\">  resources:\n<\/span><span style=\"color:#4e9a06\">    requests:\n<\/span><span style=\"color:#4e9a06\">      storage: 5Gi\n<\/span><span style=\"color:#4e9a06\">END<\/span>\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Create 2 replicas by labeling your PVC<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl label pvc pvc-1 storageos.com\/replicas<span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#0000cf;font-weight:bold\">2<\/span>\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Verify that the volume and replicas were created with the CLI<\/p>\n<blockquote>\n<p><code>pvc-1<\/code> should be listed in the CLI output<\/p>\n<\/blockquote>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl -n kube-system <span style=\"color:#204a87\">exec<\/span> -it cli -- storageos get volumes\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Create a pod that consumes the PVC<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl create -f - <span style=\"color:#4e9a06\">&lt;&lt;END\n<\/span><span style=\"color:#4e9a06\">apiVersion: v1\n<\/span><span style=\"color:#4e9a06\">kind: Pod\n<\/span><span style=\"color:#4e9a06\">metadata:\n<\/span><span style=\"color:#4e9a06\"> name: d1\n<\/span><span style=\"color:#4e9a06\">spec:\n<\/span><span style=\"color:#4e9a06\"> containers:\n<\/span><span style=\"color:#4e9a06\">   - name: debian\n<\/span><span style=\"color:#4e9a06\">     image: debian:9-slim\n<\/span><span style=\"color:#4e9a06\">     command: [&#34;\/bin\/sleep&#34;]\n<\/span><span style=\"color:#4e9a06\">     args: [ &#34;3600&#34; ]\n<\/span><span style=\"color:#4e9a06\">     volumeMounts:\n<\/span><span style=\"color:#4e9a06\">       - mountPath: \/mnt\n<\/span><span style=\"color:#4e9a06\">         name: v1\n<\/span><span style=\"color:#4e9a06\"> volumes:\n<\/span><span style=\"color:#4e9a06\">   - name: v1\n<\/span><span style=\"color:#4e9a06\">     persistentVolumeClaim:\n<\/span><span style=\"color:#4e9a06\">       claimName: pvc-1\n<\/span><span style=\"color:#4e9a06\">END<\/span>\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Check that the pod starts successfully. If the pod starts successfully then\nthe StorageOS cluster is working correctly<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl get pod d1 -w\n<\/code><\/pre><\/div><p>The pod mounts a StorageOS volume under <code>\/mnt<\/code> so any files written there\nwill persist beyond the lifetime of the pod. This can be demonstrated using\nthe following commands.<\/p>\n<\/li>\n<li>\n<p>Execute a shell inside the pod and write some data to a file<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl <span style=\"color:#204a87\">exec<\/span> -it d1 -- bash\nroot@d1:\/# <span style=\"color:#204a87\">echo<\/span> Hello World! &gt; \/mnt\/hello\nroot@d1:\/# cat \/mnt\/hello\n<\/code><\/pre><\/div><blockquote>\n<p><code>Hello World!<\/code> should be printed out.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Delete the pod<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl delete pod d1\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Recreate the pod<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl create -f - <span style=\"color:#4e9a06\">&lt;&lt;END\n<\/span><span style=\"color:#4e9a06\">apiVersion: v1\n<\/span><span style=\"color:#4e9a06\">kind: Pod\n<\/span><span style=\"color:#4e9a06\">metadata:\n<\/span><span style=\"color:#4e9a06\"> name: d1\n<\/span><span style=\"color:#4e9a06\">spec:\n<\/span><span style=\"color:#4e9a06\"> containers:\n<\/span><span style=\"color:#4e9a06\">   - name: debian\n<\/span><span style=\"color:#4e9a06\">     image: debian:9-slim\n<\/span><span style=\"color:#4e9a06\">     command: [&#34;\/bin\/sleep&#34;]\n<\/span><span style=\"color:#4e9a06\">     args: [ &#34;3600&#34; ]\n<\/span><span style=\"color:#4e9a06\">     volumeMounts:\n<\/span><span style=\"color:#4e9a06\">       - mountPath: \/mnt\n<\/span><span style=\"color:#4e9a06\">         name: v1\n<\/span><span style=\"color:#4e9a06\"> volumes:\n<\/span><span style=\"color:#4e9a06\">   - name: v1\n<\/span><span style=\"color:#4e9a06\">     persistentVolumeClaim:\n<\/span><span style=\"color:#4e9a06\">       claimName: pvc-1\n<\/span><span style=\"color:#4e9a06\">END<\/span>\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Open a shell inside the pod and check the contents of <code>\/mnt\/hello<\/code><\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl <span style=\"color:#204a87\">exec<\/span> -it d1 -- cat \/mnt\/hello\n<\/code><\/pre><\/div><blockquote>\n<p><code>Hello World!<\/code> should be printed out.<\/p>\n<\/blockquote>\n<\/li>\n<\/ol>\n<h2 id=\"a-namelicenseclusteralicense-cluster\"><a name='LicenseCluster'><\/a>License cluster<\/h2>\n<p>Newly installed StorageOS clusters must be licensed within 24 hours. Our\npersonal license is free, and supports up to 1TiB of provisioned storage.<\/p>\n<p>You will need access to the StorageOS API on port 5705 of any of your nodes.\nFor convenience, it is often easiest to port forward the service using the\nfollowing kubectl incantation (this will block, so a second terminal window may\nbe advisable):<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl port-forward -n kube-system svc\/storageos <span style=\"color:#0000cf;font-weight:bold\">5705<\/span>\n<\/code><\/pre><\/div><p>Now follow the instructions on our <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/licensing\/\">operations licensing<\/a> page to obtain and apply a license.<\/p>\n<p>Installation of StorageOS is now complete.<\/p>\n<h1 id=\"a-namestorageosfeaturesastorageos-features\"><a name='StorageOSFeatures'><\/a>StorageOS Features<\/h1>\n<p>Now that you have a fully functional StorageOS cluster we will explain\nsome of our features that may be of use to you as you complete application and\nsynthetic benchmarks.<\/p>\n<p>StorageOS features are all enabled\/disabled by applying labels to volumes.\nThese labels can be passed to StorageOS via persistent volume claims (PVCs) or\ncan be applied to volumes using the StorageOS CLI or GUI.<\/p>\n<p>The following is not an exhaustive feature list but outlines features which are\ncommonly of use during a self-evaluation.<\/p>\n<h2 id=\"a-namevolumereplicationavolume-replication\"><a name='VolumeReplication'><\/a>Volume Replication<\/h2>\n<p>StorageOS enables synchronous replication of volumes using the\n<code>storageos.com\/replicas<\/code> label.<\/p>\n<p>The volume that is active is referred to as the master volume. The master\nvolume and its replicas are always placed on separate nodes. In fact if a\nreplica cannot be placed on a node without a replica of the same volume, the\nvolume will fail to be created. For example, in a three node StorageOS cluster\na volume with 3 replicas cannot be created as the third replica cannot be\nplaced on a node that doesn&rsquo;t already contain a replica of the same volume.<\/p>\n<p>See our <a href=\"https:\/\/docs.storageos.com\/docs\/concepts\/replication\">replication\ndocumentation<\/a> for more\ninformation on volume replication.<\/p>\n<ol>\n<li>\n<p>To test volume replication create the following PersistentVolumeClaim<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl create -f - <span style=\"color:#4e9a06\">&lt;&lt;END\n<\/span><span style=\"color:#4e9a06\">apiVersion: v1\n<\/span><span style=\"color:#4e9a06\">kind: PersistentVolumeClaim\n<\/span><span style=\"color:#4e9a06\">metadata:\n<\/span><span style=\"color:#4e9a06\"> name: pvc-replicated\n<\/span><span style=\"color:#4e9a06\"> labels:\n<\/span><span style=\"color:#4e9a06\">   storageos.com\/replicas: &#34;1&#34;\n<\/span><span style=\"color:#4e9a06\">spec:\n<\/span><span style=\"color:#4e9a06\"> storageClassName: &#34;fast&#34;\n<\/span><span style=\"color:#4e9a06\"> accessModes:\n<\/span><span style=\"color:#4e9a06\"> - ReadWriteOnce\n<\/span><span style=\"color:#4e9a06\"> resources:\n<\/span><span style=\"color:#4e9a06\">   requests:\n<\/span><span style=\"color:#4e9a06\">     storage: 5Gi\n<\/span><span style=\"color:#4e9a06\">END<\/span>\n<\/code><\/pre><\/div><blockquote>\n<p>Note that volume replication is enabled by setting the\n<code>storageos.com\/replicas<\/code> label on the volume.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Confirm that a replicated volume has been created by using the StorageOS CLI\nor UI<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl -n kube-system <span style=\"color:#204a87\">exec<\/span> -it cli -- storageos get volumes\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Create a pod that uses the PVC<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl create -f - <span style=\"color:#4e9a06\">&lt;&lt;END\n<\/span><span style=\"color:#4e9a06\">apiVersion: v1\n<\/span><span style=\"color:#4e9a06\">kind: Pod\n<\/span><span style=\"color:#4e9a06\">metadata:\n<\/span><span style=\"color:#4e9a06\">  name: replicated-pod\n<\/span><span style=\"color:#4e9a06\">spec:\n<\/span><span style=\"color:#4e9a06\">  containers:\n<\/span><span style=\"color:#4e9a06\">   - name: debian\n<\/span><span style=\"color:#4e9a06\">     image: debian:9-slim\n<\/span><span style=\"color:#4e9a06\">     command: [&#34;\/bin\/sleep&#34;]\n<\/span><span style=\"color:#4e9a06\">     args: [ &#34;3600&#34;  ]\n<\/span><span style=\"color:#4e9a06\">     volumeMounts:\n<\/span><span style=\"color:#4e9a06\">       - mountPath: \/mnt\n<\/span><span style=\"color:#4e9a06\">         name: v1\n<\/span><span style=\"color:#4e9a06\">  volumes:\n<\/span><span style=\"color:#4e9a06\">   - name: v1\n<\/span><span style=\"color:#4e9a06\">     persistentVolumeClaim:\n<\/span><span style=\"color:#4e9a06\">       claimName: pvc-replicated\n<\/span><span style=\"color:#4e9a06\">END<\/span>\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Write data to the volume<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl <span style=\"color:#204a87\">exec<\/span> -it replicated-pod -- bash\nroot@replicated-pod:\/# <span style=\"color:#204a87\">echo<\/span> Hello World! &gt; \/mnt\/hello\nroot@replicated-pod:\/# cat \/mnt\/hello\n<\/code><\/pre><\/div><blockquote>\n<p><code>Hello World!<\/code> should be printed out.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Find the location of the master volume and shutdown the node<\/p>\n<p>Shutting down a node causes all volumes, with online replicas, on the node\nto be evicted. For replicated volumes this immediately promotes a replica\nto become the new master.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl get pvc\nNAME           STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE\npvc-replicated Bound    pvc-29e2ad6e-8c4e-11e9-8356-027bfbbece86   5Gi        RWO            fast           1m\n\n$ kubectl <span style=\"color:#204a87\">exec<\/span> -it -n kube-system cli -- storageos get volumes\nNAMESPACE  NAME                                      SIZE     LOCATION              ATTACHED ON   REPLICAS  AGE\ndefault    pvc-4e796a62-0271-45f9-9908-21d58789a3fe  5.0 GiB  kind-worker <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>online<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>  kind-worker2  1\/1       <span style=\"color:#0000cf;font-weight:bold\">26<\/span> seconds ago\n\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Check the location of the master volume and notice that it is on a new node.\nIf the pod that mounted the volume was located on the same node that was\nshutdown then the pod will need to be recreated.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl <span style=\"color:#204a87\">exec<\/span> -it -n kube-system cli -- storageos get volumes\nNAMESPACE  NAME                                      SIZE     LOCATION               ATTACHED ON   REPLICAS  AGE\ndefault    pvc-4e796a62-0271-45f9-9908-21d58789a3fe  5.0 GiB  kind-worker2 <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>online<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>  kind-worker2  1\/1       <span style=\"color:#0000cf;font-weight:bold\">46<\/span> seconds ago\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Check that the data is still accessible to the pod<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl <span style=\"color:#204a87\">exec<\/span> -it replicated-pod -- bash\nroot@replicated-pod:\/# cat \/mnt\/hello\n<\/code><\/pre><\/div><blockquote>\n<p><code>Hello World!<\/code> should be printed out.<\/p>\n<\/blockquote>\n<\/li>\n<\/ol>\n<p>\u00a0<\/p>\n<h1 id=\"a-namebenchmarkingabenchmarking\"><a name='Benchmarking'><\/a>Benchmarking<\/h1>\n<p>Benchmarking storage is a complex topic. Considering the many books and papers\nthat have been written about benchmarking, we could write many paragraphs here\nand only begin to scratch the surface.<\/p>\n<p>Taking this complexity into account we present recipes for both synthetic\nbenchmarks using <a href=\"https:\/\/github.com\/axboe\/fio\">FIO<\/a>, and a sample application\nbenchmark to test PostgreSQL using\n<a href=\"https:\/\/www.postgresql.org\/docs\/current\/pgbench.html\">pgbench<\/a>. The approaches\nare complementary - synthetic benchmarks allow us to strictly control the\nparameters of the IO we put through the system in order to stress various\naspects of it. Application benchmarks allow us to get a sense of the\nperformance of the system when running an actual representative workload -\nwhich of course is the ultimate arbiter of performance.<\/p>\n<p>Despite the inherent complexity of benchmarking storage there are a few general\nconsiderations to keep in mind.<\/p>\n<h2 id=\"a-nameconsiderationsaconsiderations\"><a name='Considerations'><\/a>Considerations<\/h2>\n<h3 id=\"a-namevolumeplacementalocal-vs-remote-volumes\"><a name='VolumePlacement'><\/a>Local vs. Remote Volumes<\/h3>\n<p>When a workload is placed on the same node as a volume, there is no network\nround trip for IO, and performance is consequently improved. When considering\nthe performance of StorageOS it is important to evaluate both local and remote\nvolumes; since for certain workloads we want the high performance of a local\nattachment, but we also desire the flexibility of knowing that our less\nperformance-sensitive workloads can run from any node in the cluster.<\/p>\n<h3 id=\"a-namereplicationathe-effect-of-synchronous-replication\"><a name='Replication'><\/a>The Effect of Synchronous Replication<\/h3>\n<p>Synchronous replication does not impact the read performance of a volume, but\nit can have a significant impact on the write performance of the volume, since\nall writes must be propagated to replicas before being acked to the\napplication. The impact varies in proportion to the inter-node latency. For an\ninter-node latency of 1ms, we have a max ceiling of 1000 write IOPS, and in\nreality a little less than that to allow for processing time on the nodes. This\nis less concerning then it may first appear, since many applications will issue\nmultiple writes in parallel (known as increasing the queue depth).<\/p>\n<h2 id=\"a-namesyntheticbenchmarksasynthetic-benchmarks\"><a name='SyntheticBenchmarks'><\/a>Synthetic Benchmarks<\/h2>\n<h3 id=\"prerequisites\">Prerequisites<\/h3>\n<ul>\n<li>Kubernetes cluster with a minimum of 3 nodes and a minimum of\n30 Gb available capacity<\/li>\n<li>StorageOS CLI running as a pod in the cluster<\/li>\n<\/ul>\n<p>Synthetic benchmarks using tools such as FIO are a useful way to begin\nmeasuring StorageOS performance. While not fully representative of application\nperformance, they allow us to reason about the performance of storage devices\nwithout the added complexity of simulating real world workloads, and provide\nresults easily comparable across platforms.<\/p>\n<p>FIO has a number of parameters that can be adjusted to simulate a variety of\nworkloads and configurations. Parameters that are particularly important are:<\/p>\n<ul>\n<li><strong>Block Size<\/strong> - the size of the IO units performed.<\/li>\n<li><strong>Queue Depth<\/strong> - the amount of concurrent IOs in flight<\/li>\n<li><strong>IO Pattern<\/strong> - access can be random across the disk, or sequentially. IO\nsubsystems typically perform better with sequential IO, because of the\neffect of read ahead caches, and other factors<\/li>\n<\/ul>\n<p>For this self-evaluation we will run a set of tests based on the excellent\n<a href=\"https:\/\/github.com\/leeliu\/dbench\">DBench<\/a>, which distills the numerous FIO\noptions into a series of well-crafted scenarios:<\/p>\n<ul>\n<li><strong>Random Read\/Write IOPS and BW<\/strong> - these tests measure the IOPS ceiling\n(with a 4k block size) and bandwidth ceiling (with a 128K block size) of the\nvolume using a random IO pattern and high queue depth<\/li>\n<li><strong>Average Latency<\/strong> - these tests measure the IO latency of the volume under\nfavourable conditions using a random access pattern, low queue depth and low\nblock size<\/li>\n<li><strong>Sequential Read\/Write<\/strong> - these tests measure the sequential read\/write\nthroughput of the volume with a high queue depth and high block size<\/li>\n<li><strong>Mixed Random Read\/Write IOPS<\/strong> - these tests measure the performance of the\nvolume under a 60\/40 read\/write workload using a random access pattern and\nlow blocksize<\/li>\n<\/ul>\n<p>For convenience we present a single script to run the scenarios using local and\nremote volumes both with and without a replica. Deploy the FIO tests for the\nfour scenarios using the following command:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">curl -sL https:\/\/docs.storageos.com\/sh\/deploy-synthetic-benchmarks.sh <span style=\"color:#000;font-weight:bold\">|<\/span> bash\n<\/code><\/pre><\/div><p>The script will take approximately 20 minutes to complete, and will print the\nresults to STDOUT.<\/p>\n<p>The exact results observed will depend on the particular platform and\nenvironment, but the following trends should be observable:<\/p>\n<ul>\n<li>local volumes perform faster than remote volumes<\/li>\n<li>read performance is independent of the number of replicas<\/li>\n<li>write performance is dependent on the number of replicas<\/li>\n<\/ul>\n<h2 id=\"a-nameapplicationbenchmarksaapplication-benchmarks\"><a name='ApplicationBenchmarks'><\/a>Application Benchmarks<\/h2>\n<p>While synthetic benchmarks are useful for examining the behaviour of StorageOS\nwith very specific workloads, in order to get a realistic picture of StorageOS\nperformance actual applications should be tested.<\/p>\n<p>Many applications come with test suites which provide standard workloads. For\nbest results, test using your application of choice with a representative\nconfiguration and real world data.<\/p>\n<p>As an example of benchmarking an application the following steps lay out how to\nbenchmark a Postgres database backed by a StorageOS volume.<\/p>\n<ol>\n<li>\n<p>Start by cloning the StorageOS use cases repository. Note this is the same\nrepository that we cloned earlier so if you already have a copy just <code>cd storageos-usecases\/pgbench<\/code>.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ git clone https:\/\/github.com\/storageos\/use-cases.git storageos-usecases\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Move into the Postgres examples folder<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ <span style=\"color:#204a87\">cd<\/span> storageos-usecases\/pgbench\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Decide which node you want the pgbench pod and volume to be located on. The\nnode needs to be labelled <code>app=postgres<\/code><\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl label node &lt;NODE&gt; <span style=\"color:#000\">app<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>postgres\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Then set the <code>storageos.com\/hint.master<\/code> label in\n20-postgres-statefulset.yaml file to match the StorageOS nodeID for the node\nyou have chosen before creating all the files. The StorageOS nodeID can be\nobtained using the cli and doing a <code>describe node<\/code><\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl create -f .\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Confirm that Postgres is up and running<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl get pods -w -l <span style=\"color:#000\">app<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>postgres\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Use the StorageOS CLI or the GUI to check the master volume location and the\nmount location. They should match<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl -n kube-system <span style=\"color:#204a87\">exec<\/span> -it cli -- storageos get volumes\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Exec into the pgbench container and run pgbench<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl <span style=\"color:#204a87\">exec<\/span> -it pgbench -- bash -c <span style=\"color:#4e9a06\">&#39;\/opt\/cpm\/bin\/start.sh&#39;<\/span>\n<\/code><\/pre><\/div><\/li>\n<\/ol>\n<p>\u00a0<\/p>\n<h1 id=\"a-nameconclusionaconclusion\"><a name='Conclusion'><\/a>Conclusion<\/h1>\n<p>After completing these steps you will have benchmark scores for StorageOS.\nPlease keep in mind that benchmarks are only part of the story and that there\nis no replacement for testing actual production or production like workloads.<\/p>\n<p>StorageOS invites you to provide feedback on your self-evaluation to the <a href=\"https:\/\/storageos.slack.com\">slack\nchannel<\/a> or by directly emailing us at\n<a href=\"mailto:info@storageos.com\">info@storageos.com<\/a>]<\/p>\n\n      "},{"title":"Docs: Apply","link":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/apply\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/apply\/","description":"\n        \n        \n        <h2 id=\"apply-changes-to-resources\">Apply changes to resources<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos apply --help\nMake changes to existing resources\n\nUsage:\n  storageos apply <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>command<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAvailable Commands:\n  licence     Apply a product licence to the cluster\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> apply\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n\nUse <span style=\"color:#4e9a06\">&#34;storageos apply [command] --help&#34;<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> more information about a command.\n<\/code><\/pre><\/div><h2 id=\"apply-license\">Apply License<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos apply licence --help\n\nApply a product licence to the cluster\n\nUsage:\n  storageos apply licence <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  licence, license\n\nExamples:\n\n$ storageos apply licence --from-file &lt;path-to-licence-file&gt;\n\n$ <span style=\"color:#204a87\">echo<\/span> <span style=\"color:#4e9a06\">&#34;&lt;licence file contents&gt;&#34;<\/span> <span style=\"color:#000;font-weight:bold\">|<\/span> storageos apply licence --from-stdin \n\n\nFlags:\n      --cas string         make changes to a resource conditional upon matching the provided version\n      --from-file string   reads a StorageOS product licence from a specified file path\n      --from-stdin         reads a StorageOS product licence from the standard input\n  -h, --help               <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> licence\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n\n<\/code><\/pre><\/div>\n      "},{"title":"Docs: Attach","link":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/attach\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/attach\/","description":"\n        \n        \n        <div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos attach --help\n\nAttach a volume to a node\n\nUsage:\n  storageos attach <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storageos attach --namespace my-namespace-name my-volume my-node\n\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> attach\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div>\n      "},{"title":"Docs: AWS EKS","link":"https:\/\/docs.storageos.com\/docs\/platforms\/aws-eks\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/platforms\/aws-eks\/","description":"\n        \n        \n        <p>StorageOS is fully compatible with AWS EKS. To install StorageOS on EKS, please\nfollow our Kubernetes <a href=\"https:\/\/docs.storageos.com\/docs\/install\/kubernetes\/\">installation instructions<\/a> page.<\/p>\n<p>An EKS deployment of Kubernetes uses AWS Linux by default with an optimized\nkernel. As the requisite kernel modules are not available for StorageOS to use\nTCMU, FUSE will be used as a fallback. Using FUSE instead of TCMU has\nperformance implications.<\/p>\n<p>For more details about the OS Distributions check the <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/systemconfiguration\/\">System\nConfiguration<\/a>\npage.<\/p>\n\n      "},{"title":"Docs: Azure AKS","link":"https:\/\/docs.storageos.com\/docs\/platforms\/azure-aks\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/platforms\/azure-aks\/","description":"\n        \n        \n        <p>StorageOS is fully compatible with Azure AKS. To install StorageOS on AKS\nplease follow our Kubernetes <a href=\"https:\/\/docs.storageos.com\/docs\/install\/kubernetes\/\">installation instructions<\/a> page.<\/p>\n<p>An AKS deployment of Kubernetes uses Ubuntu by default with an optimized\nkernel. All versions of Ubuntu with a kernel version later\nthan<code>4.15.0-1029-azure<\/code> meet the StorageOS prerequisites.<\/p>\n\n      "},{"title":"Docs: Cassandra","link":"https:\/\/docs.storageos.com\/docs\/usecases\/cassandra\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/usecases\/cassandra\/","description":"\n        \n        \n        <img src=\"https:\/\/docs.storageos.com\/images\/docs\/explore\/cassandralogo.png\" width=\"125\" height=\"125\">\n<p>Cassandra is a popular distributed NoSQL open source database.<\/p>\n<p>Using StorageOS persistent volumes with Cassandra means that if a Cassandra pod\nfails, the cluster is only in a degraded state for as long as it takes\nKubernetes to restart the pod. When the pod comes back up the pod data is\nimmediately available. Should Kubernetes schedule the Cassandra pod on a\nnew node, StorageOS allows for the data to be available to the pod,\nirrespective of whether or not a StorageOS master is located on the same node.<\/p>\n<p>As Cassandra has features to allow it to handle replication careful\nconsideration of whether to allow StorageOS or Cassandra to handle replication\nis required.<\/p>\n<p>Before you start, ensure you have StorageOS installed and ready on a Kubernetes\ncluster. <a href=\"https:\/\/docs.storageos.com\/docs\/install\/kubernetes\/\">See our guide on how to install StorageOS on Kubernetes for more\ninformation<\/a>.<\/p>\n<h2 id=\"deploying-cassandra-on-kubernetes\">Deploying Cassandra on Kubernetes<\/h2>\n<ol>\n<li>\n<p>You can find the latest files in the StorageOS use cases repository<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">git clone https:\/\/github.com\/storageos\/use-cases.git storageos-usecases\n<\/code><\/pre><\/div><p>StatefulSet defintion<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>apps\/v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>StatefulSet<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>cassandra<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">selector<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">   <\/span><span style=\"color:#204a87;font-weight:bold\">matchLabels<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">     <\/span><span style=\"color:#204a87;font-weight:bold\">app<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>cassandra<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">serviceName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>cassandra<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">replicas<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#0000cf;font-weight:bold\">3<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>...<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span>...<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">volumeMounts<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">       <\/span>- <span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>cassandra-data<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">         <\/span><span style=\"color:#204a87;font-weight:bold\">mountPath<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>\/var\/lib\/cassandra<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>...<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">volumeClaimTemplates<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>- <span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">     <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>cassandra-data<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">   <\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">     <\/span><span style=\"color:#204a87;font-weight:bold\">accessModes<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#000;font-weight:bold\">[<\/span><span style=\"color:#4e9a06\">&#34;ReadWriteOnce&#34;<\/span><span style=\"color:#000;font-weight:bold\">]<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">     <\/span><span style=\"color:#204a87;font-weight:bold\">storageClassName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;fast&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># StorageOS storageClass<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">     <\/span><span style=\"color:#204a87;font-weight:bold\">resources<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">       <\/span><span style=\"color:#204a87;font-weight:bold\">requests<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">         <\/span><span style=\"color:#204a87;font-weight:bold\">storage<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>5Gi<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>This excerpt is from the StatefulSet definition. This file contains the\nVolumeClaim template that will dynamically provision storage, using the\nStorageOS storage class. Dynamic provisioning occurs as a volumeMount has\nbeen declared with the same name as a VolumeClaimTemplate.<\/p>\n<\/li>\n<li>\n<p>Move into the Cassandra examples folder and create the objects<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#204a87\">cd<\/span> storageos-usecases\nkubectl create -f .\/cassandra\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Confirm Cassandra is up and running.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl get pods -w -l <span style=\"color:#000\">app<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>cassandra\nNAME          READY   STATUS    RESTARTS   AGE\ncassandra-0   1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          8m32s\ncassandra-1   1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          7m51s\ncassandra-2   1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          6m36s\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Connect to the Cassandra client pod and connect to the Cassandra server through the\nservice<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl <span style=\"color:#204a87\">exec<\/span> -it cassandra-0 -- cqlsh cassandra-0.cassandra\nConnected to K8Demo at cassandra-0.cassandra:9042.\n<span style=\"color:#ce5c00;font-weight:bold\">[<\/span>cqlsh 5.0.1 <span style=\"color:#000;font-weight:bold\">|<\/span> Cassandra 3.11.3 <span style=\"color:#000;font-weight:bold\">|<\/span> CQL spec 3.4.4 <span style=\"color:#000;font-weight:bold\">|<\/span> Native protocol v4<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\nUse HELP <span style=\"color:#204a87;font-weight:bold\">for<\/span> help.\ncqlsh&gt; SELECT cluster_name, listen_address FROM system.local<span style=\"color:#000;font-weight:bold\">;<\/span>\n\n cluster_name <span style=\"color:#000;font-weight:bold\">|<\/span> listen_address\n--------------+----------------\n       K8Demo <span style=\"color:#000;font-weight:bold\">|<\/span>   100.96.7.124\n\n<span style=\"color:#ce5c00;font-weight:bold\">(<\/span><span style=\"color:#0000cf;font-weight:bold\">1<\/span> rows<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><\/li>\n<\/ol>\n\n      "},{"title":"Docs: Cluster Topologies","link":"https:\/\/docs.storageos.com\/docs\/concepts\/cluster-topologies\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/concepts\/cluster-topologies\/","description":"\n        \n        \n        <p>StorageOS makes it possible for you to organise your cluster in multiple ways,\ndepending on your priorities and needs. The approaches below are idealised\nrepresentations of possible StorageOS clusters and can be mixed, modified and\nchanged at execution time.<\/p>\n<p>StorageOS performs file I\/O over the network, which is how we ensure that your\ndata is always available throughout your cluster. This also affords the user\ncertain possibilities for organising your cluster, as we suggest below.<\/p>\n<h2 id=\"hyperconverged-model\">Hyperconverged Model<\/h2>\n<p>In this topology all nodes can store data and present data. This gives maximum\nflexibility to the StorageOS and Kubernetes schedulers, and maximum choice for\npod placement. No matter how you deploy your workloads they will be able to\nstore and access data on every node.<\/p>\n<p>By default we place workloads locally where possible - this means that we\ndefault to a hybrid of the hyperconverged\/high-performance models, maximising\nperformance without extra effort.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/docs\/concepts\/hyperconverged.png\" alt=\"Hyperconverged Model\"><\/p>\n<h2 id=\"centralised-storage-model\">Centralised Storage Model<\/h2>\n<p>In this cluster topology volume data is placed on a particular subset of nodes,\nwhile the remaining nodes in your cluster are set to <code>computeonly<\/code>, allowing\naccess to data hosted on other nodes, while consuming no storage themselves.\nThis model can be advantageous if, for example, you want to take advantage of\nthe hardware characteristics of particular nodes. A centralised storage model\ncan also help avoid problems with naive resource allocation, since storage\nnodes and compute workloads can be kept apart.<\/p>\n<p>This mode is also very suitable for elastic fleets with burstable workloads. A\nfleet can be expanded with many new machines for computing, while maintaining a\ncentral data store not impacted by rapid and repeated cluster scaling.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/docs\/concepts\/centralised.png\" alt=\"Centralised Model\"><\/p>\n<h2 id=\"high-performance-mode\">High Performance Mode<\/h2>\n<p>In this mode we co-locate pods with the volumes they are using in order to take\nadvantage of the performance gains from running on the same node, while\nretaining the utility of orchestrators for managing app lifecycle.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/docs\/concepts\/high-performance.png\" alt=\"High Performance Model\"><\/p>\n\n      "},{"title":"Docs: Find ClusterID","link":"https:\/\/docs.storageos.com\/docs\/operations\/cluster-id\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/operations\/cluster-id\/","description":"\n        \n        \n        <p>Every StorageOS cluster has a unique ClusterID generated at bootstrap. A\nStorageOS Licence is specific for a ClusterID.<\/p>\n<h2 id=\"how-to-obtain-the-clusterid\">How to obtain the ClusterID<\/h2>\n<p>You can obtain the ClusterID using either the CLI or GUI.<\/p>\n<h3 id=\"gui\">GUI<\/h3>\n<p>You will need access to the StorageOS GUI on port 5705 of any of your nodes.\nFor convenience, it is often easiest to port forward the service using the\nfollowing kubectl incantation (this will block, so a second terminal window may\nbe advisable):<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl port-forward -n kube-system svc\/storageos <span style=\"color:#0000cf;font-weight:bold\">5705<\/span>\n<\/code><\/pre><\/div><p>As an alternative, an Ingress controller may be preferred.<\/p>\n<p>Once you have obtained access to the GUI, login using whatever credentials you\nused to create the cluster and go to the &ldquo;Licence&rdquo; section on the left\nnavigation menu.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/docs\/operations\/licensing\/licence-page.png\" alt=\"Licence page\"><\/p>\n<h3 id=\"cli\">CLI<\/h3>\n<p>This CLI command can print the cluster ID:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos get cluster\nID:               704dd165-9580-4da4-a554-0acb96d328cb\nLicence:\n  expiration:     2021-03-25T13:48:46Z <span style=\"color:#ce5c00;font-weight:bold\">(<\/span><span style=\"color:#0000cf;font-weight:bold\">1<\/span> year from now<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  capacity:       5.0 TiB\n  kind:           professional\n  customer name:  storageos\nCreated at:       2020-03-25T13:48:33Z <span style=\"color:#ce5c00;font-weight:bold\">(<\/span><span style=\"color:#0000cf;font-weight:bold\">1<\/span> hour ago<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\nUpdated at:       2020-03-25T13:48:46Z <span style=\"color:#ce5c00;font-weight:bold\">(<\/span><span style=\"color:#0000cf;font-weight:bold\">1<\/span> hour ago<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><p>Given the Cluster ID, the StorageOS team can generate a licence.<\/p>\n\n      "},{"title":"Docs: Clusters","link":"https:\/\/docs.storageos.com\/docs\/concepts\/clusters\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/concepts\/clusters\/","description":"\n        \n        \n        <p>StorageOS clusters represent groups of nodes which run a common distributed\ncontrol plane.<\/p>\n<p>Typically, a StorageOS cluster maps one-to-one to a Kubernetes (or similar\norchestrator) cluster, and we expect our daemonset to run on all worker\nnodes within the cluster that will consume or present storage.<\/p>\n<p>Clusters use etcd to maintain state and manage distributed consensus between\nnodes.<\/p>\n\n      "},{"title":"Docs: Compression","link":"https:\/\/docs.storageos.com\/docs\/concepts\/compression\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/concepts\/compression\/","description":"\n        \n        \n        <p>StorageOS compression is handled on a per volume basis and is disabled by\ndefault in v2.2+, as performance is generally increased when compression is\ndisabled due to block alignment. This means that there is a trade\noff between volume performance and the space the volume occupies on the backend\ndevice.<\/p>\n<p>Compression can be enabled by setting the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/labels\">label<\/a>\n<code>storageos.com\/nocompress=false<\/code> on a volume at volume creation time.<\/p>\n<p>StorageOS utilises the <a href=\"https:\/\/lz4.github.io\/lz4\/\">lz4 compression algorithm<\/a>\nwhen writing to the backend store and when compressing <a href=\"https:\/\/docs.storageos.com\/docs\/concepts\/replication\">replication\ntraffic<\/a> before it is sent across the network.<\/p>\n<p>StorageOS detects whether a block can be compressed or not by creating a\nheuristic that predicts the size of a compressed block. If the heuristic\nindicates that the compressed block is likely to be larger than the\noriginal block then the uncompressed block is stored. Block size increases post\ncompression if the compression dictionary is added to a block that cannot be\ncompressed. By verifying whether blocks can be compressed, disk efficiency is\nincreased and CPU resources are not wasted on attempts to compress\nuncompressible blocks. StorageOS&rsquo; patented on disk format is used to tell\nwhether individual blocks are compressed without overhead. As such volume\ncompression can be dynamically enabled\/disabled even while a volume is in use.<\/p>\n<p>When compression and <a href=\"https:\/\/docs.storageos.com\/docs\/concepts\/encryption\">encryption<\/a> are both enabled\nfor a volume, blocks are compressed then encrypted.<\/p>\n\n      "},{"title":"Docs: Contributing to the docs","link":"https:\/\/docs.storageos.com\/docs\/reference\/contributing\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/contributing\/","description":"\n        \n        \n        <p>We are always looking to improve our documentation. If you like to help people\nand can write, read on for the process for submitting your contributions. If your\nguide is published, you&rsquo;ll receive $250 per article by PayPal.<\/p>\n<h2 id=\"content-guidelines\">Content guidelines<\/h2>\n<p>A guide contains step by step instructions for how to accomplish a specific\ntask using StorageOS. To be accepted, guides must be:<\/p>\n<ul>\n<li>Written in English.<\/li>\n<li>Relevant, accurate and complete.<\/li>\n<li>Technically correct and thoroughly tested.<\/li>\n<li>Follow the <a href=\"https:\/\/github.com\/storageos\/storageos.github.io\/blob\/master\/README.md\">writing style guide<\/a>.<\/li>\n<\/ul>\n<p>Guides should avoid:<\/p>\n<ul>\n<li>Duplicating an existing guide or other sources, such as blogs or forum posts.<\/li>\n<li>Including irrelevant material.<\/li>\n<\/ul>\n<h2 id=\"submission-and-review\">Submission and review<\/h2>\n<p>You should submit your guide as a pull request to\n<a href=\"https:\/\/github.com\/storageos\/storageos.github.io\">the GitHub repo<\/a>.<\/p>\n<p>Your submission will be left open for community review for two weeks. After\nthis, your submission will be reviewed internally for about another week.<\/p>\n<p>If accepted, your pull request will be approved and you will have 36 hours to\nsend your submission title and PayPal account information. Non-response will be\ntaken as a go-ahead to publish.<\/p>\n<h2 id=\"legal\">Legal<\/h2>\n<p>COPYRIGHT OWNERSHIP. The StorageOS Guides &amp; Tutorials repository is licensed\nunder the <a href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International<\/a>\n(CC BY-NC-SA 4.0) license.<\/p>\n<p>CREDIT. Nothing contained in this Agreement shall be deeded to require StorageOS\nto use the Work, or any part thereof, in connection with StorageOS Guides &amp;\nTutorials or otherwise. Credit for the Work shall read, \u201cContributed by <em>writer\u2019s\nname<\/em>.\u201d<\/p>\n<p>PAYMENT. Upon publication of a submission to the StorageOS Guides &amp; Tutorials\nRepository, the writer will be paid the sum of USD $250.00 as an electronic\npayment.<\/p>\n\n      "},{"title":"Docs: Create","link":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/create\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/create\/","description":"\n        \n        \n        <div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos create --help\n\nCreate new resources\n\nUsage:\n  storageos create <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>command<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAvailable Commands:\n  namespace    Provision a new namespace\n  policy-group Provision a new policy group\n  user         Create a new user account\n  volume       Provision a new volume\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> create\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n\nUse <span style=\"color:#4e9a06\">&#34;storageos create [command] --help&#34;<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> more information about a command.\n<\/code><\/pre><\/div><h2 id=\"create-volume\">create volume<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos create volume --help\n\nProvision a new volume\n\nUsage:\n  storageos create volume <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storageos create volume --description <span style=\"color:#4e9a06\">&#34;This volume contains the data for my app&#34;<\/span> --fs-type <span style=\"color:#4e9a06\">&#34;ext4&#34;<\/span> --labels <span style=\"color:#000\">env<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>prod,rack<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>db-1 --size 10GiB --namespace my-namespace-name my-app\n\n$ storageos create volume --replicas <span style=\"color:#0000cf;font-weight:bold\">1<\/span> --namespace my-namespace-name my-replicated-app\n\n\nFlags:\n      --async                perform the operation asynchronously, using the configured timeout duration\n      --cache                caches volume data <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#204a87\">true<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --compress             compress data stored by the volume at rest and during transit\n  -d, --description string   a human-friendly description to give the volume\n  -f, --fs-type string       the filesystem to format the new volume with once provisioned <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;ext4&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -h, --help                 <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> volume\n  -l, --labels strings       an optional <span style=\"color:#204a87\">set<\/span> of labels to assign to the new volume, provided as a comma-separated list of <span style=\"color:#000\">key<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>value pairs\n  -r, --replicas uint        the number of replicated copies of the volume to maintain\n  -s, --size string          the capacity to provision the volume with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;5GiB&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --throttle             deprioritises the volumes traffic by reducing the rate of disk I\/O\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"create-user\">create user<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos create user --help\n\nCreate a new user account\n\nUsage:\n  storageos create user <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storageos create user --with-username<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>alice --with-admin<span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#204a87\">true<\/span> \n\n\nFlags:\n  -h, --help                      <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> user\n      --with-admin                control whether the user is given administrative privileges\n      --with-groups stringArray   the list of policy groups to assign to the user\n      --with-password string      the password to assign to the user. If not specified, this will be prompted <span style=\"color:#204a87;font-weight:bold\">for<\/span>.\n      --with-username string      the username to assign\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"create-namespace\">create namespace<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos create namespace --help\n\nProvision a new namespace\n\nUsage:\n  storageos create namespace <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storageos create namespace --labels <span style=\"color:#000\">env<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>prod,rack<span style=\"color:#ce5c00;font-weight:bold\">=<\/span>db-1 my-namespace-name\n\n\nFlags:\n  -h, --help             <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> namespace\n  -l, --labels strings   an optional <span style=\"color:#204a87\">set<\/span> of labels to assign to the new namespace, provided as a comma-separated list of <span style=\"color:#000\">key<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>value pairs\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"create-policy-group\">create policy-group<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos create policy-group --help\n\nProvision a new policy group\n\nUsage:\n  storageos create policy-group <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storageos create policy-group -r <span style=\"color:#4e9a06\">&#39;namespace-name:*:r&#39;<\/span> -r <span style=\"color:#4e9a06\">&#39;namespace-name-2:volume:w&#39;<\/span>  my-policy-group-name\n$ storageos create policy-group -r <span style=\"color:#4e9a06\">&#39;namespace-name:*:r,namespace-name-2:volume:w&#39;<\/span>  my-policy-group-name\n\n\nFlags:\n  -h, --help            <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> policy-group\n  -r, --rules strings   <span style=\"color:#204a87\">set<\/span> of rules to assign to the new policy group, provided as a comma-separated list of namespace:resource:rw triples.\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div>\n      "},{"title":"Docs: Delete","link":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/delete\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/delete\/","description":"\n        \n        \n        <div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos delete -h\n\nDelete resources in the cluster\n\nUsage:\n  storageos delete <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>command<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAvailable Commands:\n  namespace    Delete a namespace\n  node         Delete a node\n  policy-group Delete a policy group\n  user         Delete a user\n  volume       Delete a volume. By default the target volume must be online. If the volume is offline <span style=\"color:#204a87;font-weight:bold\">then<\/span> the request must specify that an offline delete is desired.\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> delete\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n\nUse <span style=\"color:#4e9a06\">&#34;storageos delete [command] --help&#34;<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> more information about a command.\n<\/code><\/pre><\/div><h2 id=\"delete-volume\">delete volume<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos delete volume --help\n\nDelete a volume. By default the target volume must be online. If the volume is offline <span style=\"color:#204a87;font-weight:bold\">then<\/span> the request must specify that an offline delete is desired.\n\nUsage:\n  storageos delete volume <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>volume name<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storageos delete volume my-test-volume my-unneeded-volume\n\n$ storageos delete volume --namespace my-namespace my-old-volume\n\n\nFlags:\n      --async            perform the operation asynchronously, using the configured timeout duration\n      --cas string       make changes to a resource conditional upon matching the provided version\n  -h, --help             <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> volume\n      --offline-delete   request deletion of an offline volume. Volume data is not removed <span style=\"color:#204a87;font-weight:bold\">until<\/span> the node reboots\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"delete-user\">delete user<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos delete user --help\n\nDelete a user\n\nUsage:\n  storageos delete user <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>user name<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storageos delete user my-unneeded-user\n$ storageos delete user --use-ids my-user-id\n\n\nFlags:\n      --cas string   make changes to a resource conditional upon matching the provided version\n  -h, --help         <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> user\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"delete-policy-group\">delete policy-group<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos delete policy-group --help\n\nDelete a policy group\n\nUsage:\n  storageos delete policy-group <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>policy group name<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storageos delete policy-group my-unneeded-policy-group\n$ storageos delete policy-group --use-ids my-policy-group-id\n\n\nFlags:\n      --cas string   make changes to a resource conditional upon matching the provided version\n  -h, --help         <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> policy-group\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n\n<\/code><\/pre><\/div><h2 id=\"delete-node\">delete node<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos delete node --help\n\nDelete a node\n\nUsage:\n  storageos delete node <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>node name<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storagoes delete node my-old-node\n\n\nFlags:\n      --async        perform the operation asynchronously, using the configured timeout duration\n      --cas string   make changes to a resource conditional upon matching the provided version\n  -h, --help         <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> node\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"delete-namespace\">delete namespace<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos delete namespace --help\n\nDelete a namespace\n\nUsage:\n  storageos delete namespace <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>namespace name<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storageos delete namespace my-unneeded-namespace\n$ storageos delete namespace --use-ids my-namespace-id\n\n\nFlags:\n      --cas string   make changes to a resource conditional upon matching the provided version\n  -h, --help         <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> namespace\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div>\n      "},{"title":"Docs: Deleting StorageOS Objects","link":"https:\/\/docs.storageos.com\/docs\/operations\/delete-stos-objects\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/operations\/delete-stos-objects\/","description":"\n        \n        \n        <p>When a Kubernetes object is deleted, StorageOS controllers automatically sync\nthis deletion to StorageOS. For example, when a Kubernets node is deleted, this\nwill automatically be mirrored in StorageOS, likewise with Namespaces.<\/p>\n<ol>\n<li>\n<p>Here is a StorageOS node, running on Kubernetes node worker1. A StorageOS\nnode is any machine that is running the StorageOS daemonset pod. The node is\nvisible below in kubectl.<\/p>\n<pre><code>$ kubectl describe -n kube-system pod storageos-daemonset-6q4g8\nName:                 storageos-daemonset-6q4g8\nNamespace:            kube-system\nPriority:             2000001000\nPriority Class Name:  system-node-critical\nNode:                 worker1\/192.168.152.238\nStart Time:           Thu, 06 May 2021 15:53:34 +0100\nLabels:               app=storageos\n                      app.kubernetes.io\/component=storageos-daemonset\n                      app.kubernetes.io\/instance=example-storageos\n                      app.kubernetes.io\/managed-by=storageos-operator\n                      app.kubernetes.io\/name=storageos\n                      app.kubernetes.io\/part-of=storageos\n                      controller-revision-hash=f5dcf577d\n                      kind=daemonset\n                      pod-template-generation=1\n                      storageos_cr=example-storageos\nAnnotations:          kubectl.kubernetes.io\/default-logs-container: storageos\nStatus:               Running\nIP:                   192.168.152.238\n...\n<\/code><\/pre><p>The nodes in your cluster can be seen with <code>storageos get nodes<\/code>.<\/p>\n<pre><code>$ storageos get nodes\nNAME          HEALTH  AGE        LABELS                              \nworker1       online  1 day ago  beta.kubernetes.io\/arch=amd64,      \n                                 beta.kubernetes.io\/os=linux,        \n                                 cattle.io\/creator=norman,           \n                                 kubernetes.io\/arch=amd64,           \n                                 kubernetes.io\/hostname=worker1,\n                                 kubernetes.io\/os=linux,             \n                                 node-role.kubernetes.io\/worker=true\n                                 storageos.com\/computeonly=true \nworker2       online  1 day ago  beta.kubernetes.io\/arch=amd64,      \n                                 beta.kubernetes.io\/os=linux,        \n                                 cattle.io\/creator=norman,           \n                                 kubernetes.io\/arch=amd64,           \n                                 kubernetes.io\/hostname=worker2,\n                                 kubernetes.io\/os=linux,             \n                                 node-role.kubernetes.io\/worker=true \nworker3       online  1 day ago  beta.kubernetes.io\/arch=amd64,      \n                                 beta.kubernetes.io\/os=linux,        \n                                 cattle.io\/creator=norman,           \n                                 kubernetes.io\/arch=amd64,           \n                                 kubernetes.io\/hostname=worker3,\n                                 kubernetes.io\/os=linux,             \n                                 node-role.kubernetes.io\/worker=true\n...\n<\/code><\/pre><\/li>\n<li>\n<p>Delete the node.<\/p>\n<pre><code>$ kubectl delete node worker1\n<\/code><\/pre><\/li>\n<li>\n<p>Verify that the node has been deleted with <code>kubectl get nodes<\/code> or\n<code>storageos get nodes<\/code>. The node has now disappeared from StorageOS.<\/p>\n<pre><code>$ storageos get nodes\nNAME          HEALTH  AGE        LABELS                              \nworker2       online  1 day ago  beta.kubernetes.io\/arch=amd64,      \n                                 beta.kubernetes.io\/os=linux,        \n                                 cattle.io\/creator=norman,           \n                                 kubernetes.io\/arch=amd64,           \n                                 kubernetes.io\/hostname=worker2,\n                                 kubernetes.io\/os=linux,             \n                                 node-role.kubernetes.io\/worker=true \nworker3       online  1 day ago  beta.kubernetes.io\/arch=amd64,      \n                                 beta.kubernetes.io\/os=linux,        \n                                 cattle.io\/creator=norman,           \n                                 kubernetes.io\/arch=amd64,           \n                                 kubernetes.io\/hostname=worker3,\n                                 kubernetes.io\/os=linux,             \n                                 node-role.kubernetes.io\/worker=true \n...\n<\/code><\/pre><\/li>\n<\/ol>\n\n      "},{"title":"Docs: Describe","link":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/describe\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/describe\/","description":"\n        \n        \n        <div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos describe --help\n\nFetch extended details <span style=\"color:#204a87;font-weight:bold\">for<\/span> resources\n\nUsage:\n  storageos describe <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>command<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAvailable Commands:\n  cluster      Retrieve detailed information <span style=\"color:#204a87;font-weight:bold\">for<\/span> the current cluster\n  licence      Fetch current licence configuration details\n  namespace    Retrieve detailed information <span style=\"color:#204a87;font-weight:bold\">for<\/span> one or many namespaces\n  node         Retrieve detailed information <span style=\"color:#204a87;font-weight:bold\">for<\/span> nodes in the cluster\n  policy-group Show detailed information <span style=\"color:#204a87;font-weight:bold\">for<\/span> policy groups\n  user         Show detailed information <span style=\"color:#204a87;font-weight:bold\">for<\/span> users\n  volume       Show detailed information <span style=\"color:#204a87;font-weight:bold\">for<\/span> volumes\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> describe\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n\nUse <span style=\"color:#4e9a06\">&#34;storageos describe [command] --help&#34;<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> more information about a command.\n<\/code><\/pre><\/div><h2 id=\"describe-cluster\">describe cluster<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos describe cluster --help\n\nRetrieve detailed information <span style=\"color:#204a87;font-weight:bold\">for<\/span> the current cluster\n\nUsage:\n  storageos describe cluster <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  cluster, nodes\n\nExamples:\n\n$ storageos describe cluster\n\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> cluster\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"describe-license\">describe license<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos describe license --help\n\nFetch current licence configuration details\n\nUsage:\n  storageos describe licence <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  licence, license\n\nExamples:\n\n$ storageos describe licence\n\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> licence\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"describe-namespace\">describe namespace<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos describe namespace --help\n\nRetrieve detailed information <span style=\"color:#204a87;font-weight:bold\">for<\/span> one or many namespaces\n\nUsage:\n  storageos describe namespace <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  namespace, namespaces\n\nExamples:\n\n$ storageos describe namespace my-namespace-name\n$ storageos describe namespace --use-ids my-namespace-id\n$ storageos describe namespaces\n\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> namespace\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"describe-node\">describe node<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos describe node --help\n\nRetrieve detailed information <span style=\"color:#204a87;font-weight:bold\">for<\/span> nodes in the cluster\n\nUsage:\n  storageos describe node <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>node names...<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  node, nodes\n\nExamples:\n\n$ storageos describe node my-node-name\n\n\nFlags:\n  -h, --help                   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> node\n  -l, --selector stringArray   filter returned results by a <span style=\"color:#204a87\">set<\/span> of comma-separated label selectors\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"describe-policy-group\">describe policy-group<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos describe user --help\n\nShow detailed information <span style=\"color:#204a87;font-weight:bold\">for<\/span> policy groups\n\nUsage:\n  storageos describe policy-group <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>policy group names...<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  policy-group, policy-groups\n\nExamples:\n\n$ storageos describe policy-groups\n$ storageos describe policy-group my-policy-group-name\n\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> policy-group\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"describe-user\">describe user<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos describe user --help\n\nShow detailed information <span style=\"color:#204a87;font-weight:bold\">for<\/span> users\n\nUsage:\n  storageos describe user <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>user names...<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  user, users\n\nExamples:\n\n$ storageos describe users\n$ storageos describe user my-username\n$ storageos describe user my-username-1 my-username-2\n$ storageos describe user --use-ids my-userid\n$ storageos describe user --use-ids my-userid-1 my-userid-2\n\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> user\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"describe-volume\">describe volume<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos describe volume --help\n\nShow detailed information <span style=\"color:#204a87;font-weight:bold\">for<\/span> volumes\n\nUsage:\n  storageos describe volume <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>volume names...<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  volume, volumes\n\nExamples:\n\n$ storageos describe volumes\n\n$ storageos describe volume --namespace my-namespace-name my-volume-name\n\n\nFlags:\n  -A, --all-namespaces         retrieves volumes from all accessible namespaces. This option overrides the namespace configuration\n  -h, --help                   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> volume\n  -l, --selector stringArray   filter returned results by a <span style=\"color:#204a87\">set<\/span> of comma-separated label selectors\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div>\n      "},{"title":"Docs: Detach Volume","link":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/detach\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/detach\/","description":"\n        \n        \n        <div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos detach --help\n\nDetach a volume from its current location\n\nUsage:\n  storageos detach <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storageos detach --namespace my-namespace-name my-volume\n\n\nFlags:\n      --async        perform the operation asynchronously, using the configured timeout duration\n      --cas string   make changes to a resource conditional upon matching the provided version\n  -h, --help         <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> detach\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div>\n      "},{"title":"Docs: Diagnostic bundle","link":"https:\/\/docs.storageos.com\/docs\/reference\/bundles\/diagnostic-bundle\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/bundles\/diagnostic-bundle\/","description":"\n        \n        \n        <p>StorageOS can generate a cluster diagnostic bundle from the GUI or CLI under\nuser request. The bundle packages the information needed for the engineering\nteam to understand the context of your cluster and begin troubleshooting any\nissues you may be experiencing.<\/p>\n<h2 id=\"generate-bundle\">Generate Bundle<\/h2>\n<h3 id=\"cli\">CLI<\/h3>\n<p>The <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/cli\/\">StorageOS CLI<\/a> can generate\nthe bundle.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos get diagnostics\n<\/code><\/pre><\/div><blockquote>\n<p>The file generated is in the form of <code>diagnostics-${TIME_STAMP}.gz<\/code><\/p>\n<\/blockquote>\n<h3 id=\"gui\">GUI<\/h3>\n<p>Or you can use the <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/gui\/\">StoregeOS GUI<\/a>.<\/p>\n<ol>\n<li>Go to section &ldquo;Cluster&rdquo;<\/li>\n<li>Press the button &ldquo;DOWNLOAD DIAGNOSTICS&rdquo;.<\/li>\n<\/ol>\n<h2 id=\"data-collected-in-the-bundle\">Data collected in the bundle<\/h2>\n<p>Most of the data collected in the bundle is regarding the state of the\nStorageOS cluster, however some other information regarding the infrastructure\nis also gathered. The information is used to have a clear view of the cluster\nwhere StorageOS is running.<\/p>\n<p>The bundle incorporates for each node:<\/p>\n<ul>\n<li>StorageOS Daemonset Pod logs<\/li>\n<li>lshw<\/li>\n<li>dmesg (kernel logs)<\/li>\n<li>StorageOS metadata for the ControlPlane and DataPlane<\/li>\n<\/ul>\n<h3 id=\"storageos-metadata-collected\">StorageOS metadata collected<\/h3>\n<ul>\n<li>cluster metadata<\/li>\n<li>namespaces metadata<\/li>\n<li>nodes metadata<\/li>\n<li>volumes metadata<\/li>\n<li>capacity stats<\/li>\n<li>environment variables<\/li>\n<li>health<\/li>\n<\/ul>\n<h2 id=\"privacy\">Privacy<\/h2>\n<p>StorageOS can only obtain the bundle if it is downloaded by the user and given\nto our engineering team, or uploaded for analysis. The data received by\nStorageOS is private and never leaves nor will leave StorageOS Inc.<\/p>\n<p>The data contained in the cluster diagnostic bundle has the sole purpose of\nhelping customers troubleshoot their issues.<\/p>\n\n      "},{"title":"Docs: Disk Full","link":"https:\/\/docs.storageos.com\/docs\/operations\/disk-full\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/operations\/disk-full\/","description":"\n        \n        \n        <p>When the physical disks in your cluster get full, or start using disk space too\nfast, Kubernetes will automatically apply the <code>DiskPressure:NoExecute<\/code> taint.<\/p>\n<p>The StorageOS Daemonset has a toleration applied for this taint, so it will\ncontinue to run.<\/p>\n<h2 id=\"detecting-a-full-disk\">Detecting a full disk<\/h2>\n<p>You will see the following when viewing the StorageOS container logs on the\naffected node with <code>kubectl logs storageos-daemonset-xxxx -c storageos<\/code>:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-text\" data-lang=\"text\">&#34;msg&#34;: &#34;StartAsyncFallocate: insufficient free space on file system free_space=1048305664 required_free_space=1073741824&#34;,\n&#34;msg&#34;: &#34;Write: write failed volid=155051 error=BlobStorage::PrepWrite encountered a previous IO error preventing future IO for safety&#34;,\n&#34;msg&#34;: &#34;Write: write failed volid=155051 error=all blob files are full - can not complete write&#34;,\n&#34;msg&#34;: &#34;Write: write failed volid=155051 error=BlobStorage::PrepWrite encountered a previous IO error preventing future IO for safety&#34;,\n&#34;msg&#34;: &#34;SCSI command failed type=write error=FATAL retries=0 time_to_deadline_secs=89&#34;,\n<\/code><\/pre><\/div><p>When trying to attach a volume to a node with a full disk you will see the\nfollowing when running <code>kubectl describe pod $POD_USING_VOLUME<\/code>:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-text\" data-lang=\"text\">AttachVolume.Attach failed for volume &#34;pvc-xxx&#34; : rpc error: code = Internal desc = internal error: rpc error: code = Internal desc = rpc error: code = Internal desc = fs: STATUS_FORBIDDEN: create failed in Notify handler error=Failed to create LUN for FsConfigVolume{volume_id=\n<\/code><\/pre><\/div><h2 id=\"consequences-of-a-full-disk\">Consequences of a full disk<\/h2>\n<h3 id=\"volume-provisioning\">Volume Provisioning<\/h3>\n<p>When provisioning a new volume, the dataplane checks that there is at least\n<code>1GiB<\/code> of space left on the nodes&rsquo; underlying filesystem for the blob files\nlocated at <code>\/var\/lib\/storageos\/data\/dev[0-9]+\/vol.xxxxxx.0.blob<\/code> and\n<code>\/var\/lib\/storageos\/data\/dev[0-9]+\/vol.xxxxxx.1.blob<\/code>.<\/p>\n<p>If there is insufficient space for both of the blob files that StorageOS uses\nto store data, then the dataplane fails the volume create request.<\/p>\n<h3 id=\"runtime-access\">Runtime Access<\/h3>\n<p>At runtime, if an attempted write to a blob file returns an <code>ENOSPC<\/code> exception,\nthe dataplane marks the file as full. Once both StorageOS blob files in a\nvolume are marked as full, the dataplane marks the deployment with an error\nflag, and all subsequent read\/write operations will return an I\/O error.<\/p>\n<p><em>This flag is only stored in memory, therefore, to clear this flag, the\nStorageOS daemonset pod on the affected node must be restarted after\nremediating the disk space issue.<\/em><\/p>\n<h3 id=\"replica-failover\">Replica Failover<\/h3>\n<p>A replica on a full disk can&rsquo;t be failed over successfully.<\/p>\n<h2 id=\"recovering-from-a-full-disk\">Recovering from a full disk<\/h2>\n<p>To recover from a disk full error, you can either add new storage space\ninto the affected node, or delete existing persistent volume claims`.<\/p>\n<blockquote>\n<p><strong>N.B.<\/strong> However you choose to resolve the issue, the <strong>StorageOS Daemonset\nPod must be restarted<\/strong>.<\/p>\n<\/blockquote>\n<p>This is because the blob files disallow operations at runtime via the\npreviously discussed error flag stored in memory. This flag does not survive\nboot cycles, so after the pod restarts, volumes can operate normally once more.<\/p>\n<h3 id=\"adding-new-storage-space\">Adding New Storage Space<\/h3>\n<p>If you choose to recover by expanding your capacity, you have two main options:<\/p>\n<ol>\n<li>Add new storage devices at <code>\/var\/lib\/storageos\/data\/dev[0-9]+<\/code> as described\n<a href=\"https:\/\/docs.storageos.com\/docs\/operations\/managing-host-storage\/#option-1-mount-additional-devices\">here<\/a>.<\/li>\n<li>Expand the underlying filesystem that StorageOS is using as described\n<a href=\"https:\/\/docs.storageos.com\/docs\/operations\/managing-host-storage\/#option-2-expand-existing-devices-backed-by-lvm\">here<\/a>.<\/li>\n<\/ol>\n<p>After expanding capacity remember to restart the StorageOS daemonset pod.<\/p>\n<h3 id=\"deleting-existing-pvcs\">Deleting existing PVCs<\/h3>\n<p>If you choose to recover by deleting existing persistent volume claims simply:<\/p>\n<p><code>kubectl delete pvc &lt;PVCOnFullNodeName&gt;<\/code><\/p>\n<p>Then restart the StorageOS daemonset pod.<\/p>\n\n      "},{"title":"Docs: Docker Enterprise Edition","link":"https:\/\/docs.storageos.com\/docs\/platforms\/dockeree\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/platforms\/dockeree\/","description":"\n        \n        \n        <p>To install StorageOS on DockerEE, please follow our Kubernetes <a href=\"https:\/\/docs.storageos.com\/docs\/install\/kubernetes\/\">installation\ninstructions<\/a> page.<\/p>\n<p>Docker EE and the Universal Control Plane can run on different Linux\ndistributions. StorageOS supports RHEL, CentOS, Debian, and selected Ubuntu\nimages. For more details, check out the supported OSs in the\n<a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/systemconfiguration\/\">prerequisites page<\/a>.<\/p>\n<p>StorageOS only supports Kubernetes nodes managed by Docker Enterprise Edition,\nnot those nodes running Swarm. Mixed nodes (those running Kubernetes and Swarm\nworkloads) are not supported. As a consequence, StorageOS volumes can only be\nprovisioned on Kubernetes nodes, and only these nodes should be used for\nstateful workloads.<\/p>\n\n      "},{"title":"Docs: Elasticsearch","link":"https:\/\/docs.storageos.com\/docs\/usecases\/elasticsearch\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/usecases\/elasticsearch\/","description":"\n        \n        \n        <img src=\"https:\/\/docs.storageos.com\/images\/docs\/explore\/elasticsearch.png\" width=\"125\" height=\"125\">\n<p>Elasticsearch is a distributed, RESTful search and analytics engine, most\npopularly used to aggregate logs, but also to serve as a search backend to a\nnumber of different applications.<\/p>\n<p>Using StorageOS persistent volumes with ElasticSearch (ES) means that if a pod\nfails, the cluster is only in a degraded state for as long as it takes\nKubernetes to restart the pod. When the pod comes back up, the pod data is\nimmediately available. Should Kubernetes schedule the Elasticsearch pod on a\nnew node, StorageOS allows for the data to be available to the pod,\nirrespective of whether or not the original StorageOS master volume\nis located on the same node.<\/p>\n<p>Elasticsearch has features to allow it to handle data replication, and as such\ncareful consideration of whether to allow StorageOS or Elasticsearch to handle\nreplication is required.<\/p>\n<p>Before you start, ensure you have StorageOS installed and ready on a Kubernetes\ncluster. <a href=\"https:\/\/docs.storageos.com\/docs\/install\/kubernetes\/\">See our guide on how to install StorageOS on Kubernetes for more\ninformation<\/a>.<\/p>\n<h2 id=\"deploying-elasticsearch-on-kubernetes\">Deploying Elasticsearch on Kubernetes<\/h2>\n<h3 id=\"prerequisites\">Prerequisites<\/h3>\n<p>Some OS tuning is required, which is done automatically when using our example\nfrom the <a href=\"https\/\/github.com\/storageos\/use-cases.git\">use cases<\/a> repository.<\/p>\n<p>Elasticsearch requires <code>vm.max_map_count<\/code> to be increased to a minimum of\n<code>262144<\/code>, which is a system wide setting. One way to achieve this is to\nrun <code>sysctl -w vm.max_map_count=262144<\/code> and update <code>\/etc\/sysctl.conf<\/code>\nto ensure it persists over a reboot. See ElasicSearch reference\n<a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/7.0\/vm-max-map-count.html\">here<\/a>.<\/p>\n<p>Administrators should be aware that this impacts the behaviour of nodes and\nthat there may be collisions with other application settings. Administrators\nare advised to centrally collate sysctl settings using the tooling of their\nchoice.<\/p>\n<h3 id=\"deployment-of-the-application\">Deployment of the application<\/h3>\n<h4 id=\"statefulset-defintion\">StatefulSet defintion<\/h4>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\">---<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>apps\/v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>StatefulSet<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>esdata<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#000;font-weight:bold\">[<\/span>...<span style=\"color:#000;font-weight:bold\">]<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">serviceAccountName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>elasticsearch<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">containers<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span>- <span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>data<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">          <\/span><span style=\"color:#204a87;font-weight:bold\">image<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>elasticsearch<span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#0000cf;font-weight:bold\">6.7<\/span><span style=\"color:#0000cf;font-weight:bold\">.0<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">          <\/span><span style=\"color:#204a87;font-weight:bold\">imagePullPolicy<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>IfNotPresent<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#000;font-weight:bold\">[<\/span>...<span style=\"color:#000;font-weight:bold\">]<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">          <\/span><span style=\"color:#204a87;font-weight:bold\">volumeMounts<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">            <\/span>- <span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>data<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">              <\/span><span style=\"color:#204a87;font-weight:bold\">mountPath<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>\/usr\/share\/elasticsearch\/data\/data<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#000;font-weight:bold\">[<\/span>...<span style=\"color:#000;font-weight:bold\">]<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">volumeClaimTemplates<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- <span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;data&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">accessModes<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#000;font-weight:bold\">[<\/span><span style=\"color:#4e9a06\">&#34;ReadWriteOnce&#34;<\/span><span style=\"color:#000;font-weight:bold\">]<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">storageClassName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;fast&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># &lt;--- default StorageOS storage class name<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">resources<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">          <\/span><span style=\"color:#204a87;font-weight:bold\">requests<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">            <\/span><span style=\"color:#204a87;font-weight:bold\">storage<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>10Gi<span style=\"color:#f8f8f8;text-decoration:underline\">   <\/span><span style=\"color:#8f5902;font-style:italic\"># &lt;--- change this to the appropriate value<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>This excerpt is from the StatefulSet definition\n(<code>\/elasticsearch\/10-es-data.yaml<\/code>). The file contains the\nPersistentVolumeClaim template that will dynamically\nprovision the necessary storage, using the StorageOS storage class.<\/p>\n<p>Dynamic provisioning occurs as a volumeMount has been declared with the same\nname as a VolumeClaimTemplate.<\/p>\n<h2 id=\"installation\">Installation<\/h2>\n<h4 id=\"clone-the-use-cases-repo\">Clone the use cases repo<\/h4>\n<p>You can find the latest files in the StorageOS use cases repostiory\nin <code>\/elasticsearch\/<\/code><\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">git clone https:\/\/github.com\/storageos\/use-cases.git storageos-usecases\n<span style=\"color:#204a87\">cd<\/span> storageos-usecases\n<\/code><\/pre><\/div><ol>\n<li>\n<p>Create the kubernetes objects<\/p>\n<p>This will install an ES cluster with 3 master, 3 data and 3 coordinator\nnodes. Combined they will require ~ 14 GiB of available memory in your\ncluster, however, more may be used as the application is being used<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl apply -f .\/elasticsearch\/\n<\/code><\/pre><\/div><p>Once completed, an internal service object will have been created making the\ncluster available as <code>http:\/\/elasticsearch:9200\/<\/code> which is the default Kibana\n(when installed via Helm) will be using.<\/p>\n<\/li>\n<li>\n<p>Confirm Elasticsearch is up and running<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl get pods -l <span style=\"color:#000\">component<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>elasticsearch\n\nNAME                                    READY   STATUS    RESTARTS   AGE\nelasticsearch-exporter-d86ffd94-zw45l   1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          5m44s\nes-coordinator-b7b984dd4-7wlz5          1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          5m44s\nes-coordinator-b7b984dd4-89w26          1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          5m44s\nes-coordinator-b7b984dd4-b4t6j          1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          5m44s\nes-master-78dfd5b49f-9gf5c              1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          5m44s\nes-master-78dfd5b49f-smsbw              1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          5m44s\nes-master-78dfd5b49f-z4qpj              1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          5m44s\nesdata-0                                1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          5m44s\nesdata-1                                1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          4m34s\nesdata-2                                1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          3m22s\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Connect to ElasticSearch<\/p>\n<p>To connect to ES directly, you can use the following port-forward command<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl port-forward svc\/elasticsearch <span style=\"color:#0000cf;font-weight:bold\">9200<\/span>\n<\/code><\/pre><\/div><p>and then access it via <a href=\"http:\/\/localhost:9200\">http:\/\/localhost:9200<\/a><\/p>\n<\/li>\n<\/ol>\n<h2 id=\"kibana-optional\">Kibana (optional)<\/h2>\n<p>One of the most popular uses of ES is to use it for log aggregation and\nindexing, Kibana helps us visualize the data in these indices and can be\neasily used when installed via its Helm chart<\/p>\n<ol>\n<li>\n<p>Install the helm chart.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">helm install stable\/kibana\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Once installed, use a port-foward to Kibana instead of directly to ES<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">kubectl port-forward --namespace default <span style=\"color:#204a87;font-weight:bold\">$(<\/span>kubectl get pods --namespace default -l <span style=\"color:#4e9a06\">&#34;app=kibana&#34;<\/span> -o <span style=\"color:#000\">jsonpath<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;{.items[0].metadata.name}&#34;<\/span><span style=\"color:#204a87;font-weight:bold\">)<\/span> <span style=\"color:#0000cf;font-weight:bold\">5601<\/span>\n<\/code><\/pre><\/div><p>and then access it via <a href=\"http:\/\/localhost:5601\">http:\/\/localhost:5601<\/a><\/p>\n<\/li>\n<\/ol>\n<h2 id=\"monitoring-optional\">Monitoring (optional)<\/h2>\n<p>As part of the example deployment, ES metrics are exposed and can be scraped\nby Prometheus on port 9108\n(see <a href=\"https:\/\/github.com\/storageos\/use-cases\/blob\/master\/elasticsearch\/77-es-exporter.yaml\">77-es-exporter.yaml<\/a>).\nThis is enabled by default, and should work with the default Prometheus install\nvia Helm. If you&rsquo;re using the Prometheus service monitors, you can monitor\nthis installation by creating a monitor for the <code>es-exporter<\/code> service. For an\nexample of how this is done to monitor StorageOS, please see <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/monitoring\/prometheus-setup\">prometheus-setup<\/a>.<\/p>\n\n      "},{"title":"Docs: Encryption","link":"https:\/\/docs.storageos.com\/docs\/operations\/encryption\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/operations\/encryption\/","description":"\n        \n        \n        <p>For more detail on encryption at rest in StorageOS, please see <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/encryption\/\">the reference\npage<\/a>.<\/p>\n<h2 id=\"enabling-encryption-on-a-volume\">Enabling encryption on a volume<\/h2>\n<p>Encrypting a volume is done by simply creating a volume with the\n<code>storageos.com\/encryption=true<\/code> label. This can be set on the PVC or on\nthe PVC&rsquo;s StorageClass.<\/p>\n<p>This label is all that is needed. If it is present, the mutating admission\nwebhook that runs as part of the StorageOS API Manager will create the\nencryption key, link it to the PVC and store it in a secret.<\/p>\n<p>Encryption is enabled when a volume is provisioned, and it can not be removed\nduring during the volume&rsquo;s lifetime.<\/p>\n<h2 id=\"an-example-encrypted-volume\">An example encrypted volume<\/h2>\n<ul>\n<li>\n<p>Option 1: Label the PVC<\/p>\n<p>Add the label in the PVC definition, for instance:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>PersistentVolumeClaim<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>encrypted-vol<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">labels<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">storageos.com\/encryption<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;true&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># Label &lt;-----<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">storageClassName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;fast&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">accessModes<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- ReadWriteOnce<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">resources<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">requests<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">storage<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>1G<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>The encryption label as set on a PVC takes precedence over the encryption\nlabel as set on the PVC&rsquo;s StorageClass.<\/p>\n<\/li>\n<li>\n<p>Option 2: Add a parameter to the StorageClass<\/p>\n<p>Add a parameter to the StorageClass definition. This will cause the above\nlabel to be present on PVCs created using this StorageClass. For instance:<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>storage.k8s.io\/v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>StorageClass<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>storageos-encrypted<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">parameters<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">fsType<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>ext4<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">storageos.com\/encryption<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;true&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># Label   &lt;--------<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># Change the NameSpace below if StorageOS doesn&#39;t run in kube-system<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/controller-expand-secret-name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>csi-controller-expand-secret<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/controller-publish-secret-name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>csi-controller-publish-secret<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/node-publish-secret-name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>csi-node-publish-secret<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/provisioner-secret-name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>csi-provisioner-secret<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/controller-expand-secret-namespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>kube-system<span style=\"color:#f8f8f8;text-decoration:underline\">   <\/span><span style=\"color:#8f5902;font-style:italic\"># NameSpace that runs StorageOS Daemonset<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/controller-publish-secret-namespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>kube-system<span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># NameSpace that runs StorageOS Daemonset<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/node-publish-secret-namespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>kube-system<span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#8f5902;font-style:italic\"># NameSpace that runs StorageOS Daemonset<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/provisioner-secret-namespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>kube-system<span style=\"color:#f8f8f8;text-decoration:underline\">         <\/span><span style=\"color:#8f5902;font-style:italic\"># NameSpace that runs StorageOS Daemonset<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">provisioner<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>storageos<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># CSI driver (recommended)<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><\/li>\n<\/ul>\n\n      "},{"title":"Docs: Encryption","link":"https:\/\/docs.storageos.com\/docs\/reference\/encryption\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/encryption\/","description":"\n        \n        \n        <p>StorageOS supports encryption for data-at-rest and data-in-transit.<\/p>\n<p>Data-in-transit is data as it is travelling between nodes. It is encrypted by\ndefault with mTLS. Data-at-rest is the data stored in your volumes as <a href=\"https:\/\/docs.storageos.com\/docs\/concepts\/volumes\/\"> blob\nfiles<\/a>. Encryption of these blob files\nis optional and can be enabled by adding a label to your volume definitions\nbefore they&rsquo;re provisioned.<\/p>\n<p>For information on how to enable encryption on your volumes, please see our\n<a href=\"https:\/\/docs.storageos.com\/docs\/operations\/encryption\/\">Encryption Operations<\/a> page.<\/p>\n<h2 id=\"how-volumes-are-encrypted\">How volumes are encrypted<\/h2>\n<p>Volumes are encrypted using AES-256 in the XTS-AES mode with 512-bit keys, as\nspecified by IEEE Standard 1619-2007. There is a non-zero performance impact of\nusing encrypted volumes. A 10-25% cost in read\/write throughput can be\nexpected from XTS-AES, dependent on workload. Thin provisioning still applies\nto encrypted volumes.<\/p>\n<h2 id=\"encryption-key-generation\">Encryption Key Generation<\/h2>\n<p>On PVC creation, <a href=\"https:\/\/docs.storageos.com\/docs\/reference\/labels\/#storageos-volume-labels\">if encryption is enabled<\/a>, StorageOS will\nautomatically generate up to two keys as Kubernetes secrets. Both keys are\nstored in the same namespace as the PVC.<\/p>\n<p>Firstly, if it doesn&rsquo;t already exist, a namespace key is generated. It is\nalways named <code>storageos-namespace-key<\/code> and only one exists per namespace.<\/p>\n<p>Secondly a volume key is created for each encrypted volume. It has a name in\nthe format <code>storageos-volume-key-&lt;random-id&gt;<\/code>, with no connection to the name\nof the volume. The volume it is associated with can be determined by looking at\nthe <code>storageos.com\/pvc<\/code> label on the secret. The\n<code>storageos.com\/encryption-secret-name<\/code> and\n<code>storageos.com\/encryption-secret-namespace<\/code> annotations are added to the PVC by\nan admission controller to map the PVC back to its secret.<\/p>\n<p>The encryption key is passed to StorageOS as part of the CSI volume creation\nrequest and is used to encrypt the volume.<\/p>\n<h2 id=\"encryption-key-use\">Encryption Key Use<\/h2>\n<p>The volume specific secret is needed whenever a volume is attached to a node\nfor use by a pod. When this happens, the StorageOS node container&rsquo;s Service\nAccount reads the secret and passes it to the StorageOS controlplane.<\/p>\n<p>A volume missing its key or with a malformed key will be unable to attach.<\/p>\n<p>The key is stored in memory by StorageOS only on the node that the volume is\nbeing used on. As a result, encryption and decryption are performed where the\ndata is consumed, rather than where it is stored.<\/p>\n<p>Because of this, the use of encrypted volumes is transparent to the user.\nThere is a complete integration between Kubernetes applications and\nStorageOS encryption.<\/p>\n<h2 id=\"key-management-best-practices\">Key Management Best Practices<\/h2>\n<p>StorageOS saves encryption keys in Kubernetes Secrets.\nBackups are therefore imperative in case the Kubernetes Etcd is lost.\n<strong>StorageOS has no ability to decrypt a volume whose encryption keys have been\nlost.<\/strong><\/p>\n<p>Secrets in Kubernetes are not encrypted by default, they are stored in the\nKubernetes Etcd in simple Base64 encoding. As StorageOS encryption keys are\nstored as Kubernetes Secrets, this means that anyone with access to a\nKubernetes Etcd installation can read encryption keys and decrypt volumes,\nunless the cluster has an external secrets store.<\/p>\n<p>For better security check Kubernetes <a href=\"https:\/\/kubernetes.io\/docs\/tasks\/administer-cluster\/encrypt-data\/\">secret\nencryption<\/a>.<\/p>\n<p>Secrets are not garbage-collected by StorageOS. To clean up completely upon\ndeletion of a volume it is necessary to also delete that volume&rsquo;s secret. There\nis no benefit to doing this, however.<\/p>\n<h2 id=\"key-management-with-kubernetes-kms-provider\">Key Management with Kubernetes KMS provider<\/h2>\n<p>StorageOS encryption keys are stored within Etcd as Kubernetes secrets. Whilst\nthe Etcd and kubernetes secrets <a href=\"https:\/\/kubernetes.io\/docs\/tasks\/administer-cluster\/encrypt-data\/\">can also be\nencrypted<\/a>,\nmany organisations choose to use an external KMS provider.<\/p>\n<p>To address this from a Kubernetes limitations perspective and provide an\nagnostic solution, our encryption design allows the user to benefit from any\nKubernetes KMS provider plugin to envelop the secrets into the KMS provider\nencryption scheme.<\/p>\n<p>StorageOS allows customers to transparently integrate any supported KMS plugin\nwith StorageOS encryption key management using the standard Kubernetes API and\nKubernetes KMS provider framework. The below figure provides an overview of the\nprocess.<\/p>\n<p><img src=\"https:\/\/docs.storageos.com\/images\/docs\/gui-v2\/kms-key-management.png\" alt=\"KMS Key Management\"><\/p>\n<ol>\n<li>The KMS plugin is deployed within the Kubernetes cluster.<\/li>\n<li>The KMS plugin is configured to act as a broker between the Kubernetes API\nserver and the KMS server API endpoint.<\/li>\n<li>At volume creation, StorageOS will create a Kubernetes secret using\nKubernetes API calls<\/li>\n<li>The KMS plugin will handle the Kubernetes API Secret creation call and\ninterface to the KMS server instance.<\/li>\n<li>The KMS server will return the secret using its encryption envelop scheme.<\/li>\n<li>The KMS plugin will store the encrypted secret within the Kubernetes Etcd.<\/li>\n<\/ol>\n<p>Contact the <a href=\"mailto:sales@storageos.com\">StorageOS sales team<\/a> for more\ninformation about the dedicated StorageOS Vault KMS plugin integration\noffering.<\/p>\n\n      "},{"title":"Docs: Etcd","link":"https:\/\/docs.storageos.com\/docs\/concepts\/etcd\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/concepts\/etcd\/","description":"\n        \n        \n        <p><a href=\"https:\/\/etcd.io\">Etcd<\/a> is an open-source distributed, strongly consistent key\nvalue store that is used by StorageOS to durably persist the StorageOS cluster\nstate. As the backing store for Kubernetes, StorageOS uses etcd for many of the\nsame reasons.<\/p>\n<p>StorageOS uses etcd as the single source of truth for all StorageOS objects.\nWhenever a request is made to create, update or delete an object the result is\nwritten to etcd before the request is completed. Using etcd as a configuration\nstore allows nodes to retrieve the current cluster state after being offlined,\nallowing offlined nodes to rejoin the cluster.<\/p>\n<blockquote>\n<p>N.B. StorageOS v2.0 does not provide an embedded etcd server as previous\nversions did. You will need to setup an etcd server for StorageOS to use\nprior to installation of StorageOS. Please see our <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/etcd\/\">etcd prerequisites<\/a> page for more information on how\nto install and configure etcd.<\/p>\n<\/blockquote>\n\n      "},{"title":"Docs: Etcd node migration","link":"https:\/\/docs.storageos.com\/docs\/operations\/etcd\/migrate-etcd-cluster\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/operations\/etcd\/migrate-etcd-cluster\/","description":"\n        \n        \n        <p>This procedure explains how to add a new etcd member for your StorageOS etcd\ncluster while removing one of the current members. This is useful when the\nnodes hosting etcd must be recycled.<\/p>\n<blockquote>\n<p><strong>It is assumed<\/strong> that the StorageOS etcd cluster is installed following the\n<a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/etcd\/#production\">production etcd installation<\/a>\npage, where etcd nodes are installed on their own machines.<\/p>\n<\/blockquote>\n<blockquote>\n<p><strong>It is also assumed<\/strong> that etcd members are referenced from Kubernetes using a External\nService. Example available in the <a href=\"https:\/\/github.com\/storageos\/deploy\/tree\/master\/k8s\/deploy-storageos\/etcd-helpers\/etcd-external-svc\">etcd external\nService<\/a>\nexample. This service should be referred to in the <code>spec.kvbackend.address<\/code>\nsection of your StorageOS CustomResource. If that Service is not used, <strong>a full\nrestart<\/strong> of the StorageOS cluster will be required. The StorageOS\nCustomResource would need to be removed, and amended to reflect the new etcd\nurls created.<\/p>\n<\/blockquote>\n<h2 id=\"preparation\">Preparation<\/h2>\n<p>Prepare the installation of etcd on a new node, <strong>making sure that etcd is not\nstarting<\/strong> on that new node.<\/p>\n<p>The steps for preparing an etcd node can be found in the <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/etcd\/#production\">etcd\nprerequisites<\/a>\npage.<\/p>\n<ol>\n<li>\n<p>Back up etcd<\/p>\n<pre><code>$ export ETCDCTL_API=3\n\n$ # Set all your endpoints\n$ export endpoints=&quot;192.168.174.117:2379,192.168.195.168:2379,192.168.174.117:2379&quot;\n\n$ etcdctl --endpoints $endpoints snapshot save \/var\/tmp\/etcd-snapshot.db\n<\/code><\/pre><\/li>\n<li>\n<p>Verify etcd health<\/p>\n<pre><code>$ export ETCDCTL_API=3\n\n$ # Set all your endpoints\n$ export endpoints=&quot;192.168.174.117:2379,192.168.195.168:2379,192.168.174.117:2379&quot;\n$ etcdctl member list --endpoints $endpoints -wtable\n+------------------+---------+-----------------------+------------------------------+-----------------------------+------------+\n|        ID        | STATUS  |         NAME          |         PEER ADDRS           |        CLIENT ADDRS         | IS LEARNER |\n+------------------+---------+-----------------------+------------------------------+-----------------------------+------------+\n| 7817aa073b059aab | started |  etcd-192.168.195.168 |  http:\/\/192.168.195.168:2380 | http:\/\/192.168.195.168:2379 |      false |\n| e22cdd20a03e5e73 | started |  etcd-192.168.202.40  |  http:\/\/192.168.202.40:2380  | http:\/\/192.168.202.40:2379  |      false |\n| e5d0f0e242014d3d | started |  etcd-192.168.174.117 |  http:\/\/192.168.174.117:2380 | http:\/\/192.168.174.117:2379 |      false |\n+------------------+---------+-----------------------+------------------------------+-----------------------------+------------+\n\n$ etcdctl endpoint health --endpoints $endpoints -wtable\n+---------------------+--------+------------+-------+\n|      ENDPOINT       | HEALTH |    TOOK    | ERROR |\n+---------------------+--------+------------+-------+\n|192.168.174.117:2379 |   true | 5.048177ms |       |\n|192.168.195.168:2379 |   true | 5.926681ms |       |\n|192.168.202.40:2379  |   true | 5.526928ms |       |\n+---------------------+--------+------------+-------+\n\n$ etcdctl endpoint status --endpoints $endpoints -wtable\n+---------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+\n|      ENDPOINT       |        ID        | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |\n+---------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+\n|192.168.174.117:2379 | e5d0f0e242014d3d |   3.4.9 |  311 kB |     false |      false |         2 |       4281 |               4281 |        |\n|192.168.195.168:2379 | 7817aa073b059aab |   3.4.9 |  315 kB |     false |      false |         2 |       4281 |               4281 |        |\n|192.168.202.40:2379  | e22cdd20a03e5e73 |   3.4.9 |  352 kB |      true |      false |         2 |       4281 |              4281  |        |\n+---------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+\n<\/code><\/pre><\/li>\n<\/ol>\n<h2 id=\"migration\">Migration<\/h2>\n<blockquote>\n<p>In the following procedure NODE4 is a new member to add to the cluster, while\nNODE1 ought to be removed.<\/p>\n<\/blockquote>\n<ol>\n<li>\n<p>Amend etcd configuration to reference the new node (NODE4)<\/p>\n<blockquote>\n<p>Make the following change on all running etcd members and NODE4<\/p>\n<\/blockquote>\n<pre><code>$ # NODE4_IP is the NEW_NODE_ADDRESS\n$ echo &quot;NODE4_IP=192.168.152.142&quot; &gt;&gt; \/etc\/etcd.conf\n\n$ # Check the contents of \/etc\/etcd.conf\n$ cat \/etc\/etcd.conf\nCLIENT_PORT=2379\nPEERS_PORT=2380\n\n# NODE_IP is the IP of the node where this file resides.\nNODE_IP=192.168.202.40\n\nNODE1_IP=192.168.195.168\nNODE2_IP=192.168.202.40\nNODE3_IP=192.168.174.117\nNODE4_IP=192.168.152.142\n<\/code><\/pre><\/li>\n<li>\n<p>Amend SystemD service file on the new etcd node (NODE4)<\/p>\n<blockquote>\n<p>The SystemD service file is expected in <code>\/etc\/systemd\/system\/etcd3.service<\/code><\/p>\n<\/blockquote>\n<p>Change the <code>--initial-cluster-state<\/code> to <code>existing<\/code> and add the reference to\nNODE4 in the <code>--initial-cluster<\/code> variable.<\/p>\n<pre><code>vi \/etc\/systemd\/system\/etcd3.service\n<\/code><\/pre><p>The resulting changes would appear as follows:<\/p>\n<pre><code>...\n\nExecStart=\/usr\/local\/sbin\/etcd3 --name etcd-${NODE_IP} \\\n   ...\n   --initial-cluster-state existing \\\n   ...\n   --initial-cluster \\\n        etcd-${NODE1_IP}=http:\/\/${NODE1_IP}:${PEERS_PORT},\\\n        etcd-${NODE2_IP}=http:\/\/${NODE2_IP}:${PEERS_PORT},\\\n        etcd-${NODE3_IP}=http:\/\/${NODE3_IP}:${PEERS_PORT},\\\n        etcd-${NODE4_IP}=http:\/\/${NODE4_IP}:${PEERS_PORT}\n...\n\n<\/code><\/pre><blockquote>\n<p>Note the reference to NODE4 at the end of the <code>--initial-cluster<\/code>\nvariable<\/p>\n<\/blockquote>\n<p><strong>Make sure etcd is not started on the new member NODE4<\/strong><\/p>\n<\/li>\n<li>\n<p>Add etcd member as a <code>learner<\/code><\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#8f5902;font-style:italic\"># Set environment variable for the the new etcd member (NODE4)<\/span>\n$ <span style=\"color:#000\">NODE4_IP<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span>192.168.152.142\n\n$ <span style=\"color:#000\">ETCD_NEW_MEMBER<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;<\/span><span style=\"color:#4e9a06\">etcd-<\/span><span style=\"color:#4e9a06\">${<\/span><span style=\"color:#000\">NODE4_IP<\/span><span style=\"color:#4e9a06\">}<\/span><span style=\"color:#4e9a06\">&#34;<\/span>\n$ <span style=\"color:#000\">ETCD_NEW_MEMBER_PEER<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;<\/span><span style=\"color:#4e9a06\">http:\/\/<\/span><span style=\"color:#000\">$NODE4_IP<\/span><span style=\"color:#4e9a06\">:2380<\/span><span style=\"color:#4e9a06\">&#34;<\/span>\n\n<span style=\"color:#8f5902;font-style:italic\"># Add the new member to the cluster<\/span>\n$ <span style=\"color:#204a87\">export<\/span> <span style=\"color:#000\">ETCDCTL_API<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#0000cf;font-weight:bold\">3<\/span>\n\n$ etcdctl member add <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>     --learner <span style=\"color:#000\">$ETCD_NEW_MEMBER<\/span> <span style=\"color:#4e9a06\">\\\n<\/span><span style=\"color:#4e9a06\"><\/span>     --peer-urls<span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;<\/span><span style=\"color:#000\">$ETCD_NEW_MEMBER_PEER<\/span><span style=\"color:#4e9a06\">&#34;<\/span>\n\n Member 52e5c9ac117b3df2 added to cluster b4f4ed717ea44b8d\n\n <span style=\"color:#000\">ETCD_NAME<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;etcd-192.168.152.142&#34;<\/span>\n <span style=\"color:#000\">ETCD_INITIAL_CLUSTER<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;etcd-192.168.152.142=http:\/\/192.168.152.142:2380,etcd-192.168.195.168=http:\/\/192.168.195.168:2380,etcd-192.168.202.40=http:\/\/192.168.202.40:2380,etcd-192.168.174.117=http:\/\/192.168.174.117:2380&#34;<\/span>\n <span style=\"color:#000\">ETCD_INITIAL_ADVERTISE_PEER_URLS<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;http:\/\/192.168.152.142:2380&#34;<\/span>\n <span style=\"color:#000\">ETCD_INITIAL_CLUSTER_STATE<\/span><span style=\"color:#ce5c00;font-weight:bold\">=<\/span><span style=\"color:#4e9a06\">&#34;existing&#34;<\/span>\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Check the etcd members<\/p>\n<pre><code>$ export endpoints=&quot;192.168.174.117:2379,192.168.195.168:2379,192.168.174.117:2379&quot;\n\n$ etcdctl member list --endpoints $endpoints -wtable\n+------------------+-----------+----------------------+-----------------------------+-----------------------------+------------+\n|        ID        |  STATUS   |         NAME         |         PEER ADDRS          |        CLIENT ADDRS         | IS LEARNER |\n+------------------+-----------+----------------------+-----------------------------+-----------------------------+------------+\n| 52e5c9ac117b3df2 | unstarted |                      | http:\/\/192.168.152.142:2380 |                             |       true |\n| 7817aa073b059aab |   started | etcd-192.168.195.168 | http:\/\/192.168.195.168:2380 | http:\/\/192.168.195.168:2379 |      false |\n| e22cdd20a03e5e73 |   started | etcd-192.168.202.40  | http:\/\/192.168.202.40:2380  | http:\/\/192.168.202.40:2379  |      false |\n| e5d0f0e242014d3d |   started | etcd-192.168.174.117 | http:\/\/192.168.174.117:2380 | http:\/\/192.168.174.117:2379 |      false |\n+------------------+-----------+----------------------+-----------------------------+-----------------------------+------------+\n<\/code><\/pre><blockquote>\n<p>Note that the learner is not started yet<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Start etcd on the new node (NODE4)<\/p>\n<blockquote>\n<p>Make sure that <code>\/etc\/systemd\/system\/etcd.service<\/code> only have <strong>currently\nactive<\/strong> nodes specified in the <code>--initial-cluster<\/code> flag.<\/p>\n<\/blockquote>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#8f5902;font-style:italic\"># On the new node (NODE4)<\/span>\n\nsystemctl daemon-reload\nsystemctl <span style=\"color:#204a87\">enable<\/span> etcd3.service\nsystemctl start etcd3.service\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Check the etcd members<\/p>\n<pre><code>$ export endpoints=&quot;192.168.174.117:2379,192.168.195.168:2379,192.168.174.117:2379&quot;\n\n$ etcdctl member list --endpoints $endpoints -wtable\n+------------------+---------+----------------------+-----------------------------+-----------------------------+------------+\n|        ID        | STATUS  |         NAME         |         PEER ADDRS          |        CLIENT ADDRS         | IS LEARNER |\n+------------------+---------+----------------------+-----------------------------+-----------------------------+------------+\n| 52e5c9ac117b3df2 | started | etcd-192.168.152.142 | http:\/\/192.168.152.142:2380 | http:\/\/192.168.152.142:2379 |       true |\n| 7817aa073b059aab | started | etcd-192.168.195.168 | http:\/\/192.168.195.168:2380 | http:\/\/192.168.195.168:2379 |      false |\n| e22cdd20a03e5e73 | started | etcd-192.168.202.40  | http:\/\/192.168.202.40:2380  | http:\/\/192.168.202.40:2379  |      false |\n| e5d0f0e242014d3d | started | etcd-192.168.174.117 | http:\/\/192.168.174.117:2380 | http:\/\/192.168.174.117:2379 |      false |\n+------------------+---------+----------------------+-----------------------------+-----------------------------+------------+\n\n<\/code><\/pre><blockquote>\n<p>Note that the learner is started<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Check that the new learner has the same revision applied as the current\nmembers<\/p>\n<pre><code>$ export ETCDCTL_API=3\n# Added NODE4 in the endpoints variable\n$ export endpoints=&quot;192.168.174.117:2379,192.168.195.168:2379,192.168.174.117:2379,192.168.152.142:2379&quot;\n\netcdctl endpoint status --endpoints $endpoints -wtable\n+---------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+\n|      ENDPOINT       |        ID        | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |\n+---------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+\n| 192.168.174.117:2379| e5d0f0e242014d3d |   3.4.9 |  352 kB |     false |      false |         2 |      24570 |              24570 |        |\n| 192.168.195.168:2379| 7817aa073b059aab |   3.4.9 |  352 kB |     false |      false |         2 |      24570 |              24570 |        |\n| 192.168.202.40:2379 | e22cdd20a03e5e73 |   3.4.9 |  352 kB |     true  |      false |         2 |      24570 |              24570 |        |\n| 192.168.152.142:2379| 52e5c9ac117b3df2 |   3.4.9 |  467 kB |     false |       true |         2 |      24570 |              24570 |        |\n+---------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+\n<\/code><\/pre><blockquote>\n<p>Wait until the cluster has the learner ready, by ensuring that the\nRAFT TERM and RAFT INDEX of the learner node match the rest of the\ncluster.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Remove the node that needs to be evicted (NODE1)<\/p>\n<blockquote>\n<p>Before promoting the learner to a full member, it is best to remove the\nnode from the cluster that initially was selected to be decommissioned to\navoid breaking quorum while having 4 nodes being part of the cluster. For\nmore details, check the <a href=\"https:\/\/etcd.io\/docs\/v3.4\/faq\/#should-i-add-a-member-before-removing-an-unhealthy-member\">official etcd\ndocumentation<\/a>\nregarding this topic.<\/p>\n<\/blockquote>\n<pre><code>$ export ETCDCTL_API=3\n\n$ # Select member of id of the node to remove (NODE1)\n$ NODE1_MEMBER_ID=e22cdd20a03e5e73\n\n$ etcdctl member remove $NODE1_MEMBER_ID\nMember e22cdd20a03e5e73 removed from cluster b4f4ed717ea44b8d\n<\/code><\/pre><\/li>\n<li>\n<p>Promote the learner to a member<\/p>\n<pre><code>$ export ETCDCTL_API=3\n\n$ # Select member of id of the node to remove (NODE1)\n$ NODE4_MEMBER_ID=52e5c9ac117b3df2\n\n$ etcdctl member promote $NODE4_MEMBER_ID\nMember 52e5c9ac117b3df2 promoted in cluster b4f4ed717ea44b8d\n<\/code><\/pre><blockquote>\n<p>The promotion will fail if the learner is not in sync with the leader\nmember.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Check the etcd health<\/p>\n<pre><code>$ export endpoints=192.168.174.117:2379,192.168.195.168:2379,192.168.152.142:2379\n\n$ etcdctl member list --endpoints $endpoints -wtable\n+------------------+---------+---------------------+----------------------------+----------------------------+------------+\n|        ID        | STATUS  |        NAME         |         PEER ADDRS         |        CLIENT ADDRS        | IS LEARNER |\n+------------------+---------+---------------------+----------------------------+----------------------------+------------+\n| 52e5c9ac117b3df2 | started |etcd-192.168.152.142 |http:\/\/192.168.152.142:2380 |http:\/\/192.168.152.142:2379 |      false |\n| 7817aa073b059aab | started |etcd-192.168.195.168 |http:\/\/192.168.195.168:2380 |http:\/\/192.168.195.168:2379 |      false |\n| e5d0f0e242014d3d | started |etcd-192.168.174.117 |http:\/\/192.168.174.117:2380 |http:\/\/192.168.174.117:2379 |      false |\n+------------------+---------+---------------------+----------------------------+----------------------------+------------+\n\n$ etcdctl endpoint status --endpoints $endpoints -wtable\n+---------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+\n|      ENDPOINT       |        ID        | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |\n+---------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+\n|192.168.174.117:2379 | e5d0f0e242014d3d |   3.4.9 |  352 kB |     false |      false |         3 |      35939 |              35939 |        |\n|192.168.195.168:2379 | 7817aa073b059aab |   3.4.9 |  352 kB |      true |      false |         3 |      35939 |              35939 |        |\n|192.168.152.142:2379 | 52e5c9ac117b3df2 |   3.4.9 |  467 kB |     false |      false |         3 |      35939 |              35939 |        |\n+---------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+\n<\/code><\/pre><blockquote>\n<p>Note that NODE4 is now a full quorum member, while NODE1 is no longer\npart of the cluster<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Edit Endpoints referencing the Kubernetes Service<\/p>\n<blockquote>\n<p>Remove the reference to NODE1 and add the IP for NODE4<\/p>\n<\/blockquote>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl edit -n storageos-etcd endpoints\/storageos-etcd\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Make amendments in the SystemD configuration files removing any reference to\nNODE1<\/p>\n<blockquote>\n<p>It is not required to restart the etcd service, but to keep the service\nfile up to date.<\/p>\n<\/blockquote>\n<\/li>\n<\/ol>\n\n      "},{"title":"Docs: Failure Modes","link":"https:\/\/docs.storageos.com\/docs\/operations\/failure-modes\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/operations\/failure-modes\/","description":"\n        \n        \n        <p>For more information about replication and failure modes please see our\n<a href=\"https:\/\/docs.storageos.com\/docs\/concepts\/replication\/\">Replication concepts page<\/a>.<\/p>\n<p>The failure mode for a specific volume can be set using a label on a PVC or it\ncan be set as a parameter on a <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/storageclasses\/\">StorageClass<\/a>. The PVC definition takes precedence over\nthe StorageClass.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>PersistentVolumeClaim<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>my-vol<span style=\"color:#0000cf;font-weight:bold\">-1<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">labels<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">storageos.com\/replicas<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;2&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">storageos.com\/failure-mode<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;soft&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">storageClassName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;fast&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">accessModes<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- ReadWriteOnce<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">resources<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">requests<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">storage<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>5Gi<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><h2 id=\"failure-modes\">Failure Modes<\/h2>\n<p>StorageOS failure modes offer different guarantees with regards to a volume&rsquo;s\nmode of operation in the face of replica failure. If the failure mode is not\nspecified it defaults to <code>Hard<\/code>. Volume failure modes can be dynamically\nupdated at run time.<\/p>\n<h3 id=\"hard\">Hard<\/h3>\n<p>Hard failure mode requires that the number of declared replicas matches the\navailable number of replicas at all times. If a replica fails StorageOS will\nattempt creation of a new replica for 90 seconds. After 90s if the old replica\nis not available and a new replica cannot be provisioned, StorageOS cannot\nguarantee that the data is stored on the number of multiple nodes requested by\nthe user. StorageOS will therefore set the volume to be read-only.<\/p>\n<p>If a volume has gone read-only there are two stages to making it read-write\nagain. Firstly, sufficient replicas must be provisioned to match the desired\nreplica count. Depending on your environment, additional nodes and\/or disk\ncapacity may be required for this. Secondly, the volume must be remounted -\nnecessitating pod deletion\/recreation in Kubernetes.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">storageos.com\/failure-mode: hard\n<\/code><\/pre><\/div><p><strong>Number of nodes required for hard failure mode<\/strong><\/p>\n<p>When a node fails, a new replica is provisioned and synced as described above.\nTo ensure that a new replica can always be created, an additional node should\nbe available. To guarantee high availability using <code>storageos.com\/failure-mode: hard<\/code>, clusters using volumes with 1 replica must have at least 3 storage\nnodes. When using volumes with 2 replicas, at least 4 storage nodes, 3\nreplicas, 5 nodes, etc.<\/p>\n<p>Minimum number of storage nodes = 1 (primary) + N (replicas) + 1<\/p>\n<h3 id=\"soft\">Soft<\/h3>\n<p>Soft failure mode allows a volume to continue serving I\/O even when a replica\ngoes offline and a new replica fails to provision. So long as there are not\nless than max(1,  n-1) available replicas where n is the number of replicas for\nthe volume.<\/p>\n<p>For example, if a volume with 2 replicas loses 1 replica, then I\/O would\ncontinue to be served since 1 replica remaining &gt;= max(1, 1). If a volume with\n1 replica loses 1 replica, then I\/O would halt after 90 seconds since 0\nreplicas remaining &lt; max(1, 0).<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">storageos.com\/failure-mode: soft\n<\/code><\/pre><\/div><p><strong>Number of nodes required for soft failure mode<\/strong><\/p>\n<p>To ensure that a <code>storageos.com\/failure-mode: soft<\/code> volume is highly available, clusters using volumes with 1 replica must have at\nleast 2 storage nodes. When using volumes with 2 replicas, at least 3 storage\nnodes, 3 replicas, 3 nodes, etc.<\/p>\n<p>Minimum number of storage nodes = 1 (primary) + N (replicas)<\/p>\n<h3 id=\"threshold\">Threshold<\/h3>\n<p>Threshold failure mode allows the user to set the minimum required number of\nonline replicas for a volume. For example for a volume with 2 replicas, setting\nthe threshold to 1 would allow a single replica to be offline, whereas setting\nthreshold to 0 would allow 2 replicas to be offline.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">storageos.com\/failure-mode: <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>0-5<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><p><strong>Number of nodes required for threshold failure mode<\/strong><\/p>\n<p>The minimum number of nodes for a <code>threshold<\/code> volume is determined by the\nthreshold that is set.<\/p>\n<p>Minimum number of storage nodes = 1 (primary) + T (threshold)<\/p>\n<h3 id=\"alwayson\">AlwaysOn<\/h3>\n<p>AlwaysOn failure mode allows all replicas for a volume to be offline and keeps\nthe volume writeable. A volume with failure mode AlwaysOn will continue to\nserve I\/O regardless of how many replicas it currently has. This mode should be\nused with caution as it effectively allows for only a single copy of the data\nto be available.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">storageos.com\/failure-mode: alwayson\n<\/code><\/pre><\/div><p><strong>Number of nodes required for AlwaysOn failure mode<\/strong><\/p>\n<p>A <code>storageos.com\/failure-mode: alwayson<\/code> volume is highly available albeit at\nthe cost of reliability. The minimum node count here is 1 as the loss of all\nreplicas will be tolerated.<\/p>\n<p>Minimum number of storage nodes = 1 (primary)<\/p>\n\n      "},{"title":"Docs: Fencing","link":"https:\/\/docs.storageos.com\/docs\/concepts\/fencing\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/concepts\/fencing\/","description":"\n        \n        \n        <h2 id=\"statefulset-behaviour\">StatefulSet behaviour<\/h2>\n<p>In order to understand what StorageOS Fencing for Kubernetes is and when it is\nneeded, it is required to first understand the behaviour of StatefulSets.<\/p>\n<p><a href=\"https:\/\/kubernetes.io\/docs\/concepts\/workloads\/controllers\/statefulset\/\">StatefulSets<\/a>\nare the de facto Kubernetes controller to use for stateful applications. The\nStatefulSet controller offers guarantees around pod uniqueness, sticky\nidentities and the persistence of PVCs beyond the lifetime of their pods. As\nsuch, StatefulSets have different characteristics and provide different\nguarantees than Deployments.<\/p>\n<p>Deployments guarantee the amount of healthy replicas by reconciling towards the\ndeployment desired  state. Attempts to align the number of healthy pods with\nthe deployment&rsquo;s desired state happen as fast as possible by aggressively\ninitializing and terminating pods. If one pod is terminating, another will be\nautomatically scheduled to start even if the first pod is not yet completely\nterminated. Stateless applications benefit from this behaviour as one pod\nexecutes the same work as any other in the deployment.<\/p>\n<p>StatefulSets, on the other hand, guarantee that every pod scheduled has a\nunique identity, which is to say that only a single copy of a pod is running in\nthe cluster at any one time. Whenever scheduling decisions are made, the\nStatefulSet controller ensures that only one copy of this pod is running at any\ntime. If a pod is deleted, a new pod will not be scheduled until the first pod\nis fully terminated. This is an important guarantee as FileSystems need to be\nunmounted before they can be remounted in a new pod. Any ReadWriteOnce PVC\ndefining a device requires this behaviour to ensure the consistency of the data\nand thus the PVC.<\/p>\n<p>To protect data integrity, Kubernetes guarantees that there will never be more\nthan one instance of a StatefulSet Pod running at a time. It assumes that when\na node is determined to be offline it may still be running the workload but\npartitioned from the network. Since Kubernetes is unable to\nverify that the Pod has been stopped it errs on the side of caution and does\nnot allow a replacement to start on another node.<\/p>\n<p>Kubernetes does reschedule pods from some controllers when nodes become\nunavailable. The default behaviour is that when a node becomes unavailable its\nstatus becomes &ldquo;Unknown&rdquo; and after the <code>pod-eviction-timeout<\/code> has passed pods\nare scheduled for deletion. By default, the <code>pod-eviction-timeout<\/code> is 300\nseconds.<\/p>\n<p>For this reason, Kubernetes requires manual intervention to initiate timely\nfailover of a StatefulSet Pod. The StorageOS Fencing Controller gives the\ncapability to enable fast failover of workloads when a node goes offline.<\/p>\n<p>For more information on the rationale behind the design of StatefulSets please\nsee the Kubernetes design proposal for <a href=\"https:\/\/github.com\/kubernetes\/community\/blob\/master\/contributors\/design-proposals\/storage\/pod-safety.md\">Pod\nSafety<\/a>.<\/p>\n<h2 id=\"storageos-fencing-controller\">StorageOS Fencing Controller<\/h2>\n<blockquote>\n<p>The StorageOS Fencing Controller is part of the StorageOS API Manager which\nis deployed in high availability when StorageOS is installed.<\/p>\n<\/blockquote>\n<p><strong>HA for StatefulSet applications can be achieved with the StorageOS Fencing\nfeature<\/strong>.<\/p>\n<p>Since StorageOS is able to determine when a node is no longer able to access a\nvolume and has protections in place to ensure that a partitioned or formerly\npartitioned node can not continue to write data, it can work with Kubernetes to\nperform safe, fast failovers of Pods, including those running in StatefulSets.<\/p>\n<p>When StorageOS detects that a node has gone offline or become partitioned, it\nmarks the node offline and performs volume failover operations.<\/p>\n<p>The <a href=\"https:\/\/github.com\/storageos\/api-manager\/tree\/master\/controllers\/fencer\">StorageOS Fencing\nController<\/a>\nwatches for these node failures and determines if there are any pods assigned\nto the failed node with the label <code>storageos.com\/fenced=true<\/code>, and if the pods\nhave any PVCs backed by StorageOS volumes.<\/p>\n<p>When a Pod has StorageOS volumes and if they are all healthy, the StorageOS\nfencing controller deletes the Pod to allow it to be rescheduled on another\nnode. It also deletes the VolumeAtachments for the corresponding volumes so\nthat they can be immediately attached to the new node.<\/p>\n<p>No changes are made to Pods that have StorageOS volumes that are unhealthy.\nThis is usually because a volume was configured to not have any replicas, and the\nnode with the single copy of the data is offline. In this case it is better to\nwait for the node to recover.<\/p>\n<p>Fencing works with both dynamically provisioned PVCs and PVCs referencing\npre-provisioned volumes.<\/p>\n<p>The fencing feature is opt-in and Pods must have the\n<code>storageos.com\/fenced=true<\/code> label set, and be using at least one StorageOS\nvolume, to enable fast failover.<\/p>\n<p>For more information about how to enable pod fencing please see our <a href=\"https:\/\/docs.storageos.com\/docs\/operations\/fencing\/\">Fencing\nOperations<\/a> page.<\/p>\n\n      "},{"title":"Docs: Fencing","link":"https:\/\/docs.storageos.com\/docs\/operations\/fencing\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/operations\/fencing\/","description":"\n        \n        \n        <p>For information regarding the StorageOS Fencing feature please see our\n<a href=\"https:\/\/docs.storageos.com\/docs\/concepts\/fencing\/\">fencing concepts page<\/a>.<\/p>\n<h2 id=\"labeling-a-pod-for-fencing\">Labeling a pod for fencing<\/h2>\n<p>When StorageOS detects that a node has gone offline or become partitioned, it\nmarks the node offline and performs volume failover operations.<\/p>\n<p>The <a href=\"https:\/\/github.com\/storageos\/api-manager\/tree\/master\/controllers\/fencer\">StorageOS Fencing\nController<\/a>\nwatches for node failures and determines if there are any pods targeted for\nfencing. In order for a pod to be fenced, the following criteria is required.<\/p>\n<ul>\n<li>The pod must have the label <code>storageos.com\/fenced=true<\/code><\/li>\n<li>The pod to be fenced must claim a StorageOS volume<\/li>\n<li>The StorageOS volume claimed by the pod needs to be <code>online<\/code><\/li>\n<\/ul>\n<p>If the node becomes offline and these criteria are met, the pod is deleted and\nrescheduled on another node.<\/p>\n<blockquote>\n<p>No changes are made to Pods that have StorageOS volumes that are unhealthy.\nThis is typically the case when a volume was configured to not have any\nreplicas, and the node with the single copy of the data is offline. In this\ncase it is better to wait for the Node to recover.<\/p>\n<\/blockquote>\n<h3 id=\"statefulset-example-with-fencing-enabled\">StatefulSet example with fencing enabled<\/h3>\n<p>The following example shows how a Statefulset can enable fencing to all its\npods.<\/p>\n<blockquote>\n<p>Note that the <code>fenced<\/code> label is applied only in the\n<code>.spec.template.metadata.label<\/code> section, as the label must only be present on\nthe Pod, but not on the PVC.<\/p>\n<\/blockquote>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>apps\/v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>StatefulSet<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>my-statefulset<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">selector<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">matchLabels<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">app<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>prod<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">serviceName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">replicas<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#0000cf;font-weight:bold\">1<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">template<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">labels<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">app<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>prod<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">storageos.com\/fenced<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;true&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># Fencing label<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">containers<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span>- <span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>debian<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">image<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>debian<span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#0000cf;font-weight:bold\">10<\/span>-slim<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">command<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#000;font-weight:bold\">[<\/span><span style=\"color:#4e9a06\">&#34;\/bin\/sleep&#34;<\/span><span style=\"color:#000;font-weight:bold\">]<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">args<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#000;font-weight:bold\">[<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;3600&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#000;font-weight:bold\">]<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">volumeMounts<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span>- <span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>storageos-volume<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">          <\/span><span style=\"color:#204a87;font-weight:bold\">mountPath<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>\/mnt<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">volumeClaimTemplates<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span>- <span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>storageos-volume<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">labels<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">env<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>prod<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">storageos.com\/replicas<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;1&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">accessModes<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#000;font-weight:bold\">[<\/span><span style=\"color:#4e9a06\">&#34;ReadWriteOnce&#34;<\/span><span style=\"color:#000;font-weight:bold\">]<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">storageClassName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;fast&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">resources<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">requests<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">          <\/span><span style=\"color:#204a87;font-weight:bold\">storage<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>10Gi<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><h2 id=\"fencing-trigger\">Fencing trigger<\/h2>\n<p>The StorageOS Fencing Controller checks the StorageOS node health every 5 seconds.\nThis is how quickly the fencing controller can react to node failures.<\/p>\n<p>Pods assigned to unhealthy nodes will be evaluated immediately on state change,\nand then re-evaluated every hour, though this is configurable. This retry\nallows pods that had unhealthy volumes which have now recovered to eventually\nfailover, or pods that were rescheduled on an unhealthy node to be re-evaluated\nfor fencing.<\/p>\n<h2 id=\"fencing-example\">Fencing example<\/h2>\n<p>The following example shows how the StorageOS API manager fences a Pod.<\/p>\n<ol>\n<li>\n<p>Ensure the <code>storageos.com\/fenced<\/code> label is present<\/p>\n<pre><code>$ kubectl -n mysql get pod --show-labels -owide\nNAME      READY   STATUS    RESTARTS   AGE     IP          NODE             NOMINATED NODE   READINESS GATES   LABELS\nmysql-0   1\/1     Running   0          6m33s   10.42.3.7   worker1   &lt;none&gt;           &lt;none&gt;            app=mysql,controller-revision-hash=mysql-799fd74b87,env=prod,statefulset.kubernetes.io\/pod-name=mysql-0,storageos.com\/fenced=true\n\n$ kubectl -n mysql get pvc --show-labels -owide\nNAME           STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE   VOLUMEMODE   LABELS\ndata-mysql-0   Bound    pvc-5d7b23a6-e754-4998-98fd-318b3f9382bb   5Gi        RWO            fast           19m   Filesystem   app=mysql,env=prod,storageos.com\/replicas=1\n<\/code><\/pre><blockquote>\n<p>Note that the mysql-0 pod has the <code>storageos.com\/fenced=true<\/code> label.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Stop node hosting the <code>mysql-0<\/code> pod<\/p>\n<pre><code>root@worker1:~# shutdown -h now\n<\/code><\/pre><\/li>\n<li>\n<p>Check logs from the StorageOS API Manager<\/p>\n<pre><code>$ kubectl -n kube-system logs storageos-api-manager-68759bbc78-7l5fw\n...\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.413811357Z&quot;,&quot;msg&quot;:&quot;skipping pod without storageos.com\/fenced=true label set&quot;,&quot;name&quot;:&quot;nginx-ingress-controller-xbqjf&quot;,&quot;namespace&quot;:&quot;ingress-nginx&quot;}\n\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.417605039Z&quot;,&quot;msg&quot;:&quot;skipping pod without storageos.com\/fenced=true label set&quot;,&quot;name&quot;:&quot;storageos-api-manager-68759bbc78-7l5fw&quot;,&quot;namespace&quot;:&quot;kube-system&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.417748651Z&quot;,&quot;msg&quot;:&quot;skipping pod without storageos.com\/fenced=true label set&quot;,&quot;name&quot;:&quot;coredns-7c5566588d-8g5xq&quot;,&quot;namespace&quot;:&quot;kube-system&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.417792281Z&quot;,&quot;msg&quot;:&quot;skipping pod without storageos.com\/fenced=true label set&quot;,&quot;name&quot;:&quot;metrics-server-6b55c64f86-cnwtk&quot;,&quot;namespace&quot;:&quot;kube-system&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.417883383Z&quot;,&quot;msg&quot;:&quot;skipping pod without storageos.com\/fenced=true label set&quot;,&quot;name&quot;:&quot;default-http-backend-67cf578fc4-w8sm4&quot;,&quot;namespace&quot;:&quot;ingress-nginx&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.417975663Z&quot;,&quot;msg&quot;:&quot;skipping pod without storageos.com\/fenced=true label set&quot;,&quot;name&quot;:&quot;coredns-autoscaler-65bfc8d47d-ph6pn&quot;,&quot;namespace&quot;:&quot;kube-system&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.418024204Z&quot;,&quot;msg&quot;:&quot;skipping pod without storageos.com\/fenced=true label set&quot;,&quot;name&quot;:&quot;canal-stzdv&quot;,&quot;namespace&quot;:&quot;kube-system&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.418065315Z&quot;,&quot;msg&quot;:&quot;skipping pod without storageos.com\/fenced=true label set&quot;,&quot;name&quot;:&quot;storageos-etcd-2hkff82fq2&quot;,&quot;namespace&quot;:&quot;storageos-etcd&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.418092165Z&quot;,&quot;msg&quot;:&quot;skipping pod without storageos.com\/fenced=true label set&quot;,&quot;name&quot;:&quot;storageos-daemonset-6zrkk&quot;,&quot;namespace&quot;:&quot;kube-system&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.418182036Z&quot;,&quot;msg&quot;:&quot;skipping pod without storageos.com\/fenced=true label set&quot;,&quot;name&quot;:&quot;cattle-node-agent-sjspk&quot;,&quot;namespace&quot;:&quot;cattle-system&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.439513312Z&quot;,&quot;msg&quot;:&quot;pod has fenced label set and volume(s) still healthy after node failure, proceeding with fencing&quot;,&quot;pod&quot;:&quot;mysql-0&quot;,&quot;namespace&quot;:&quot;mysql&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.495807296Z&quot;,&quot;msg&quot;:&quot;pod deleted&quot;,&quot;pod&quot;:&quot;mysql-0&quot;,&quot;namespace&quot;:&quot;mysql&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.505411162Z&quot;,&quot;msg&quot;:&quot;volume attachment deleted&quot;,&quot;pod&quot;:&quot;mysql-0&quot;,&quot;namespace&quot;:&quot;mysql&quot;,&quot;pvc&quot;:&quot;data-mysql-0&quot;,&quot;va&quot;:&quot;csi-c2b44cee5a647e20d77e0e217dfaec07afd592eae57bcccc09b3447de653ae8c&quot;,&quot;node&quot;:&quot;worker1&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.505439792Z&quot;,&quot;msg&quot;:&quot;fenced pod&quot;}\n{&quot;level&quot;:&quot;info&quot;,&quot;timestamp&quot;:&quot;2021-04-28T13:06:49.573478266Z&quot;,&quot;msg&quot;:&quot;set scheduler&quot;,&quot;scheduler&quot;:&quot;storageos-scheduler&quot;,&quot;pod&quot;:&quot;mysql\/mysql-0&quot;}\n...\n<\/code><\/pre><blockquote>\n<p>The StorageOS API Manager detects all the pods that are on the failed\nnode, and selects only the ones that meet the fencing criteria as\ndescribed above. In this case only <code>mysql-0<\/code> is selected for fencing.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Check the pod&rsquo;s new node<\/p>\n<pre><code>$ kubectl -n mysql get pod --show-labels -owide\nNAME      READY   STATUS    RESTARTS   AGE     IP          NODE             NOMINATED NODE   READINESS GATES   LABELS\nmysql-0   1\/1     Running   0          6m33s   10.42.3.7   worker2   &lt;none&gt;           &lt;none&gt;            app=mysql,controller-revision-hash=mysql-799fd74b87,env=prod,statefulset.kubernetes.io\/pod-name=mysql-0,storageos.com\/fenced=true\n<\/code><\/pre><blockquote>\n<p>The pod <code>mysql-0<\/code> started on a different node successfully.<\/p>\n<\/blockquote>\n<\/li>\n<\/ol>\n\n      "},{"title":"Docs: StorageOS Volume Guide","link":"https:\/\/docs.storageos.com\/docs\/operations\/firstpvc\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/operations\/firstpvc\/","description":"\n        \n        \n        <p>Follow the recipes on this page to create your first PVC (Persistent Volume\nClaim) using StorageOS. StorageOS implements dynamic provisioning, so the\ncreation of a PVC will automatically provision a PV (PersistentVolume) that can\nbe used to persist data written by a Pod.<\/p>\n<h2 id=\"create-the-persistentvolumeclaim\">Create the PersistentVolumeClaim<\/h2>\n<ol>\n<li>\n<p>You can find the basic examples in the StorageOS use-cases repository, in\nthe <code>00-basic<\/code> directory.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">git clone https:\/\/github.com\/storageos\/use-cases.git storageos-usecases\n<span style=\"color:#204a87\">cd<\/span> storageos-usecases\/00-basic\n<\/code><\/pre><\/div><p>PVC definition<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>PersistentVolumeClaim<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>my-vol<span style=\"color:#0000cf;font-weight:bold\">-1<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">storageClassName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;fast&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># StorageOS StorageClass<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">accessModes<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- ReadWriteOnce<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">resources<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">requests<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">storage<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>5Gi<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>The above PVC will dynamically provision a 5GB volume using the <code>fast<\/code>\nStorageClass. This StorageClass was created during the StorageOS install\nand triggers creation of a PersistentVolume by StorageOS.<\/p>\n<p>For installations with CSI, you can create multiple StorageClasses in order\nto specify default labels.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>storage.k8s.io\/v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>StorageClass<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>storageos-replicated<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">provisioner<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>csi.storageos.com<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># Provisioner when using CSI<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">parameters<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/fstype<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>ext4<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">storageos.com\/replicas<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;1&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># Enforces 1 replica for the Volume<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#8f5902;font-style:italic\"># Change the Namespace below if StorageOS doesn&#39;t run in kube-system<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/node-publish-secret-namespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>kube-system<span style=\"color:#f8f8f8;text-decoration:underline\">       <\/span><span style=\"color:#8f5902;font-style:italic\"># Namespace that runs StorageOS Daemonset<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/provisioner-secret-namespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>kube-system<span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#8f5902;font-style:italic\"># Namespace that runs StorageOS Daemonset<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/controller-publish-secret-namespace<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>kube-system<span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># Namespace that runs StorageOS Daemonset<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/node-publish-secret-name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>csi-node-publish-secret<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/provisioner-secret-name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>csi-provisioner-secret<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">csi.storage.k8s.io\/controller-publish-secret-name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>csi-controller-publish-secret<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>The above StorageClass has the <code>storageos.com\/replicas<\/code> label set. This\nlabel tells StorageOS to create a volume with a replica. Adding StorageOS\nfeature labels to the StorageClass ensures all volumes created with the\nStorageClass have the same labels. For simplicity&rsquo;s sake this example will\nuse unreplicated volumes.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>PersistentVolumeClaim<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>my-vol<span style=\"color:#0000cf;font-weight:bold\">-1<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">storageClassName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;storageos-replicated&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#8f5902;font-style:italic\"># Reference to the StorageClass<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">accessModes<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- ReadWriteOnce<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">resources<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">requests<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">storage<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>5Gi<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>You can also choose to add the label in the PVC definition rather than the\nStorageClass. The PVC definition takes precedence over the SC.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>PersistentVolumeClaim<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>my-vol<span style=\"color:#0000cf;font-weight:bold\">-1<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">labels<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">storageos.com\/replicas<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;1&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">storageClassName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;fast&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">accessModes<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- ReadWriteOnce<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">resources<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span><span style=\"color:#204a87;font-weight:bold\">requests<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">storage<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>5Gi<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>The above PVC has the <code>storageos.com\/replicas<\/code> label set. This label tells\nStorageOS to add a replica for the volume that is created. For the sake\nof keeping this example simple an unreplicated volume will be used.<\/p>\n<\/li>\n<li>\n<p>Move into the examples folder and create a PVC using the PVC definition above.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ <span style=\"color:#8f5902;font-style:italic\"># from storageos-usecases\/00-basic<\/span>\n$ kubectl create -f .\/pvc-basic.yaml\n<\/code><\/pre><\/div><p>You can view the PVC that you have created with the command below<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl get pvc\nNAME         STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE\npvc-1     Bound    pvc-f8ffa027-e821-11e8-bc0b-0ac77ccc61fa   5Gi        RWO            fast           1m\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Create a pod that mounts the PVC created in step 2.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl create -f .\/pod.yaml\n<\/code><\/pre><\/div><p>The command above creates a Pod that uses the PVC that was created in step 1.<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#204a87;font-weight:bold\">apiVersion<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">kind<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>Pod<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">metadata<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>d1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#204a87;font-weight:bold\">spec<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">containers<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- <span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>debian<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">image<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>debian<span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#0000cf;font-weight:bold\">9<\/span>-slim<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">command<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#000;font-weight:bold\">[<\/span><span style=\"color:#4e9a06\">&#34;\/bin\/sleep&#34;<\/span><span style=\"color:#000;font-weight:bold\">]<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">args<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#000;font-weight:bold\">[<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#4e9a06\">&#34;3600&#34;<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span><span style=\"color:#000;font-weight:bold\">]<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">volumeMounts<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span>- <span style=\"color:#204a87;font-weight:bold\">mountPath<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>\/mnt<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">          <\/span><span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">  <\/span><span style=\"color:#204a87;font-weight:bold\">volumes<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">    <\/span>- <span style=\"color:#204a87;font-weight:bold\">name<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>v1<span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">      <\/span><span style=\"color:#204a87;font-weight:bold\">persistentVolumeClaim<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"><\/span><span style=\"color:#f8f8f8;text-decoration:underline\">        <\/span><span style=\"color:#204a87;font-weight:bold\">claimName<\/span><span style=\"color:#000;font-weight:bold\">:<\/span><span style=\"color:#f8f8f8;text-decoration:underline\"> <\/span>pvc<span style=\"color:#0000cf;font-weight:bold\">-1<\/span><span style=\"color:#f8f8f8;text-decoration:underline\">\n<\/span><\/code><\/pre><\/div><p>In the Pod definition above volume v1 references the PVC created in step 2,\nand is mounted in the pod at \/mnt. In this example a debian image is used\nfor the container but any container image with a shell would work for this\nexample.<\/p>\n<\/li>\n<li>\n<p>Confirm that the pod is up and running<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl get pods\nNAME      READY   STATUS    RESTARTS   AGE\nd1        1\/1     Running   <span style=\"color:#0000cf;font-weight:bold\">0<\/span>          1m\n<\/code><\/pre><\/div><\/li>\n<li>\n<p>Execute a shell inside the container and write some contents to a file<\/p>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ kubectl <span style=\"color:#204a87\">exec<\/span> -it d1 -- bash\nroot@d1:\/# <span style=\"color:#204a87\">echo<\/span> <span style=\"color:#4e9a06\">&#34;Hello World!&#34;<\/span> &gt; \/mnt\/helloworld\nroot@d1:\/# cat \/mnt\/helloworld\nHello World!\n<\/code><\/pre><\/div><p>By writing to \/mnt inside the container, the StorageOS volume created by\nthe PVC is being written to. If you were to kill the pod and start it again\non a new node, the helloworld file would still be avaliable.<\/p>\n<p><strong>If you wish to see more use cases with actual applications please see our\n<a href=\"https:\/\/docs.storageos.com\/docs\/usecases\/\">Use Cases<\/a> documentation.<\/strong><\/p>\n<\/li>\n<\/ol>\n\n      "},{"title":"Docs: Get","link":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/get\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/reference\/cli\/get\/","description":"\n        \n        \n        <div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos get --help\nFetch basic details <span style=\"color:#204a87;font-weight:bold\">for<\/span> resources\n\nUsage:\n  storageos get <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>command<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAvailable Commands:\n  cluster      Fetch cluster-wide configuration details\n  diagnostics  Fetch a cluster diagnostic bundle\n  licence      Fetch current licence configuration details\n  namespace    Retrieve basic details of cluster namespaces\n  node         Retrieve basic details of nodes in the cluster\n  policy-group Retrieve basic details of policy groups\n  user         Fetch user details\n  volume       Retrieve basic details of volumes\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> get\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n\nUse <span style=\"color:#4e9a06\">&#34;storageos get [command] --help&#34;<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> more information about a command.\n<\/code><\/pre><\/div><h2 id=\"get-cluster\">get cluster<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos get cluster --help\n\nFetch cluster-wide configuration details\n\nUsage:\n  storageos get cluster <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storageos get cluster\n\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> cluster\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"get-diagnostics\">get diagnostics<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos get diagnostics --help\n\nFetch a cluster diagnostic bundle from the target node. Due to the work involved this <span style=\"color:#204a87\">command<\/span> will run with a minimum <span style=\"color:#204a87\">command<\/span> timeout duration of 1h, although accepts longer durations\n\nUsage:\n  storageos get diagnostics <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nExamples:\n\n$ storageos get diagnostics\n\n$ storageos get diagnostics --output-file ~\/my-diagnostics.gz\n\n\nFlags:\n  -h, --help                 <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> diagnostics\n      --output-file string   writes the generated diagnostic bundle to a specified file path\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"get-license\">get license<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos get license --help\n\nFetch current licence configuration details\n\nUsage:\n  storageos get licence <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  licence, license\n\nExamples:\n\n$ storageos get licence\n\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> licence\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"get-namespace\">get namespace<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos get namespace --help\n\nRetrieve basic details of cluster namespaces\n\nUsage:\n  storageos get namespace <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>namespace names...<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  namespace, namespaces\n\nExamples:\n\n$ storageos get namespaces\n\n$ storageos get namespace my-namespace-name\n\n\nFlags:\n  -h, --help                   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> namespace\n  -l, --selector stringArray   filter returned results by a <span style=\"color:#204a87\">set<\/span> of comma-separated label selectors\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"get-node\">get node<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">storageos get node --help\nRetrieve basic details of nodes in the cluster\n\nUsage:\n  storageos get node <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>node names...<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  node, nodes\n\nExamples:\n\n$ storageos get node my-node-name\n\n\nFlags:\n  -h, --help                   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> node\n  -l, --selector stringArray   filter returned results by a <span style=\"color:#204a87\">set<\/span> of comma-separated label selectors\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"get-policy-group\">get policy-group<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos get policy-group --help\n\nRetrieve basic details of policy groups\n\nUsage:\n  storageos get policy-group <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>policy-group names...<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  policy-group, policy-groups\n\nExamples:\n\n$ storageos get policy-group\n$ storageos get policy-group my-policy-group-name\n$ storageos get policy-group --use-ids my-policy-group-id\n\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> policy-group\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"get-user\">get user<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos get user --help\n\nFetch user details\n\nUsage:\n  storageos get user <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>user names...<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  user, users\n\nExamples:\n\n$ storageos get user my-username\n$ storageos get user my-username-1 my-username-2\n$ storageos get user --use-ids my-userid\n$ storageos get user --use-ids my-userid-1 my-userid-2\n\n\nFlags:\n  -h, --help   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> user\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div><h2 id=\"get-volume\">get volume<\/h2>\n<div class=\"highlight\"><pre style=\"background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">$ storageos get volume --help\n\nRetrieve basic details of volumes\n\nUsage:\n  storageos get volume <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>volume names...<span style=\"color:#ce5c00;font-weight:bold\">]<\/span> <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>flags<span style=\"color:#ce5c00;font-weight:bold\">]<\/span>\n\nAliases:\n  volume, volumes\n\nExamples:\n\n$ storageos get volumes --all-namespaces\n\n$ storageos get volume --namespace my-namespace-name my-volume-name\n\n\nFlags:\n  -A, --all-namespaces         retrieves volumes from all accessible namespaces. This option overrides the namespace configuration\n  -h, --help                   <span style=\"color:#204a87\">help<\/span> <span style=\"color:#204a87;font-weight:bold\">for<\/span> volume\n  -l, --selector stringArray   filter returned results by a <span style=\"color:#204a87\">set<\/span> of comma-separated label selectors\n\nGlobal Flags:\n      --cache-dir string        <span style=\"color:#204a87\">set<\/span> the directory used by the StorageOS CLI to cache data that can be used <span style=\"color:#204a87;font-weight:bold\">for<\/span> future commands <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.cache\/storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -c, --config string           specifies the config file path <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;\/root\/.config\/storageos\/config.yaml&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --endpoints stringArray   <span style=\"color:#204a87\">set<\/span> the list of endpoints which are used when connecting to the StorageOS API <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>http:\/\/localhost:5705<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n  -n, --namespace string        specifies the namespace to operate within <span style=\"color:#204a87;font-weight:bold\">for<\/span> commands that require one <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;default&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --no-auth-cache           disable the CLI<span style=\"color:#a40000\">&#39;<\/span>s caching of authentication sessions\n  -o, --output string           specifies the output format <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>one of <span style=\"color:#ce5c00;font-weight:bold\">[<\/span>json yaml text<span style=\"color:#ce5c00;font-weight:bold\">]<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;text&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --password string         <span style=\"color:#204a87\">set<\/span> the StorageOS account password to authenticate with <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --timeout duration        <span style=\"color:#204a87\">set<\/span> the timeout duration to use <span style=\"color:#204a87;font-weight:bold\">for<\/span> execution of the <span style=\"color:#204a87\">command<\/span> <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default 15s<span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n      --use-ids                 specify existing StorageOS resources by their unique identifiers instead of by their names\n      --username string         <span style=\"color:#204a87\">set<\/span> the StorageOS account username to authenticate as <span style=\"color:#ce5c00;font-weight:bold\">(<\/span>default <span style=\"color:#4e9a06\">&#34;storageos&#34;<\/span><span style=\"color:#ce5c00;font-weight:bold\">)<\/span>\n<\/code><\/pre><\/div>\n      "},{"title":"Docs: Google GKE","link":"https:\/\/docs.storageos.com\/docs\/platforms\/google-gke\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.storageos.com\/docs\/platforms\/google-gke\/","description":"\n        \n        \n        <p>StorageOS is fully compatible with GKE when using the Ubunutu images. To\ninstall StorageOS on GKE, please follow our Kubernetes <a href=\"https:\/\/docs.storageos.com\/docs\/install\/kubernetes\/\">installation\ninstructions<\/a> page.<\/p>\n<p>For StorageOS to work normally it is <strong>required to use the Ubuntu images<\/strong> for\nthe GKE node pools. The default container image does not fulfil the system\nrequirements because of the lack of the TCMU kernel modules.<\/p>\n<p>For more details about the OS Distributions check the <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/systemconfiguration\/\">System\nConfiguration<\/a> page.<\/p>\n<h2 id=\"google-anthos\">Google Anthos<\/h2>\n<p>StorageOS is is compatible with Google Anthos. However it is required that the\nLinux image distribution used fulfils the <a href=\"https:\/\/docs.storageos.com\/docs\/prerequisites\/systemconfiguration\/\">System Configuration<\/a> prerequisites.<\/p>\n<p>Once a Kubernetes cluster is provisioned, StorageOS can be installed following\nthe <a href=\"https:\/\/docs.storageos.com\/docs\/install\/kubernetes\/\">instructions<\/a> page.<\/p>\n\n      "}]}}