Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Fix keepalived config file error when there are no services #8

Merged
merged 1 commit into from
Sep 18, 2017

Conversation

walteraa
Copy link
Contributor

@walteraa walteraa commented Sep 5, 2017

When my kubernetes there is no any service, I was getting the error below

Tue Sep  5 20:20:36 2017: Registering gratuitous ARP shared channel
Tue Sep  5 20:20:36 2017: Opening file '/etc/keepalived/keepalived.conf'.
Tue Sep  5 20:20:36 2017: (vips): No VIP specified; at least one is required
Tue Sep  5 20:20:37 2017: Stopped
Tue Sep  5 20:20:37 2017: Keepalived_vrrp exited with permanent error CONFIG. Terminating
Tue Sep  5 20:20:37 2017: Stopping

To fix it, I check if the VIPs list is empty then I only generate the virtual infrastructure if the list isn't empty.

@aledbf
Copy link
Owner

aledbf commented Sep 18, 2017

@walteraa thanks!

@aledbf aledbf merged commit 9006844 into aledbf:master Sep 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants