kubernetes-clustergcekubernetesbare-metalk8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansible
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
628 B
23 lines
628 B
[Unit]
|
|
Description=calicoctl node
|
|
After=etcd2.service
|
|
|
|
[Service]
|
|
EnvironmentFile=/etc/network-environment
|
|
User=root
|
|
PermissionsStartOnly=true
|
|
ExecStartPre={{ bin_dir }}/calicoctl checksystem --fix
|
|
{% if inventory_hostname in groups['kube-node'] %}
|
|
{% if peer_with_router %}
|
|
ExecStart={{ bin_dir }}/calicoctl node --ip=${DEFAULT_IPV4} --as={{ local_as }} --kubernetes
|
|
{% else %}
|
|
ExecStart={{ bin_dir }}/calicoctl node --ip=${DEFAULT_IPV4} --kubernetes
|
|
{% endif %}
|
|
{% else %}
|
|
ExecStart={{ bin_dir }}/calicoctl node --ip=${DEFAULT_IPV4}
|
|
{% endif %}
|
|
RemainAfterExit=yes
|
|
Type=oneshot
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|