Actions
Cleanup #50117
closedorch apply kind: introduce another layer on top of service_type. I.e. distinguish hosts and services
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Description
Current situation
Right now, we have already three different type of things that ceph orch apply supports:
- Standard services: service_type: mon|mgr|rgw...
- Host specs: service_type: host
- Generic Deployments: service_type: container
Idea
The idea is to distinguish them better for the user. Make it clear that a host spec is not a service.
kind: host
hostname: foobar
addr: 127.0.0.1
is better than
service_type: host
hostname: foobar
addr: 127.0.0.1
Thus, I propose to add another layer called kind: host|service|deployment on top of service_type.
Like so:
kind: host
hostname: myhost1
labels:
- rgw
---
kind: service
service_type: rgw
service_id: foobar
spec:
realm: myrealm
zone: myzone
---
kind: rgw_realm
name: realm-a
pull_endpoint: http://10.2.105.133:80
---
kind: rgw_zone
name: zone-a
---
kind: deployment
service_name: prometheus-webhook-snmp
placement:
ADD_PLACEMENT_HERE
image: hello:latest
ports:
- 999: 999
envs:
- args="--debug --snmp-host=ADD_HOST_GATEWAY_HERE --metrics"
ceph orch apply -i cluster.yaml
or
cephadm bootstrap --apply-spec cluster.yaml
Updated by Sebastian Wagner about 3 years ago
- Related to Feature #49735: cephadm: allow applying RGW multisite YAML objects added
Updated by Sebastian Wagner over 2 years ago
- Related to Feature #49735: cephadm: allow applying RGW multisite YAML objects added
Updated by Sebastian Wagner over 2 years ago
- Status changed from New to Duplicate
Actions