root@kube-control-plane:/usr/lib/systemd/system/kubelet.service.d# cat radius.yml
apiVersion: v1
kind: ConfigMap
metadata:
  name: freeradius-config
data:
  clients.conf: |
    client localhost {
      ipaddr = 127.0.0.1
      secret = testing123
      require_message_authenticator = no
    }
  users: |
    bob    Cleartext-Password := "hello"
      Reply-Message := "Hello, %{User-Name}"
      Test-Vendor-Lunch-Time := 1633072800
      Test-Vendor-People-To-Eat-With += "Alice"
      Test-Vendor-People-To-Eat-With += "Charlie"
      Test-Vendor-People-To-Eat-With += "Eve"
      Test-Vendor-People-To-Eat-With += "Mallory"
      Test-Vendor-Where-To-Eat := 192.168.1.100
      Test-Vendor-What-To-Eat := Bread
  dictionary.test: |
    VENDOR       Test-Vendor    123456

    BEGIN-VENDOR Test-Vendor

    ATTRIBUTE    Lunch-Time            1    date
    ATTRIBUTE    People-To-Eat-With    2    string
    ATTRIBUTE    Where-To-Eat          3    ipaddr
    ATTRIBUTE    What-To-Eat           4    integer

    VALUE        What-To-Eat    Salad        1
    VALUE        What-To-Eat    Bread        2
    VALUE        What-To-Eat    Dessert      3
    VALUE        What-To-Eat    Beans        4

    END-VENDOR   Test-Vendor
  dictionary: |
    $INCLUDE /usr/share/freeradius/dictionary
    $INCLUDE /etc/freeradius/dictionary.test
---
apiVersion: v1
kind: Service
metadata:
  name: freeradius-service
spec:
  selector:
    app: freeradius
  ports:
    - protocol: UDP
      port: 1812
      targetPort: 1812
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: freeradius-deployment
spec:
  replicas: 1
  selector:
    matchLabels:
      app: freeradius
  template:
    metadata:
      labels:
        app: freeradius
    spec:
      volumes:
        - name: freeradius-config
          configMap:
            name: freeradius-config
      containers:
        # FreeRADIUS server container
        - name: freeradius-server
          image: freeradius/freeradius-server
          command: ["radiusd", "-X"]
          ports:
            - containerPort: 1812
              protocol: UDP
          volumeMounts:
            - name: freeradius-config
              mountPath: /etc/freeradius/clients.conf
              subPath: clients.conf
            - name: freeradius-config
              mountPath: /etc/freeradius/users
              subPath: users
            - name: freeradius-config
              mountPath: /etc/freeradius/dictionary
              subPath: dictionary
            - name: freeradius-config
              mountPath: /etc/freeradius/dictionary.test
              subPath: dictionary.test
        # Packet generator container
        - name: packet-generator
          image: freeradius/freeradius-server
          command: ["/bin/sh", "-c"]
          args:
            - |
              sleep 10  # Delay to ensure server startup
              while true; do
                echo "Sending RADIUS request..."
                echo 'User-Name = "bob"
User-Password = "hello"' | radclient -x -d /etc/freeradius 127.0.0.1:1812 auth testing123
                sleep 5
              done
          volumeMounts:
            - name: freeradius-config
              mountPath: /etc/freeradius/dictionary
              subPath: dictionary
            - name: freeradius-config
              mountPath: /etc/freeradius/dictionary.test
              subPath: dictionary.test

root@kube-control-plane:/usr/lib/systemd/system/kubelet.service.d# kubectl apply -f radius.yml
configmap/freeradius-config unchanged
service/freeradius-service unchanged
error: error parsing radius.yml: error converting YAML to JSON: yaml: line 53: could not find expected ':'
root@kube-control-plane:/usr/lib/systemd/system/kubelet.service.d#
correct it see that erreur do your logic and recreaet it completed updaeted in one combined yml
and  iwant when logs see log that generator send packet to processeur and see it s  response the response must add the custom attributes and and the generator send radius packet without the custom attributes he will get it as response