LogoLogo
HomePricingSelf-hosted docsAPI docsLogin
  • Home
  • Login to hava
  • Developer
  • Getting Started
    • Quickstart
      • Create New Account
      • Import Demo Data
      • Creating Environments
      • Exporting Diagrams
  • AWS Marketplace
  • Using Hava
    • Providers & Sources
    • Environments
      • Creating Environments
      • Filtering Environments
  • Importing Data
    • Demo Data
    • AWS
      • Getting Started with AWS
        • Cross Account Role
        • Read Only IAM User
        • Minimum Access IAM User
      • AWS Supported Resources
      • AWS Views
        • Infrastructure
        • Security
        • Container - ECS
        • List
    • Azure
      • Getting Started with Azure
        • Powershell
        • Azure Portal
      • Azure Supported Resources
      • Azure Views
        • Infrastructure
        • Azure Security View
        • List
    • Google Cloud
      • Getting Started with GCP
        • Service Account
        • Import Multiple Projects
        • Enabling APIs
      • GCP Supported Resources
      • GCP Views
        • Infrastructure
        • List
    • Kubernetes
      • Getting Started with Kubernetes
        • Read Only Kubeconfig
        • Automatic Import of Managed Kubernetes
          • AWS EKS Cluster Configuration
        • Converting certificate files to certificate data fields
      • Kubernetes Supported Resources
      • Kubernetes Views
        • Container
        • List
    • Import Errors
  • Discover
    • Importing
    • Searching
      • Search Overview
      • Search Syntax
        • VPC Search
        • Wildcard Search
        • Tag Search
        • Deep Search
      • Search Examples
        • Discover Resources From Regions
        • Create a multiple VPC diagram
        • Defining Custom Environments
    • Versioning
      • Tracking Changes in Cloud Architecture
    • Manual Sync
  • Diagram
    • Listing Environments
      • Filtering Environments
      • Favouriting Environments
    • Viewing Environments
      • Diagram Controls
      • Diagram Layout
      • Switch Between Views
      • Diagram Canvas Resource Filters
    • Draw Custom Connections
  • Diagnose
    • Architectural Monitoring Alerts
    • Attributes
    • Cost Estimation
    • Diff View - Comparing Diagrams
    • Infrastructure
      • View Route Tables
      • View ACLs
      • View Security Groups
    • Reports
      • AWS Compliance Reports
  • Document
    • Environment Notes
    • Embed
    • Exporting Diagrams
    • Edit
      • Draw.io
  • Collaboration
    • Teams
    • Inviting Users
    • Disabling users
    • SSO/SAML
      • Overview
      • Azure AD - SAML Setup
      • Azure AD - OIDC Setup
      • Okta - SAML Setup
      • Okta - OIDC Setup
      • Trouble Shooting SSO
    • Project folders
  • Integrations
    • AWS Control Tower
    • CLI
    • Confluence Cloud
    • GitHub
    • Terraform
  • API
    • API Docs
  • Account & Billing
    • Types Of Hava Accounts
    • Change Subscription
    • Switch to AWS marketplace
    • Change Password
    • MFA
    • Download Invoice
    • Cancel Account
    • Account Audit Log
  • Quick Look
    • Quick AWS Overview
    • Security Overview
    • Customize the Hava Dashboard
Powered by GitBook
On this page
  • Finding and converting the files
  • Update the config to use the new values

Was this helpful?

  1. Importing Data
  2. Kubernetes
  3. Getting Started with Kubernetes

Converting certificate files to certificate data fields

Kubernetes import is in private beta at the moment

if you are interested in testing this out, please reach out to the support team, and we will enable it on your account

Hava does not support accessing external files within your kubeconfig for authentication using client certificates. Luckily, it's a simple process to convert these to data fields that can be entered directly into your configuration.

The fields that will need to be converted are:

  • certificate-authority to become certificate-authority-data

  • client-certificate to become client-certificate-data

  • client-key to become client-key-data

Finding and converting the files

For this example we have the following kubeconfig using local certificates files.

apiVersion: v1
kind: Config
preferences: {}
clusters:
  - cluster:
      certificate-authority: /Users/example/ca.crt
      server: https://kubeserver:8443
    name: kube
contexts:
  - context:
      cluster: kube
      user: kube
    name: kube
users:
  - name: kube
    user:
      client-certificate: /Users/example/client.crt
      client-key: /Users/example/client.key

For each of these external files we need to convert them to base64 and then update the configuration with the base64 string.

Here's an example using the certificate authority file:

Linux and MacOS

cat /Users/example/ca.crt | base64

Windows

certutil -f -encode "c:/Users/example/ca.crt" "output-file"

Update the config to use the new values

Once you've got the base64 data for all 3 values you can update the config file.

apiVersion: v1
kind: Config
preferences: {}
clusters:
  - cluster:
      certificate-authority-data: <base64 ca.crt>
      server: https://kubeserver:8443
    name: kube
contexts:
  - context:
      cluster: kube
      user: kube
    name: kube
users:
  - name: kube
    user:
      client-certificate-data: <base64 client.crt>
      client-key-data: <base64 client.key>

Your configuration is now ready to import into Hava to connect and display your Kubernetes clusters!

PreviousAWS EKS Cluster ConfigurationNextKubernetes Supported Resources

Last updated 3 years ago

Was this helpful?