I want to share some podman command options I think they are useful.

For saving containers as a tar file and import in another machine :

$ podman save -o FILE_NAME IMAGE_NAME:TAG 
$ podman save -o httpd.tar quay.io/halukkarakaya/httpd:2.4
$ podman load -i FILE_NAME
$ podman load -i mysql.tar

For deleting…

In this article, I will explain how we can authenticate an ldap group for an openshift project(namespace).

For this, we should sync ldap groups with openshift platform.First, lets create a namespace named projectname.

[root@*** ]#oc create namespace projectname

and two file named whitelist.txt and ldap_nested_sync.yaml.

[root@*** ]# cat /root/ocp/confs/authentication/whitelist.txt
podman search httpd --filter is-automated=false --filter is-official=false --filter stars=0 --tls-verify=false

When we run the command `podman search` it finds and gets some images from some registries. So how podman selects the registries it will search into?

So this question’s answer is hiding in a conf file named registries.conf

You can find this file in /etc/containers directory.

For default search registries you can configure this file like below.

vi /etc/containers/registries.conf

registries = ["registry.access.redhat.com", "quay.io"]

and if you want to disable tls-verify you can add the entry below in same file.

registries = ['yourregistry:yourport']

now you can run podman search command without tls-verify .

podman search httpd --filter is-automated=false --filter is-official=false --filter stars=0 

Connect google cloud account and open your kubernetes cluster page.

Press the connect button and take gcloud shell. Run the command below.

gcloud container clusters resize cluster-1 --zone=us-central1-c --num-nodes 3

This command set the worker node size to 3. You can set this to zero if you want.

The explanation of the command is below.

gcloud container clusters resize CLUSTER_NAME --node-pool POOL_NAME --num-nodes NUM_NODES

Replace the following:

  • CLUSTER_NAME: the name of the cluster to resize.
  • POOL_NAME: the name of the node pool to resize.
  • NUM_NODES: the number of nodes in the pool in a zonal cluster. If you use multi-zonal or regional clusters, NUM_NODES is the number of nodes for each zone the node pools is in.

Repeat this command for each node pool. If your cluster has only one node pool, omit the --node-pool flag.


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store