blob: 33a72399d17000e7cbb13b440ec484fc0a2fe199 [file] [log] [blame]
Serge Bazanskiefdb6e92020-07-13 17:19:27 +02001// Copyright 2020 The Monogon Project Authors.
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17syntax = "proto3";
Serge Bazanski31370b02021-01-07 16:31:14 +010018option go_package = "source.monogon.dev/metropolis/proto/internal";
Serge Bazanski662b5b32020-12-21 13:49:00 +010019package metropolis.proto.internal;
Serge Bazanskiefdb6e92020-07-13 17:19:27 +020020
21// Node describes a single node's state in etcd
22message Node {
23 // Individual node service certificate.
24 bytes certificate = 1;
25 // Node's individual cluster part of the disk encryption key.
26 bytes cluster_unlock_key = 2;
27 // Node address. This is currently an IPv4 address because that is what the
28 // network service uses, but would also support IPv6. See EnrolmentConfig for a
29 // discussion on why we use IP addresses rather than some kind of resolver.
30 string address = 3;
31
32 message Roles {
33 message ConsensusMember {
34 string etcd_member_name = 1;
35 }
36 ConsensusMember consensus_member = 1;
37 message KubernetesWorker {
38 string node_name = 1;
39 }
40 KubernetesWorker kubernetes_worker = 2;
41 }
42 Roles roles = 4;
43}