Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bkribbs15 committed Jul 25, 2024
1 parent f6b3f3f commit 6432619
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions docs/openshift/configuration/secrets/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,40 +76,39 @@ spec:
```
=== "OpenShift"
** Create files needed for rest of example.**
**Create files needed for rest of example.**
```
echo -n 'admin' > ./username.txt
echo -n '1f2d1e2e67df' > ./password.txt
```

** Creating Secret from files. **
**Creating Secret from files.**
```
oc create secret generic db-user-pass --from-file=./username.txt --from-file=./password.txt
```
** Getting Secret **
**Getting Secret**
```
oc get secrets
```
** Gets the Secret's Description. **
**Gets the Secret's Description.**
```
oc describe secrets/db-user-pass
```

=== "Kubernetes"
** Create files needed for rest of example. **
**Create files needed for rest of example.**
```
echo -n 'admin' > ./username.txt
echo -n '1f2d1e2e67df' > ./password.txt
```
** Creates the Secret from the files **
** Creates the Secret from the files**
```
kubectl create secret generic db-user-pass --from-file=./username.txt --from-file=./password.txt
```
** Gets the Secret **
**Gets the Secret**
```
kubectl get secrets
```
** Gets the Secret's Description. **
**Gets the Secret's Description.**
```
kubectl describe secrets/db-user-pass
```

0 comments on commit 6432619

Please sign in to comment.