Skip to content

Commit

Permalink
Merge pull request #42 from 00pf00/site-manager-restart
Browse files Browse the repository at this point in the history
fix(site-manager): Solve the problem that nodeunit is reset after sit…
  • Loading branch information
00pf00 authored Mar 17, 2023
2 parents 4036a04 + da2d4ad commit 8d97e66
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pkg/edgeadm/constant/manifests/site-manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ subjects:
name: site-manager-service-account
namespace: {{.Namespace}}
---
apiVersion: v1
data:
webhook_server.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMrVENDQWVHZ0F3SUJBZ0lVTC9TTjJOVlBDWS9yZVJOSFBleGgvZzBSaWVZd0RRWUpLb1pJaHZjTkFRRUwKQlFBd0ZURVRNQkVHQTFVRUF4TUthM1ZpWlhKdVpYUmxjekFlRncweU16QXpNVFl3T1RJMk1UVmFGdzB5TkRBegpNVFV3T1RJMk1UVmFNQmN4RlRBVEJnTlZCQU1NREhOcGRHVXRiV0Z1WVdkbGNqQ0NBU0l3RFFZSktvWklodmNOCkFRRUJCUUFEZ2dFUEFEQ0NBUW9DZ2dFQkFNSCtvLy9GMzRsSmFvMUcyd1dGZ2IvZGRLb0lOaDlSVUtDWnZMWGkKaUtORlpmMnlJcFFKbFc2UUhYWHdNVFBQdkNpbkxHUm10YzRGaFlQN0E5YUREdEdjNDIvSUErN2Q5Yk9KekJRQQpqaW9kTmszK0lvbFg1NFVLT2VSUDNDZWZNTFFSSWJpTmJrTkd0RlNPcGpIZzQ3T0JIMFZXNjJreEdJZmdLK0llCjdDY0hkU2doQ1AyREM2cW92ZjRvTjJLdHRySlNzenVBaFpQWUhJQ0FJUWMzYU1ha3JyUjVLRjNqU1VtajhNOGQKWCtqajFnQzRZUnVDbEFhb2ZDVzJJczFkZFZUb0NhSGNlTzA4RE1razRtdkdLVWsyM2x3S3hwUlRKOVNNQTNKOQpaVFhjeit2aWtZaEI2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Hg2anN6OGNyU0cvblBrRGJoUlk0CmRoUUlsbFg0MWEvaHE0cHA4RXJ6Yy9HMXdZSE9iQW1mYmswOWdVMENnWUJFNjRGV0F6eVl5azZZdVNibEJHWjEKbVVFZUt0NWNuL1RPbS9ja3U2TWlJTkxTcUJDa0dZc2hFN2t2Mk5icFhzMHBBbFJ3VWRjcmRyVkIxLzhFOW9hdAorOU9PQ3VCdkY2S3ZBRUsxcnhZSURYeVN6ZjdkMnZBb3UweW9vbXlYTEtVRFNEbkFTNjA2VHlGS3poTWtlK2MrCjhMNm51TjJ3Nmc5bEhNZXFEcnY0d1FLQmdERTF1ZkQ1TnBPeWRzUDMvNzE0N0djWlpiSC9rbm9uRkUvZDBYQWsKL0ZpZUJ2NUl4bFJESVhlaXlYTDZ3TnlKL1ZLMmswR0dyVExXL0ZuNThBQXZtNXlZeGlWbEVOb2I1MmF0N1kwUApUOFd3UkI5eXlXWG1HNzFoR1E5OWorWEsyWDFRb3ZSR3VRTlkwWEk1WTVTTVMrdXYwL0NFQUEydGhYcy9Ga0xzCkF2TGxBb0dCQU5ZeThPVjkzMmRSUDg1YThKeC9aOGNDYXNROEJIVVVTUitpM21zR3hCTlFXTWEvQ3BCRTFpK0wKZ3orOGdZbytMT0dCcmZNQXVKZS9xbWhGK3gwblZEbXVhNVBZaXFvR01QaFlQV2VLV05NQTdMTzhXRnN0UktTRwplMVNZL3dtdXVuUFVVYmd3S0R1LzRpL0ZBWFJpMzFsT2tJZGNNa2d2ODRrN0tUYVBaTHB3Ci0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg==
kind: Secret
metadata:
name: site-manager-cert
namespace: {{.Namespace}}
type: Opaque
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -88,6 +98,11 @@ spec:
spec:
containers:
- name: site-manager
env:
- name: CONVERT_WEBHOOK_SERVER
value: https://site-manager.edge-system.svc.cluster.local:9000/v1
- name: CA_CRT
value: LS0tLS1CRUdJTiBDRVJUSUZJ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rK1JrZ2JIMGx1Mm02bUUzRHVBYkhva1IzMFNHTjNkbUwyV01jTGpPQkRrZVg2UUh2RTcyOWNBSFo1clBtQ2QKUEVoc2l0djFWaEdLVWtESFVieVA0N295U2s1bU9aZ25KcmtZTThaK25xZnJCVS9GYmE5eDRXUzBVREJGRzlXSQo3eGJNd2VLR24rR0EydU1XNHBsNUhCK1JqNHlucHh4cEdxaGR2Rk51c2luc0I5U0xsR25YZ0tFdjJSREpNZ3RBClhrWElFNlF2YlZ6RkVSUXlOb2I5TFNpaWgrbTRKTU8rV01Pak1vREIvQ3BHOWFBekVEOHUvSllHa0xFSnArRVIKQlFJPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0t
image: {{.SiteManagerImage}}
imagePullPolicy: Always
command:
Expand All @@ -100,6 +115,9 @@ spec:
requests:
cpu: 10m
memory: 20Mi
volumeMounts:
- mountPath: /etc/site-manager/certs
name: certs
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
securityContext:
Expand All @@ -113,4 +131,8 @@ spec:
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
volumes:
- name: certs
secret:
secretName: site-manager-cert
`

0 comments on commit 8d97e66

Please sign in to comment.