The example Kustomize overlay at
overlays/example-bond0/kustomization.yaml
deploys the
following to a namespace called sfptpd:
- A DaemonSet deploying the
sfptpdcontainer to worker nodes labellednode-role.kubernetes.io/ptp. - An sfptpd.cfg config file (see
config/samples/sfptpd/overlays/example-bond0/sfptpd.cfg
)
specifying the pod's PTP ethernet interface name as
bond0.Note: A bond is not required.
To use in your own cluster, make a copy and apply:
cp -r overlays/example-bond0 overlays/my-cluster
$EDITOR overlays/my-cluster/kustomization.yaml
$EDITOR overlays/my-cluster/sfptpd.cfg
kubectl label nodes <your-ptp-node> node-role.kubernetes.io/ptp=
kubectl apply -k overlays/my-cluster
Ensure you have also disabled the node's existing time services.