Skip to content

Latest commit

 

History

History
75 lines (67 loc) · 2.49 KB

SmbCommonConfig.md

File metadata and controls

75 lines (67 loc) · 2.49 KB

SmbCommonConfig Custom Resource

The SmbCommonConfig resource is used to define properties related to networking that are shared across one or more SmbShares.

apiVersion: samba-operator.samba.org/v1alpha1
kind: SmbCommonConfig
metadata:
  name: domain-security1
  namespace: smb-shares
spec:
  network:
    publish: external
  podSettings:
    nodeSelector:
      "kubernetes.io/os": "linux"
      "kubernetes.io/arch": "amd64"
    affinity:
      ... <k8s affinity spec> ...

Specification

NOTE: A LoadBalancer Service requires support from the Kubernetes cluster to work. In the case of Kubernetes in the Cloud many providers automatically configured this feature. In the case of a bare-metal Kubernetes cluster you may need to set up and maintain your own load balancer. The samba-operator has been tested with MetalLB.

Full example of an SmbCommonConfig with both node selector and node affinity settings applied:

apiVersion: samba-operator.samba.org/v1alpha1
kind: SmbCommonConfig
metadata:
  name: domain-security1
  namespace: smb-shares
spec:
  network:
    publish: external
  podSettings:
    nodeSelector:
      "kubernetes.io/os": "linux"
      "kubernetes.io/arch": "amd64"
    affinity:
      nodeAffinity:
        preferredDuringSchedulingIgnoredDuringExecution:
          - weight: 10
            preference:
              matchExpressions:
                - key: storage-server
                  operator: In
                  values:
                    - samba
                    - smb
                    - default