© 2018 InfluxData. All rights reserved.
23 @gianarb -
[email protected]
Write friendly utility to manipulate the resources
// Create the pull of services you need to deploy
apps := []runtime.Object{}
apps = append(apps, etcd.New()...)
apps = append(apps, monitor.New()...)
apps = append(apps, kafka.New()...)
// Declare the number of transformation you need to apply to the declared resources
ops = append(ops,
WithNoLimits(),
WithMaxReplicas(1),
WithReplicas(map[string]int{
"etcd": 3,
}),
WithNoAffinity(),
WithNoNodePorts())
// Apply Transformation
apps = Transform(ops...)(apps)
// Deploy the transformation using client-sdk