Learning CoreOS by Kingston Smiler. S & Shantanu Agrawal
Author:Kingston Smiler. S & Shantanu Agrawal [S, Kingston Smiler.]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2016-03-21T23:00:00+00:00
Node-level affinity
This mechanism uses the systemd generated machine ID to schedule the services. Upon member installation, systemd generates a machine ID that is the same across subsequent system boots. Node-level affinity ensures the user targets a service onto a member and nowhere else. When thinking about clusters where it's more flexible to schedule a service based on member properties rather than on member identifiers, this mechanism has limited use. Typical use cases can be running a service to collect specific data from a machine, or for testing a service where a new service can be scheduled on a test member for observing the behavior.
The following is the cloud-config file used to create the cluster. This file also creates a service unit file in the home directory that will be used by fleet to start the service.
#cloud-config write_files: - path: /home/core/example_test.service owner: core:core permissions: 420 content: | [Unit] Description=Example After=docker.service Requires=docker.service [X-Fleet] MachineID=dummy [Service] TimeoutStartSec=0 ExecStartPre=-/usr/bin/docker kill sampleserv_test ExecStartPre=-/usr/bin/docker rm sampleserv_test ExecStartPre=/usr/bin/docker pull busybox ExecStart=/usr/bin/docker run --name sampleserv_test busybox /bin/sh -c "while true; do echo Test Service; sleep 300; done" ExecStop=/usr/bin/docker stop sampleserv_test ... units: - name: etcd2.service command: start enable: true - name: fleet.service command: start enable: true
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7810)
Grails in Action by Glen Smith Peter Ledbrook(7720)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6863)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6861)
Running Windows Containers on AWS by Marcio Morales(6389)
Kotlin in Action by Dmitry Jemerov(5092)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(5081)
Combating Crime on the Dark Web by Nearchos Nearchou(4657)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4642)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4438)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4346)
The Age of Surveillance Capitalism by Shoshana Zuboff(3985)
Python for Security and Networking - Third Edition by José Manuel Ortega(3903)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3568)
Learn Wireshark by Lisa Bock(3553)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3530)
Mastering Python for Networking and Security by José Manuel Ortega(3376)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3359)
Blockchain Basics by Daniel Drescher(3329)
