Skip to content

Jonas Dahlgren's Blog

Some scripts and other IT related tasks.

  • Home
  • Contact
Homekubernetes

kubernetes

Run kubectl and bypass authentication

February 26, 2020March 3, 2020 Jonas Dahlgren kubernetes

If you are unable to login to you cluster but still have access over SSH for example. Run this command to bypass cloudctl login.

kubectl --kubeconfig /etc/cfc/conf/admin.kubeconfig get pods --all-namespaces

Leave a comment

Create a secret containing a TLS certificate

January 5, 2020January 5, 2020 Jonas Dahlgren kubernetes icp, kubernetes

Example code to create a secret in namespace lab containing a certificate to be used with an ingress for example.

kubectl -n lab create secret tls tls-icp-cert-com --cert=cert.pem --key=cert.key

Leave a comment

Recent Posts

  • Terraform and Active Directory January 4, 2023
  • Setup and run a Azure automation runbook December 12, 2022
  • Add your server to Azure Arc November 7, 2022
  • GPO and local Administrator group March 14, 2022
  • Export subnets from Meraki to phpIPAM February 23, 2022

Category Cloud

Active Directory Ansible Azure Docker HP Procurve kubernetes networking OP5 powercli powershell Uncategorized Vmware Windows 7

Categories

Proudly powered by WordPress
  • Twitter
  • Facebook
  • Google+
  • GitHub
  • Create a website or blog at WordPress.com
  • Follow Following
    • Jonas Dahlgren's Blog
    • Already have a WordPress.com account? Log in now.
    • Jonas Dahlgren's Blog
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar