Skip to main content
added 14 characters in body
Source Link
Abdennour TOUMI
  • 94.6k
  • 42
  • 271
  • 274

Do the modification using kubectl and you will have two ways:

  • kubectl annotate:

      kubectl annotate node xx --overwrite flannel.alpha.coreos.com/public-ip=new-value
    
  • or kubectl patch :

      kubectl patch node xx -p '{"metadata":{"annotations":{"flannel.alpha.coreos.com/public-ip":"new-value"}}}'
    

Do the modification using kubectl and you will have two ways:

  • kubectl annotate:

      kubectl annotate node xx flannel.alpha.coreos.com/public-ip=new-value
    
  • or kubectl patch :

      kubectl patch node xx -p '{"metadata":{"annotations":{"flannel.alpha.coreos.com/public-ip":"new-value"}}}'
    

Do the modification using kubectl and you will have two ways:

  • kubectl annotate:

      kubectl annotate node xx --overwrite flannel.alpha.coreos.com/public-ip=new-value
    
  • or kubectl patch :

      kubectl patch node xx -p '{"metadata":{"annotations":{"flannel.alpha.coreos.com/public-ip":"new-value"}}}'
    
Source Link
Abdennour TOUMI
  • 94.6k
  • 42
  • 271
  • 274

Do the modification using kubectl and you will have two ways:

  • kubectl annotate:

      kubectl annotate node xx flannel.alpha.coreos.com/public-ip=new-value
    
  • or kubectl patch :

      kubectl patch node xx -p '{"metadata":{"annotations":{"flannel.alpha.coreos.com/public-ip":"new-value"}}}'