In the deployment config, its a little confusing, because both the sidecar, and the main application, are using the same image, which is edseymour/kinit-sidecar.
I'm assuming a more real world example would use the kinit-sidecar to augment a main application container which doesnt contain any kerberos dependencies (separation of concerns principle).
So, in the deploymentconfig, the application container, called example-app, runs the following command:
- /bin/sh
- -c
- 'while true; do echo "*** checking if authenticated"; klist ; sleep 5; done'
This command requires klist.
So, the example that you have provided has two containers, both from the same image. One makes the above command, and the other runs rekinit.sh.
The objective, I feel, should be that kerberos is wholly separate from the application container, and the aplication container doesnt need any kerberos dependencies.
Is it possible that the main container can call this in the side-car? The objective being that all kerberos dependencies are contained within the kerberos sidecar.
In the deployment config, its a little confusing, because both the sidecar, and the main application, are using the same image, which is
edseymour/kinit-sidecar.I'm assuming a more real world example would use the kinit-sidecar to augment a main application container which doesnt contain any kerberos dependencies (separation of concerns principle).
So, in the deploymentconfig, the application container, called
example-app, runs the following command:This command requires
klist.So, the example that you have provided has two containers, both from the same image. One makes the above command, and the other runs
rekinit.sh.The objective, I feel, should be that kerberos is wholly separate from the application container, and the aplication container doesnt need any kerberos dependencies.
Is it possible that the main container can call this in the side-car? The objective being that all kerberos dependencies are contained within the kerberos sidecar.