F5 Container Integrations v1.1

Current Page

Application Services Proxy

Cloud Foundry

Kubernetes

Mesos Marathon

OpenShift

Support

Troubleshooting

Tutorials

Cloud Docs Home > F5 Container Integrations Index

Secure sensitive information with Kubernetes Secrets

A Kubernetes Secret allows you to securely store and consume sensitive data in your Kubernetes cluster.

Secure your BIG-IP credentials

  1. Create a generic Kubernetes Secret to secure your BIG-IP login information.

    Create a secret for your BIG-IP login credentials
    user@k8s-master:~$ kubectl create secret generic bigip-login --namespace kube-system --from-literal=username=admin --from-literal=password=admin
    secret "bigip-login" created
    
  2. Verify the Secret exists

    BIG-IP credentials
    user@k8s-master:~$ kubectl get secret bigip-login --namespace kube-system -o yaml
    apiVersion: v1
    data:
      password: YWRtaW4=
      username: YWRtaW4=
    kind: Secret
    metadata:
      creationTimestamp: 2017-02-06T19:18:34Z
      name: bigip-login
      namespace: kube-system
      resourceVersion: "8586"
      selfLink: /api/v1/namespaces/kube-system/secrets/bigip-login
      uid: 0d950bbc-eca1-11e6-92a8-fa163e4f44e9
    type: Opaque
    

Pull an image from a private docker registry

Please see the Kubernetes documentation: