Deployment

Platform requirements

The requirements that apply to every VCF Extension — VCF Operations version, Cloud Proxy, TLS, certificate handling and registry access — are defined once in Technical and Security Requirements.

Supported versions

ComponentMinimum
VMware Aria Operations (VCF Operations)8.10.0
SarkanAny version exposing the REST API used by the adapter

Environment and connection requirements

Install the PAK file

  1. Download the PAK file for the version being installed. The PAK is published on the release page (cs.topthor.comopen in new window) together with its checksum.
  2. Verify the checksum of the downloaded file against the value published on the release page.
  3. In VCF Operations go to Data Sources > Integrations > Repository > Add, upload the PAK and complete the wizard. The PAK carries the registry, the repository and the digest of the matching container image, so VCF Operations pulls the image through the Cloud Proxy itself.
  4. Enter the license key on the License object of the installed Management Pack.

Configuration

This addon requires access to the Kubernetes API server with read permissions for standard Kubernetes and SaunaFS resources. To enable this, we need to create a service account with the appropriate RBAC permissions and retrieve its certificate and token. You must have kubectl access to the Kubernetes cluster you want to monitor.

  1. Create the service account and RBAC rules

    apiVersion: v1
    kind: ServiceAccount
    metadata:
      name: external-access
      namespace: default
    ---
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRoleBinding
    metadata:
      name: external-access-view
    roleRef:
      apiGroup: rbac.authorization.k8s.io
      kind: ClusterRole
      name: view
    subjects:
    - kind: ServiceAccount
      name: external-access
      namespace: default
    ---
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRole
    metadata:
      name: storage-viewer
    rules:
    - apiGroups: [""]
      resources: ["persistentvolumes", "persistentvolumeclaims"]
      verbs: ["get", "list", "watch"]
    - apiGroups: ["storage.k8s.io"]
      resources: ["storageclasses"]
      verbs: ["get", "list"]
    ---
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRoleBinding
    metadata:
      name: storage-viewer-binding
    roleRef:
      apiGroup: rbac.authorization.k8s.io
      kind: ClusterRole
      name: storage-viewer
    subjects:
    - kind: ServiceAccount
      name: external-access
      namespace: default
    ---
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRole
    metadata:
      name: node-viewer
    rules:
    - apiGroups: [""]
      resources: ["nodes"]
      verbs: ["get", "list", "watch"]
    ---
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRoleBinding
    metadata:
      name: node-viewer-binding
    roleRef:
      apiGroup: rbac.authorization.k8s.io
      kind: ClusterRole
      name: node-viewer
    subjects:
    - kind: ServiceAccount
      name: external-access
      namespace: default
    ---
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRole
    metadata:
      name: sarkan-view
    rules:
    - apiGroups: ["saunafs.sarkan.io"]
      resources: ["*"]
      verbs: ["get", "list", "watch"]
    - apiGroups: ["hostdisk.sarkan.io"]
      resources: ["*"]
      verbs: ["get", "list", "watch"]
    ---
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRoleBinding
    metadata:
      name: external-access-sarkan-view
    roleRef:
      apiGroup: rbac.authorization.k8s.io
      kind: ClusterRole
      name: sarkan-view
    subjects:
    - kind: ServiceAccount
      name: external-access
      namespace: default
    ---
    apiVersion: v1
    kind: Secret
    metadata:
      name: external-access-token
      namespace: default
      annotations:
        kubernetes.io/service-account.name: external-access
    type: kubernetes.io/service-account-token
    
  2. Retrieve Access Information

  • API Server URL

    •   kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}'
      
  • Service Account Token (base64-encoded)

    •   kubectl get secret -n default external-access-token -o jsonpath='{.data.token}'
      
  • CA Certificate (base64-encoded)

    •   kubectl get secret -n default external-access-token -o jsonpath='{.data.ca\.crt}'
      

Configure Adapter

  1. Go to Administration > Integrations > Repository
    • Use filter on the right to find the adapter
    • Click on brick with Sarkan
  2. Use button ADD ACCOUNT
  3. Fill the fields

Adapter fields

Field NameDefinition
NameA unique identifier or label for the adapter.
DescriptionA brief description of the adapter's purpose or function.
Kubernetes API server addressHostname or IP address of the Kubernetes Instance.
CredentialsAuthentication details service account token and CA certificate.
Collector / GroupThe collector or group managing data collection. Collector group that runs the adapter; the Cloud Proxy must reach the registry.
Kubernetes API server portThe port used to connect to the Kubernetes API.
Adapter Memory Limit (MB)Maximum memory (in MB) the adapter can use.
Log LevelLogging detail level: Debug for detailed logging, Normal for standard logs, Trace for extensive tracing.