How to create a secret from literals in Minishift Cluster

0 votes

Hi Guys,

I am new to Openshift Cluster. I am using Minishift. I want to create a secret from literals in my cluster. How can I do that?

Aug 18, 2020 in DevOps Tools by akhtar
• 38,260 points
1,327 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 literals.

[docker@minishift ~]$ oc create secret generic mysecret --from-literal key1=secret1 --from-literal key2=secret2 -n myproj 
secret/mysecret created  
answered Aug 18, 2020 by MD
• 95,460 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,260 points
897 views
0 votes
1 answer

How to assign cluster-level role to a user in Minishift?

Hi@akhtar, You can use oc adm policy command ...READ MORE

answered Aug 18, 2020 in DevOps Tools by MD
• 95,460 points
721 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,460 points
838 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,460 points
1,385 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
15,477 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
0 votes
1 answer

How to create a secret from a file in Minishift?

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

answered Aug 19, 2020 in DevOps Tools by MD
• 95,460 points
772 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,460 points
722 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP