OpenShift Security, Secrets, Configuration Maps (OpenShift Administration Part-6) RedHat Ex280
...................................
** If new to Docker, Podman, Kubernetes and Openshift then first see -- kzread.info/head/PLnFCwVWiQz4kASpMbCXRmAu6nKtPOBE4Q
** For detail about OpenShift development --
kzread.info/head/PLnFCwVWiQz4lrK7s1S409fsfm59qdFVOX
Secrets -
• Passwords.
• Sensitive configuration files.
• Credentials to an external resource, such as an SSH key or OAuth token.
Secrets as Files in a Pod
oc set volume deployment/mysql --add --type secret --mount-path /run/secrets/mysql --secret-name mysql
Configuration Map
Lab: Managing Sensitive Information with Openshift Secrets
commands--
oc new-project authorization-secrets
oc create secret generic mysql --from-literal user=myuser --from-literal password=redhat123 --from-literal database=test_secrets --from-literal hostname=mysql
oc new-app --name mysql --image registry.redhat.io/rhel8/mysql-80:1
oc get pods -w
oc set env deployment/mysql --from secret/mysql --prefix MYSQL_
oc rsh pod-id
mysql -u myuser --password=redhat123 test_secrets -e 'show databases;'
Пікірлер: 4
Nice
where are the sample yaml files for your videos?
Hi Sir, I want to do certification on redhat openshift adminstration please guide me
@softwarehindi4696
2 ай бұрын
had you done you certification?