Ver Fonte

fixed netclient

afeiszli há 4 anos atrás
pai
commit
36091d78a0

+ 1 - 0
Dockerfile-netclient

@@ -21,6 +21,7 @@ WORKDIR /root/
 COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
 
 COPY --from=builder /app/netclient/netclient .
+COPY --from=builder /app/netclient/netclient /usr/local/bin/
 
 CMD ["./netclient"]
 

BIN
docs/images/blue-turtle.png


+ 12 - 13
kube/netclient-daemonset.yaml

@@ -8,7 +8,6 @@ spec:
   selector:
     matchLabels:
       app: netclient
-  replicas: 1
   template:
     metadata:
       labels:
@@ -17,7 +16,7 @@ spec:
       hostNetwork: true
       containers:
       - name: netclient
-        image: gravitl/netclient:v0.7.2
+        image: gravitl/netclient:v0.7.2-hotfix
         command: ['bash', '-c', "netclient checkin -n $NETWORK; sleep $SLEEP"]
         env:
         - name: ACCESS_TOKEN
@@ -25,7 +24,7 @@ spec:
         - name: NETWORK
           value: "YYYY"
         - name: SLEEP
-          value: 30
+          value: "20"
         volumeMounts:
         - mountPath: /etc/netclient
           name: etc-netclient
@@ -35,7 +34,7 @@ spec:
           privileged: true
       initContainers:
       - name: netclient-join
-        image: gravitl/netclient:v0.7.2
+        image: gravitl/netclient:v0.7.2-hotfix
         command: ['bash', '-c', "netclient join -t $ACCESS_TOKEN --daemon off"]
         env:
         - name: ACCESS_TOKEN
@@ -47,12 +46,12 @@ spec:
           name: wg
         securityContext:
           privileged: true
-  volumes:
-  - hostPath:
-      path: /etc/netclient
-      type: DirectoryOrCreate
-    name: etc-netclient
-  - hostPath:
-      path: /usr/bin/wg
-      type: File
-    name: wg
+      volumes:
+      - hostPath:
+          path: /etc/netclient
+          type: DirectoryOrCreate
+        name: etc-netclient
+      - hostPath:
+          path: /usr/bin/wg
+          type: File
+        name: wg

BIN
netclient/netclient-32


BIN
netmaker-arm