name: openshift-gcp-routes.service
enabled: true
contents: |
  [Unit]
  Description=Update GCP routes for forwarded IPs.
  ConditionKernelCommandLine=|ignition.platform.id=gce
  ConditionKernelCommandLine=|ignition.platform.id=gcp
  Wants=network-online.target
  After=network-online.target

  [Service]
  Type=simple
  ExecStart=/bin/bash /opt/libexec/openshift-gcp-routes.sh start
  ExecStopPost=/bin/bash /opt/libexec/openshift-gcp-routes.sh cleanup
  User=root
  RestartSec=30
  Restart=always

  [Install]
  WantedBy=multi-user.target
