How to create a secret from a file in Minishift

0 votes

Hi Guys,

I have created some users using htpasswd command. I want to create one secret from these usernames and passwords. How can I do that?

Aug 19, 2020 in DevOps Tools by akhtar
• 38,170 points
85 views

1 answer to this question.

0 votes

Hi@akhtar,

You can create a secret using generic concepts in Openshift. You can create a secret in two ways in Openshift. One is from literals and another is from a file. I have attached the command below to create a secret from a file.

$ oc create secret generic mysecret --from-file htpasswd=myuser.txt -n myproj
answered Aug 19, 2020 by MD
• 95,060 points

Related Questions In DevOps Tools

0 votes
1 answer

How to create a new-app in Minishift?

Hi@MD, You can use oc new-app command in ...READ MORE

answered Aug 18, 2020 in DevOps Tools by akhtar
• 38,170 points
78 views
0 votes
1 answer

How to create a service account in Minishift?

Hi@akhtar, Some application requires service account for their ...READ MORE

answered Aug 19, 2020 in DevOps Tools by MD
• 95,060 points
75 views
0 votes
1 answer

How to filter IP from a log file using Logstash?

Hi@akhtar, You can use the filter plugin in Logstash. It ...READ MORE

answered Jun 18, 2020 in DevOps Tools by MD
• 95,060 points
103 views
0 votes
1 answer

How to create a new project in OpenShift?

Hi@akhtar, A Kubernetes namespace provides a mechanism to ...READ MORE

answered Aug 18, 2020 in DevOps Tools by MD
• 95,060 points
154 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
9,873 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 52,290 points

reshown Apr 12, 2019 by Kalgi 3,012 views
0 votes
1 answer

How to create a secret from literals in Minishift Cluster?

Hi@akhtar, You can create a secret using generic ...READ MORE

answered Aug 18, 2020 in DevOps Tools by MD
• 95,060 points
90 views
0 votes
1 answer

How to create a group in Minishift?

Hi@akhtar, To create a group in Minishift, you ...READ MORE

answered Aug 18, 2020 in DevOps Tools by MD
• 95,060 points
65 views