adding yemplates

This commit is contained in:
afeiszli 2021-08-19 16:52:24 -04:00
parent 8056f024e2
commit 38eb68995a
4 changed files with 13 additions and 58 deletions

View file

@ -103,7 +103,7 @@ Make sure firewall settings are appropriate for Netmaker. You need ports 53 and
.. code-block::
sudo ufw allow proto tcp from any to any port 443 && sudo ufw allow dns
sudo ufw allow proto tcp from any to any port 443 && sudo ufw allow 53/udp
**Based on your cloud provider, you may also need to set inbound security rules for your server. This will be dependent on your cloud provider. Be sure to check before moving on:**
- allow 443/tcp from all

View file

@ -17,13 +17,13 @@ spec:
hostNetwork: true
containers:
- name: netclient
image: gravitl/netclient:v0.7
image: gravitl/netclient:v0.7.2
command: ['bash', '-c', "netclient checkin -n $NETWORK; sleep $SLEEP"]
env:
- name: ACCESS_TOKEN
value: "XXXX"
- name: NETWORK
value: "default"
value: "YYYY"
- name: SLEEP
value: 30
volumeMounts:
@ -35,7 +35,7 @@ spec:
privileged: true
initContainers:
- name: netclient-join
image: gravitl/netclient:v0.7
image: gravitl/netclient:v0.7.2
command: ['bash', '-c', "netclient join -t $ACCESS_TOKEN --daemon off"]
env:
- name: ACCESS_TOKEN

View file

@ -55,9 +55,9 @@ spec:
privileged: true
env:
- name: SERVER_API_CONN_STRING
value: "api.netmaker.goallclouds.com:80"
value: "api.NETMAKER_BASE_DOMAIN:443"
- name: SERVER_GRPC_CONN_STRING
value: "grpc.netmaker.goallclouds.com:80"
value: "grpc.NETMAKER_BASE_DOMAIN:443"
- name: COREDNS_ADDR
value: "10.152.183.53"
- name: POD_IP
@ -67,9 +67,9 @@ spec:
- name: GRPC_SSL
value: "on"
- name: SERVER_HTTP_HOST
value: "api.netmaker.goallclouds.com:443"
value: "api.NETMAKER_BASE_DOMAIN:443"
- name: SERVER_GRPC_HOST
value: "grpc.netmaker.goallclouds.com:443"
value: "grpc.NETMAKER_BASE_DOMAIN:443"
- name: API_PORT
value: "8081"
- name: GRPC_PORT

View file

@ -17,8 +17,6 @@ metadata:
labels:
app: netmaker-backend
spec:
nodeSelector:
netmaker-server: true
selector:
matchLabels:
app: netmaker-backend
@ -36,28 +34,13 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 8081
volumeMounts:
- name: nm-pvc
mountPath: /root/config/dnsconfig
- mountPath: /etc/netclient
name: etc-netclient
- mountPath: /usr/bin/wg
name: wg
- mountPath: /var/run/dbus/system_bus_socket
name: systemd-bus-socket
- mountPath: /sys/fs/cgroup
name: cgroup
- mountPath: /run/systemd/system
name: run-systemd
- mountPath: /etc/systemd/system
name: etc-systemd
securityContext:
privileged: true
env:
- name: SERVER_API_CONN_STRING
value: "api.netmaker.goallclouds.com:80"
value: "api.NETMAKER_BASE_DOMAIN:443"
- name: SERVER_GRPC_CONN_STRING
value: "grpc.netmaker.goallclouds.com:80"
value: "grpc.NETMAKER_BASE_DOMAIN:443"
- name: COREDNS_ADDR
value: "10.152.183.53"
- name: POD_IP
@ -67,13 +50,13 @@ spec:
- name: GRPC_SSL
value: "on"
- name: SERVER_HTTP_HOST
value: "api.netmaker.goallclouds.com:443"
value: "api.NETMAKER_BASE_DOMAIN"
- name: SERVER_GRPC_HOST
value: "grpc.netmaker.goallclouds.com:443"
value: "grpc.NETMAKER_BASE_DOMAIN"
- name: API_PORT
value: "8081"
- name: GRPC_PORT
value: "443"
value: "80"
- name: CLIENT_MODE
value: "off"
- name: MASTER_KEY
@ -97,34 +80,6 @@ spec:
- name: nm-pvc
persistentVolumeClaim:
claimName: nm-pvc
- hostPath:
path: /etc/netclient
type: DirectoryOrCreate
name: etc-netclient
- hostPath:
path: /usr/bin/wg
type: File
name: wg
- hostPath:
path: /usr/bin/resolvectl
type: File
name: resolvectl
- hostPath:
path: /var/run/dbus/system_bus_socket
type: ""
name: systemd-bus-socket
- hostPath:
path: /etc/systemd/system
type: ""
name: etc-systemd
- hostPath:
path: /run/systemd/system
type: ""
name: run-systemd
- hostPath:
path: /sys/fs/cgroup
type: ""
name: cgroup
---
apiVersion: v1
kind: PersistentVolumeClaim