Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
huiwq1990 committed Mar 2, 2022
1 parent acbc77b commit 9734ccb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod readonly -a -o apiserve
##Build ui
FROM node:14.17.6-alpine3.14 as build-ui

RUN apk update && apk add bash
#RUN apk update && apk add bash

WORKDIR /workspace

Expand All @@ -29,6 +29,9 @@ WORKDIR /openyurt/backend/
COPY --from=builder /workspace/config config
COPY --from=builder /workspace/apiserver .
COPY --from=builder /workspace/scripts/pod_start.sh pod_start.sh
RUN chmod +x pod_start.sh
RUN chmod +x apiserver

COPY --from=build-ui /workspace/build ../../frontend/build

CMD [ "sh", "-c", "./pod_start.sh"]
2 changes: 1 addition & 1 deletion backend/scripts/pod_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ users:
- name: default-user
user:
token: ${token}
" > kubeconfig.conf
" > /openyurt/config/kubeconfig.conf

cd /openyurt/backend/
./apiserver
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: controller-manager
name: yurt-user-controller-system
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: yurt-user-controller-controller-manager
namespace: yurt-user-controller-system
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
control-plane: controller-manager
name: yurt-user-controller-controller-manager
namespace: yurt-user-controller-system
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -44,8 +42,8 @@ spec:
- --user-valid-period=7
command:
- /manager
image: openyurt/yurt-user-controller:test
imagePullPolicy: IfNotPresent
image: "{{ .Values.usercontroller.image.repository }}:{{ .Values.usercontroller.image.tag }}"
imagePullPolicy: {{ .Values.usercontroller.image.pullPolicy }}
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -80,7 +78,7 @@ metadata:
subjects:
- kind: ServiceAccount
name: yurt-user-controller-controller-manager
namespace: yurt-user-controller-system
namespace: {{ .Release.Namespace | quote }}
roleRef:
kind: ClusterRole
name: cluster-admin
Expand Down
7 changes: 7 additions & 0 deletions charts/yurt-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

imagePullSecrets: []
replicaCount: 1

image:
Expand All @@ -14,3 +15,9 @@ service:
ingress:
host: dashboard.yurt.local

usercontroller:
image:
repository: openyurt/yurt-dashboard
pullPolicy: IfNotPresent
tag: 0.0.6

0 comments on commit 9734ccb

Please # to comment.