mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-11 03:39:26 +00:00
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: spoke-agent
|
|
labels:
|
|
app: spoke-agent
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: spoke-agent
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: spoke-agent
|
|
spec:
|
|
serviceAccountName: spoke-agent-sa
|
|
containers:
|
|
- name: spoke-agent
|
|
image: quay.io/open-cluster-management/registration:latest
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- "/registration"
|
|
- "agent"
|
|
- "--cluster-name=local-development"
|
|
- "--bootstrap-kubeconfig=/spoke/bootstrap/kubeconfig"
|
|
volumeMounts:
|
|
- name: bootstrap-secret
|
|
mountPath: "/spoke/bootstrap"
|
|
readOnly: true
|
|
- name: hub-kubeconfig-secret
|
|
mountPath: "/spoke/hub-kubeconfig"
|
|
readOnly: true
|
|
volumes:
|
|
- name: bootstrap-secret
|
|
secret:
|
|
secretName: bootstrap-secret
|
|
- name: hub-kubeconfig-secret
|
|
secret:
|
|
secretName: hub-kubeconfig-secret
|