restructure rcloud-base as a single base controller (#37)

* restructure rcloud-base as a single base controller
* updated master.rest
* moved sentry from internal to pkg as it is used by relay
* removing unused rpc and it's dependencies
* Fix usermgmt tests
* Don't redefine variables in rest file
Co-authored-by: Abin Simon <abin.simon@rafay.co>
This commit is contained in:
nirav-rafay
2022-03-03 17:59:06 +05:30
committed by GitHub
parent 4ff3d06ef7
commit c66bdc25cd
1176 changed files with 9472 additions and 88767 deletions
+8
View File
@@ -0,0 +1,8 @@
apiVersion: "stable.example.com/v1"
kind: CronTab
metadata:
name: my-new-cron-object
namespace: default
spec:
cronSpec: "* * * * */5"
image: my-awesome-cron-image
+43
View File
@@ -0,0 +1,43 @@
# Deprecated in v1.16 in favor of apiextensions.k8s.io/v1
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
name: crontabs.stable.example.com
spec:
# group name to use for REST API: /apis/<group>/<version>
group: stable.example.com
# list of versions supported by this CustomResourceDefinition
versions:
- name: v1
# Each version can be enabled/disabled by Served flag.
served: true
# One and only one version must be marked as the storage version.
storage: true
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: crontabs
# singular name to be used as an alias on the CLI and for display
singular: crontab
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: CronTab
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- ct
- ct4
preserveUnknownFields: false
validation:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
cronSpec:
type: string
image:
type: string
replicas:
type: integer
+42
View File
@@ -0,0 +1,42 @@
# Deprecated in v1.16 in favor of apiextensions.k8s.io/v1
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
name: crontabs.stable.example.com
spec:
# group name to use for REST API: /apis/<group>/<version>
group: stable.example.com
# list of versions supported by this CustomResourceDefinition
versions:
- name: v1
# Each version can be enabled/disabled by Served flag.
served: true
# One and only one version must be marked as the storage version.
storage: true
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: crontabs
# singular name to be used as an alias on the CLI and for display
singular: crontab
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: CronTab
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- ct
preserveUnknownFields: false
validation:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
cronSpec:
type: string
image:
type: string
replicas:
type: integer
+24
View File
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: nginx-deployment
labels:
app: nginx
annotations:
rafay.dev/original: '{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"namespace":"default","name":"nginx-deployment","labels":{"app":"nginx"}},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"nginx"}},"template":{"metadata":{"labels":{"app":"nginx"}},"spec":{"containers":[{"name":"nginx","image":"nginx:1.7.9","ports":[{"containerPort":80}]}]}}}}'
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
+31
View File
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: nginx-deployment
labels:
app: nginx
annotations:
rafay.dev/original: '{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"namespace":"default","name":"nginx-deployment","labels":{"app":"nginx"}},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"nginx"}},"template":{"metadata":{"labels":{"app":"nginx"}},"spec":{"containers":[{"name":"nginx","image":"nginx:1.7.9","ports":[{"containerPort":80}],"readinessProbe":{"httpGet":{"path":"/healthz","port":8080,"httpHeaders":[{"name":"X-Custom-Header","value":"Awesome"}]}}}]}}}}'
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
readinessProbe:
httpGet:
path: /healthz
port: 8080
httpHeaders:
- name: X-Custom-Header
value: Awesome
+31
View File
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment11
metadata:
namespace: default
name: nginx-deployment
labels:
app: nginx
annotations:
rafay.dev/original: '{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"namespace":"default","name":"nginx-deployment","labels":{"app":"nginx"}},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"nginx"}},"template":{"metadata":{"labels":{"app":"nginx"}},"spec":{"containers":[{"name":"nginx","image":"nginx:1.7.9","ports":[{"containerPort":80}],"readinessProbe":{"httpGet":{"path":"/healthz","port":8080,"httpHeaders":[{"name":"X-Custom-Header","value":"Awesome"}]}}}]}}}}'
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
readinessProbe:
httpGet:
path: /healthz
port: 8080
httpHeaders:
- name: X-Custom-Header
value: Awesome
+30
View File
@@ -0,0 +1,30 @@
apiVersion: v1
kind: Pod
metadata:
labels:
app: web
name: rss-site
namespace: default
spec:
containers:
- image: nginx
imagePullPolicy: IfNotPresent
name: front-end
ports:
- containerPort: 80
protocol: TCP
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- image: nickchase/rss-php-nginx:v1
imagePullPolicy: IfNotPresent
name: rss-reader
ports:
- containerPort: 88
protocol: TCP
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
enableServiceLinks: true
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30
+30
View File
@@ -0,0 +1,30 @@
apiVersion: v1
kind: Pod
metadata:
labels:
app: web
name: rss-site
namespace: default
spec:
containers:
- image: nginx:1.17
imagePullPolicy: IfNotPresent
name: front-end
ports:
- containerPort: 80
protocol: TCP
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- image: nickchase/rss-php-nginx:v1
imagePullPolicy: IfNotPresent
name: rss-reader
ports:
- containerPort: 88
protocol: TCP
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
enableServiceLinks: true
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30
File diff suppressed because one or more lines are too long
+499
View File
@@ -0,0 +1,499 @@
apiVersion: cluster.rafay.dev/v2
kind: Namespace
metadata:
annotations:
rafay.dev/object-hash: avinash-test
label-1: test
rafay.dev/pruned: "null"
rafay.dev/random: jcoVQsZEXH
rafay.dev/resource-hash: 4fc5c12346ea0fb4ac19cca416fbaffb3c77a0ace763c2ad37510c0cca274af1
rep-drift-action: deny
creationTimestamp: "2021-09-15T05:00:18Z"
finalizers:
- cluster.rafay.dev.v2.predelete
generation: 1
labels:
rafay.dev/global: "true"
rafay.dev/modified-sa: "true"
rafay.dev/psp: rafay-privileged-psp
rafay.dev/system: "true"
rep-drift-reconcillation: enabled
managedFields:
- apiVersion: cluster.rafay.dev/v2
fieldsType: FieldsV1
fieldsV1:
f:spec:
f:init: {}
f:namespaceMeta: {}
f:status:
.: {}
f:conditions: {}
f:init: {}
f:namespaceRef: {}
f:observedGeneration: {}
f:postCreate: {}
manager: manager
operation: Update
time: "2021-09-15T05:00:18Z"
- apiVersion: cluster.rafay.dev/v2
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:rafay.dev/object-hash: {}
f:rafay.dev/pruned: {}
f:rafay.dev/random: {}
f:rafay.dev/resource-hash: {}
f:rep-drift-action: {}
f:finalizers:
.: {}
v:"cluster.rafay.dev.v2.predelete": {}
f:labels:
.: {}
f:rafay.dev/global: {}
f:rafay.dev/modified-sa: {}
f:rafay.dev/psp: {}
f:rafay.dev/system: {}
f:rep-drift-reconcillation: {}
f:spec:
.: {}
f:postCreate: {}
manager: rafay-connector
operation: Update
time: "2021-09-15T05:00:18Z"
name: rafay-system
namespace: default
resourceVersion: "1272"
uid: e4550a5c-a2ef-4277-8283-0f4e3478970c
spec:
init:
- name: create-manager-cluster-role
object:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
rafay.dev/original: '{"kind":"ClusterRole","rules":[{"verbs":["*"],"apiGroups":["*"],"resources":["*"]},{"verbs":["*"],"nonResourceURLs":["*"]},{"verbs":["create","delete","get","list","patch","update","watch"],"apiGroups":["cluster.rafay.dev"],"resources":["namespaces"]},{"verbs":["get","patch","update"],"apiGroups":["cluster.rafay.dev"],"resources":["namespaces/status"]},{"verbs":["create","delete","get","list","patch","update","watch"],"apiGroups":["cluster.rafay.dev"],"resources":["tasklets"]},{"verbs":["get","patch","update"],"apiGroups":["cluster.rafay.dev"],"resources":["tasklets/status"]},{"verbs":["create","delete","get","list","patch","update","watch"],"apiGroups":["cluster.rafay.dev"],"resources":["tasks"]},{"verbs":["get","patch","update"],"apiGroups":["cluster.rafay.dev"],"resources":["tasks/status"]}],"metadata":{"name":"rafay:manager","creationTimestamp":null,"labels":{"rep-drift-reconcillation":"enabled"},"annotations":{"rep-drift-action":"deny"}},"apiVersion":"rbac.authorization.k8s.io/v1"}'
rep-drift-action: deny
creationTimestamp: null
labels:
rep-drift-reconcillation: enabled
name: rafay:manager
rules:
- apiGroups:
- '*'
resources:
- '*'
verbs:
- '*'
- nonResourceURLs:
- '*'
verbs:
- '*'
- apiGroups:
- cluster.rafay.dev
resources:
- namespaces
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- cluster.rafay.dev
resources:
- namespaces/status
verbs:
- get
- patch
- update
- apiGroups:
- cluster.rafay.dev
resources:
- tasklets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- cluster.rafay.dev
resources:
- tasklets/status
verbs:
- get
- patch
- update
- apiGroups:
- cluster.rafay.dev
resources:
- tasks
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- cluster.rafay.dev
resources:
- tasks/status
verbs:
- get
- patch
- update
- name: create-proxy-cluster-role
object:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
rafay.dev/original: '{"kind":"ClusterRole","rules":[{"verbs":["create"],"apiGroups":["authentication.k8s.io"],"resources":["tokenreviews"]},{"verbs":["create"],"apiGroups":["authorization.k8s.io"],"resources":["subjectaccessreviews"]}],"metadata":{"name":"rafay:proxy-role","labels":{"rep-drift-reconcillation":"enabled"},"annotations":{"rep-drift-action":"deny"}},"apiVersion":"rbac.authorization.k8s.io/v1"}'
rep-drift-action: deny
labels:
rep-drift-reconcillation: enabled
name: rafay:proxy-role
rules:
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
namespaceMeta:
annotations:
rep-drift-action: deny
role: rafay-system
creationTimestamp: null
labels:
control-plane: controller-manager
rafay.dev/global: "true"
rafay.dev/modified-sa: "true"
rafay.dev/psp: rafay-privileged-psp
rafay.dev/system: "true"
rep-drift-reconcillation: enabled
role: rafay-system
name: rafay-system
postCreate:
- name: create-system-sa-serviceaccount
object:
apiVersion: v1
kind: ServiceAccount
metadata:
annotations:
rafay.dev/original: '{"kind":"ServiceAccount","metadata":{"name":"system-sa","namespace":"rafay-system","labels":{"rep-drift-reconcillation":"enabled"},"annotations":{"rep-drift-action":"deny"}},"apiVersion":"v1"}'
rep-drift-action: deny
labels:
rep-drift-reconcillation: enabled
name: system-sa
namespace: rafay-system
- name: create-leader-election-role
object:
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
annotations:
rafay.dev/original: '{"kind":"Role","rules":[{"verbs":["get","list","watch","create","update","patch","delete"],"apiGroups":[""],"resources":["configmaps"]},{"verbs":["get","update","patch"],"apiGroups":[""],"resources":["configmaps/status"]},{"verbs":["create"],"apiGroups":[""],"resources":["events"]}],"metadata":{"name":"rafay:leader-election-role","namespace":"rafay-system","labels":{"rep-drift-reconcillation":"enabled"},"annotations":{"rep-drift-action":"deny"}},"apiVersion":"rbac.authorization.k8s.io/v1"}'
rep-drift-action: deny
labels:
rep-drift-reconcillation: enabled
name: rafay:leader-election-role
namespace: rafay-system
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- configmaps/status
verbs:
- get
- update
- patch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- name: create-leaderelection-role-binding
object:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
annotations:
rafay.dev/original: '{"kind":"RoleBinding","roleRef":{"kind":"Role","name":"rafay:leader-election-role","apiGroup":"rbac.authorization.k8s.io"},"metadata":{"name":"rafay:leader-election-rolebinding","namespace":"rafay-system","labels":{"rep-drift-reconcillation":"enabled"},"annotations":{"rep-drift-action":"deny"}},"subjects":[{"kind":"ServiceAccount","name":"system-sa","namespace":"rafay-system"},{"kind":"ServiceAccount","name":"default","namespace":"rafay-system"}],"apiVersion":"rbac.authorization.k8s.io/v1"}'
rep-drift-action: deny
labels:
rep-drift-reconcillation: enabled
name: rafay:leader-election-rolebinding
namespace: rafay-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: rafay:leader-election-role
subjects:
- kind: ServiceAccount
name: system-sa
namespace: rafay-system
- kind: ServiceAccount
name: default
namespace: rafay-system
- name: create-manager-role-binding
object:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
rafay.dev/original: '{"kind":"ClusterRoleBinding","roleRef":{"kind":"ClusterRole","name":"rafay:manager","apiGroup":"rbac.authorization.k8s.io"},"metadata":{"name":"rafay:rafay-system:manager-rolebinding","labels":{"rep-drift-reconcillation":"enabled"},"annotations":{"rep-drift-action":"deny"}},"subjects":[{"kind":"ServiceAccount","name":"system-sa","namespace":"rafay-system"},{"kind":"ServiceAccount","name":"default","namespace":"rafay-system"}],"apiVersion":"rbac.authorization.k8s.io/v1"}'
rep-drift-action: deny
labels:
rep-drift-reconcillation: enabled
name: rafay:rafay-system:manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: rafay:manager
subjects:
- kind: ServiceAccount
name: system-sa
namespace: rafay-system
- kind: ServiceAccount
name: default
namespace: rafay-system
- name: create-proxy-role-binding
object:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
rafay.dev/original: '{"kind":"ClusterRoleBinding","roleRef":{"kind":"ClusterRole","name":"rafay:proxy-role","apiGroup":"rbac.authorization.k8s.io"},"metadata":{"name":"rafay:rafay-system:proxy-rolebinding","labels":{"rep-drift-reconcillation":"enabled"},"annotations":{"rep-drift-action":"deny"}},"subjects":[{"kind":"ServiceAccount","name":"system-sa","namespace":"rafay-system"},{"kind":"ServiceAccount","name":"default","namespace":"rafay-system"}],"apiVersion":"rbac.authorization.k8s.io/v1"}'
rep-drift-action: deny
labels:
rep-drift-reconcillation: enabled
name: rafay:rafay-system:proxy-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: rafay:proxy-role
subjects:
- kind: ServiceAccount
name: system-sa
namespace: rafay-system
- kind: ServiceAccount
name: default
namespace: rafay-system
- name: create-access-log-configmap_v2_1
object:
apiVersion: v1
data:
fluent.conf: |
<match kube.rafay-system.ingress-nginx-controller**>
@type forward
require_ack_response true
ack_response_timeout 190
<buffer>
@type memory
flush_mode interval
retry_type exponential_backoff
flush_thread_count 2
flush_interval 60s
retry_forever false
retry_max_interval 1h
retry_timeout 32h
retry_max_times 17
retry_randomize true
chunk_limit_size 5M
queue_limit_length 8
overflow_action block
</buffer>
<server>
host log-aggregator.rafay-infra.svc.cluster.local
port 24224
</server>
</match>
kind: ConfigMap
metadata:
annotations:
rafay.dev/original: '{"data":{"fluent.conf":"<match kube.rafay-system.ingress-nginx-controller**>\n @type
forward\n require_ack_response true\n ack_response_timeout 190\n <buffer>\n @type
memory\n flush_mode interval\n retry_type exponential_backoff\n flush_thread_count
2\n flush_interval 60s\n retry_forever false\n retry_max_interval
1h\n retry_timeout 32h\n retry_max_times 17\n retry_randomize
true\n chunk_limit_size 5M\n queue_limit_length 8\n overflow_action
block\n </buffer>\n <server>\n host log-aggregator.rafay-infra.svc.cluster.local\n port
24224\n </server>\n</match>\n"},"kind":"ConfigMap","metadata":{"name":"rafay-ingress-log-config","labels":{"logger":"rafay-logger","rep-drift-reconcillation":"enabled"},"namespace":"rafay-system","annotations":{"rep-drift-action":"deny"}},"apiVersion":"v1"}'
rep-drift-action: deny
labels:
logger: rafay-logger
rep-drift-reconcillation: enabled
name: rafay-ingress-log-config
namespace: rafay-system
status:
conditions:
- lastUpdateTime: "2021-09-15T05:00:18Z"
reason: all steps complete
status: Complete
type: NamespaceInit
- lastUpdateTime: "2021-09-15T05:00:18Z"
reason: namespace created
status: Complete
type: NamespaceCreate
- lastUpdateTime: "2021-09-15T05:00:18Z"
reason: all steps complete
status: Complete
type: NamespacePostCreate
- lastUpdateTime: "2021-09-15T05:00:18Z"
reason: all steps complete
status: Complete
type: NamespaceReady
init:
- jobReason: not configured
jobState: StepJobComplete
name: create-manager-cluster-role
objectReason: object type *v1.ClusterRole not handled
objectRef:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
name: rafay:manager
resourceVersion: "1258"
uid: 855e1d07-8a75-47be-9e98-d03810f634a6
objectSpecHash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
objectState: StepObjectComplete
reason: complete
state: StepComplete
- jobReason: not configured
jobState: StepJobComplete
name: create-proxy-cluster-role
objectReason: object type *v1.ClusterRole not handled
objectRef:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
name: rafay:proxy-role
resourceVersion: "1259"
uid: abf1cc60-8f9a-4fad-be5d-5551fc6c236a
objectSpecHash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
objectState: StepObjectComplete
reason: complete
state: StepComplete
namespaceRef:
apiVersion: v1
kind: Namespace
name: rafay-system
resourceVersion: "1262"
uid: 574a3611-2ab8-436f-999a-f463360e5d3d
observedGeneration: 1
postCreate:
- jobReason: not configured
jobState: StepJobComplete
name: create-system-sa-serviceaccount
objectReason: object type *v1.ServiceAccount not handled
objectRef:
apiVersion: v1
kind: ServiceAccount
name: system-sa
namespace: rafay-system
resourceVersion: "1265"
uid: f1981c17-775d-4138-8633-776ad49fb586
objectSpecHash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
objectState: StepObjectComplete
reason: complete
state: StepComplete
- jobReason: not configured
jobState: StepJobComplete
name: create-leader-election-role
objectReason: object type *v1.Role not handled
objectRef:
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
name: rafay:leader-election-role
namespace: rafay-system
resourceVersion: "1266"
uid: 3afaf464-0b94-4116-9bcc-93a4978174c6
objectSpecHash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
objectState: StepObjectComplete
reason: complete
state: StepComplete
- jobReason: not configured
jobState: StepJobComplete
name: create-leaderelection-role-binding
objectReason: object type *v1.RoleBinding not handled
objectRef:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
name: rafay:leader-election-rolebinding
namespace: rafay-system
resourceVersion: "1267"
uid: 12551dfd-7143-4e83-a0a6-0c4ab1e1d4fe
objectSpecHash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
objectState: StepObjectComplete
reason: complete
state: StepComplete
- jobReason: not configured
jobState: StepJobComplete
name: create-manager-role-binding
objectReason: object type *v1.ClusterRoleBinding not handled
objectRef:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
name: rafay:rafay-system:manager-rolebinding
resourceVersion: "1268"
uid: 2fe8a87a-d571-4997-b22e-a6da5bdcbe49
objectSpecHash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
objectState: StepObjectComplete
reason: complete
state: StepComplete
- jobReason: not configured
jobState: StepJobComplete
name: create-proxy-role-binding
objectReason: object type *v1.ClusterRoleBinding not handled
objectRef:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
name: rafay:rafay-system:proxy-rolebinding
resourceVersion: "1269"
uid: 7f3c4c02-cd90-40c0-8663-5f156c50e6c3
objectSpecHash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
objectState: StepObjectComplete
reason: complete
state: StepComplete
- jobReason: not configured
jobState: StepJobComplete
name: create-access-log-configmap_v2_1
objectReason: object type *v1.ConfigMap not handled
objectRef:
apiVersion: v1
kind: ConfigMap
name: rafay-ingress-log-config
namespace: rafay-system
resourceVersion: "1270"
uid: e86e3ea0-a3b2-4187-b552-c18e5f6ca30f
objectSpecHash: d26d566c010b3b8a7dde8ef1a406a961c8839d60951b08cbd8d34c1c885c6cd2
objectState: StepObjectComplete
reason: complete
state: StepComplete
+55
View File
@@ -0,0 +1,55 @@
apiVersion: v1
kind: Service
metadata:
annotations:
rafay.dev/original: '{"kind": "Service", "spec": {"type": "ClusterIP", "ports":
[{"name": "log-aggregator-tcp", "port": 8888, "nodePort": null, "protocol":
"TCP", "targetPort": 8888}, {"name": "log-aggregator-udp", "port": 5140, "nodePort":
null, "protocol": "UDP", "targetPort": 5140}, {"name": "log-aggregator-fwd",
"port": 24224, "nodePort": null, "protocol": "TCP", "targetPort": 24224}, {"name":
"prometheus", "port": 24231, "nodePort": null, "protocol": "TCP", "targetPort":
24231}], "selector": {"app": "log-aggregator"}}, "metadata": {"name": "log-aggregator",
"namespace": "rafay-infra", "annotations": {"rafay.dev/previous": "{\"kind\":
\"Service\", \"spec\": {\"type\": \"ClusterIP\", \"ports\": [{\"name\": \"log-aggregator-tcp\",
\"port\": 8888, \"protocol\": \"TCP\", \"targetPort\": 8888}, {\"name\": \"log-aggregator-udp\",
\"port\": 5140, \"protocol\": \"UDP\", \"targetPort\": 5140}, {\"name\": \"log-aggregator-fwd\",
\"port\": 24224, \"protocol\": \"TCP\", \"targetPort\": 24224}, {\"name\": \"prometheus\",
\"port\": 24231, \"protocol\": \"TCP\", \"targetPort\": 24231}], \"selector\":
{\"app\": \"log-aggregator\"}}, \"metadata\": {\"name\": \"log-aggregator\",
\"namespace\": \"rafay-infra\"}, \"apiVersion\": \"v1\"}"}}, "apiVersion": "v1"}'
creationTimestamp: "2020-02-12T21:49:41Z"
name: log-aggregator
namespace: default
resourceVersion: "341295"
selfLink: /api/v1/namespaces/default/services/log-aggregator
uid: 0c1409f9-eed0-4f1d-9c29-128540ee6db4
spec:
clusterIP: 10.43.88.175
externalTrafficPolicy: Cluster
ports:
- name: log-aggregator-tcp
nodePort: 31285
port: 8888
protocol: TCP
targetPort: 8888
- name: log-aggregator-udp
nodePort: 32198
port: 5140
protocol: UDP
targetPort: 5140
- name: log-aggregator-fwd
nodePort: 30669
port: 24224
protocol: TCP
targetPort: 24224
- name: prometheus
nodePort: 30320
port: 24231
protocol: TCP
targetPort: 24231
selector:
app: log-aggregator
sessionAffinity: None
type: NodePort
status:
loadBalancer: {}
+48
View File
@@ -0,0 +1,48 @@
apiVersion: v1
kind: Service
metadata:
name: log-aggregator
namespace: default
spec:
ports:
- name: log-aggregator-tcp
nodePort: 0
port: 8888
protocol: TCP
targetPort: 8888
- name: log-aggregator-udp
nodePort: 0
port: 5140
protocol: UDP
targetPort: 5140
- name: log-aggregator-fwd
nodePort: 0
port: 24224
protocol: TCP
targetPort: 24224
- name: prometheus
nodePort: 0
port: 24231
protocol: TCP
targetPort: 24231
selector:
app: log-aggregator
+30
View File
@@ -0,0 +1,30 @@
apiVersion: v1
kind: Service
metadata:
annotations:
rafay.dev/original: |
{"apiVersion":"v1","kind":"Service","metadata":{"annotations":{"service.beta.kubernetes.io/aws-load-balancer-internal":"0.0.0.0/0"},"name":"device-manager-service","namespace":"default"},"spec":{"ports":[{"name":"grpc","port":55050}],"selector":{"app":"device-manager-service"},"type":"LoadBalancer"}}
service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
creationTimestamp: "2020-02-12T23:52:46Z"
name: device-manager-service
namespace: default
resourceVersion: "346679"
selfLink: /api/v1/namespaces/default/services/device-manager-service
uid: a8125b03-c881-4940-95be-fa3fd1e9555b
spec:
clusterIP: 10.43.163.228
externalTrafficPolicy: Cluster
ports:
- name: grpc
nodePort: 31963
port: 55050
protocol: TCP
targetPort: 55050
selector:
app: device-manager-service
sessionAffinity: None
type: LoadBalancer
status:
loadBalancer:
ingress:
- ip: 172.18.0.2
+14
View File
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: device-manager-service
namespace: default
spec:
ports:
- name: grpc
port: 55050
nodePort: 0
selector:
app: device-manager-service
#type: ClusterIP
+34
View File
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
rafay.dev/overridedBy: global/global-override
name: rafay-connector
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: rafay-connector
serviceName: "connector"
template:
metadata:
labels:
app: rafay-connector
spec:
containers:
- image: rafaysystems/rafay-connector:latest
imagePullPolicy: Always
name: connector
resources: {}
volumeMounts:
- mountPath: /etc/config
name: connector-config
priorityClassName: rafay-cluster-critical
terminationGracePeriodSeconds: 10
volumes:
- configMap:
name: connector-config
name: connector-config
status:
replicas: 0
+56
View File
@@ -0,0 +1,56 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"apps/v1","kind":"StatefulSet","metadata":{"annotations":{},"name":"rafay-connector","namespace":"rafay-system"},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"rafay-connector"}},"serviceName":"connector","template":{"metadata":{"labels":{"app":"rafay-connector"}},"spec":{"containers":[{"image":"rafaysystems/rafay-connector:latest","name":"connector","volumeMounts":[{"mountPath":"/etc/config","name":"connector-config"}]}],"priorityClassName":"rafay-cluster-critical","terminationGracePeriodSeconds":10,"volumes":[{"configMap":{"name":"connector-config"},"name":"connector-config"}]}}}}
name: rafay-connector
namespace: default
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: rafay-connector
serviceName: connector
template:
metadata:
creationTimestamp: null
labels:
app: rafay-connector
spec:
containers:
- image: rafaysystems/rafay-connector:latest
imagePullPolicy: Always
name: connector
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/config
name: connector-config
dnsPolicy: ClusterFirst
priorityClassName: rafay-cluster-critical
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 10
volumes:
- configMap:
defaultMode: 420
name: connector-config
name: connector-config
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
status:
collisionCount: 0
currentReplicas: 1
currentRevision: rafay-connector-568bcd85cb
observedGeneration: 1
readyReplicas: 1
replicas: 1
updateRevision: rafay-connector-568bcd85cb
updatedReplicas: 1