1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- # Licensed to the Apache Software Foundation (ASF) under one
- # or more contributor license agreements. See the NOTICE file
- # distributed with this work for additional information
- # regarding copyright ownership. The ASF licenses this file
- # to you under the Apache License, Version 2.0 (the
- # "License"); you may not use this file except in compliance
- # with the License. You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- [Unit]
- Description=calico node
- After=docker.service
- Requires=docker.service
- [Service]
- User=root
- PermissionsStartOnly=true
- ExecStart=/usr/bin/docker run --net=host --privileged --name=calico-node \
- -e ETCD_ENDPOINTS=ETCD_ENDPOINTS_REPLACE \
- -e CALICO_LIBNETWORK_ENABLED=true \
- -e CALICO_NETWORKING_BACKEND=bird \
- -e CALICO_DISABLE_FILE_LOGGING=true \
- -e CALICO_IPV4POOL_CIDR=CALICO_IPV4POOL_CIDR_REPLACE/16 \
- -e CALICO_IPV4POOL_IPIP=always \
- -e FELIX_DEFAULTENDPOINTTOHOSTACTION=ACCEPT \
- -e FELIX_IPV6SUPPORT=false \
- -e FELIX_LOGSEVERITYSCREEN=info \
- -e FELIX_IPINIPMTU=1440 \
- -e FELIX_HEALTHENABLED=true \
- -e IP= \
- -v /etc/calico/ssl:/etc/calico/ssl \
- -v /var/run/calico:/var/run/calico \
- -v /lib/modules:/lib/modules \
- -v /run/docker/plugins:/run/docker/plugins \
- -v /var/run/docker.sock:/var/run/docker.sock \
- -v /var/log/calico:/var/log/calico \
- calico/node:v2.6.2
- ExecStop=/usr/bin/docker rm -f calico-node
- Restart=always
- RestartSec=10
- [Install]
- WantedBy=multi-user.target
|