harveywells
02/06/2019, 6:10 PMfleectl
? For example we have a number of enrolled centos linux hosts that we’d like to label with dev
and prod
nyanshak
02/07/2019, 4:28 PMdev
/ prod
hosts (such as environment variables or a file or something -- placed by whatever config mgmt tool you use), but then it's easy:
---
apiVersion: v1
kind: label
spec:
name: prod
query: >
SELECT * FROM process_envs WHERE key = 'MY_ENV_KEY' AND value = 'prod';
The first things that come to mind are... files on the system, env vars, or maybe ec2_instance_metadata / ec2_instance_tags, but that'll be up to you / your environment.zwass
02/08/2019, 2:38 AM