Skip to content

    HTTP Basic

    Synopsis

    apiVersion: kannika.io/v1alpha
    kind: Credentials
    metadata:
    name: http-basic-creds
    spec:
    httpBasic:
    usernameFrom:
    secretKeyRef:
    name: http-basic-creds-secret
    key: username
    passwordFrom:
    secretKeyRef:
    name: http-basic-creds-secret
    key: password
    ---
    apiVersion: v1
    kind: Secret
    type: Opaque
    metadata:
    name: http-basic-creds-secret
    data:
    username: <username base64>
    password: <password base64>

    Usage

    HTTP Basic Credentials can be managed using the kubectl command line tool, and are available by the name credentials or creds.

    Terminal window
    $ kubectl get credentials
    NAME AGE
    registry-auth 1d