Samba AD DC running in Kubernetes #112
Replies: 2 comments
-
That's pretty cool, thanks for sharing!
I didn't see a bash script in the repo... did I overlook something?
What should
Yeah, I never put much effort into making multi-dc work properly. I mainly use the ad-dc image for testing purposes and these domains never exist for a long time and don't need to replicate. One idea I had once was to possibly support simple if-then conditions no the command line to trigger actions. Hypothetically something like Happy to discuss more. I also am trying to encourage folks who ask for features to contribute, as I am very busy lately. Even if you don't feel like a python expert I suggest giving it a whirl and I can coach you and give feedback. |
Beta Was this translation helpful? Give feedback.
-
It's OK.
The bash script is part of a config map.
I'd like to access to the pod from outside the cluster, using MetalLB, as load balancer, to expose the ports. MetalLB has its own IP addresses, but the pod starts assuming the internal IP address, then it creates registries on the DNS based on that internal IP. So, I'd like to force sambacc to use the external IP I already set on MetalLB and I set as part of /etc/hosts file, from the begining. I think that would save me from doing some additional steps manually with samba-tool, adding the external IP and deleting the internal one, as explained on the readme file.
Oh, I understand. Anyways, the stateful set creates numbered pods, like: dc-0, dc-1, dc-2, etc., while it assigns a pod index number that I pass as an environment variable. Then, this number is taken by the bash script to start the sambacc to provision (if POD_INDEX == 0) or to join to a domain (as "else").
I'm not a Python expert, but I could make some changes, forking sambacc source code to achieve what I'd like to see. Anyways, I feel that I need to know more about the plans that you may have about the modes that you'd pretend Samba AD DC to have in Kubernetes and define how to name and pass every option. If you need some more evidences, like screenshots or logs, please don't hesitate to ask me for them. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone!
I'd like to show you a repository where I've been publishing a YAML that allowed me to run Samba AD DC successfully, exposing ports out from the cluster.
https://github.com/burbuja/samba-in-kubernetes
Anyways, I feel that I need to eliminate the bash script and the manual steps. To achieve that, I'd like to see these two functions in sambacc:
I'd like to see your comments.
Beta Was this translation helpful? Give feedback.
All reactions