add manifest and update instructions md
This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: asyncapi
|
||||||
|
name: asyncapi-deployment
|
||||||
|
namespace: asyncapi
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: asyncapi
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: asyncapi
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: asyncapi
|
||||||
|
image: iitaks.azurecr.io/asyncapi:1.2
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: asyncapi-service
|
||||||
|
namespace: asyncapi
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: asyncapi
|
||||||
|
type: NodePort
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
@@ -152,6 +152,17 @@ When the instance is ready, shell into the instance with `multipass shell worker
|
|||||||
```bash
|
```bash
|
||||||
sudo kubeadm join --token <token> <control-plane-host>:<control-plane-port> --discovery-token-ca-cert-hash sha256:<hash>
|
sudo kubeadm join --token <token> <control-plane-host>:<control-plane-port> --discovery-token-ca-cert-hash sha256:<hash>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Important]
|
||||||
|
To get the exact information for the join run
|
||||||
|
```bash
|
||||||
|
multipass shell <controlplane-name>
|
||||||
|
```
|
||||||
|
When inside, run
|
||||||
|
```bash
|
||||||
|
sudo kubeadm token create --print-join-command
|
||||||
|
```
|
||||||
|
|
||||||
The information/token was generated with the kubeadm init command.
|
The information/token was generated with the kubeadm init command.
|
||||||
If you need to recover the information, shell into `multipass shell cp1`
|
If you need to recover the information, shell into `multipass shell cp1`
|
||||||
and run
|
and run
|
||||||
|
|||||||
Reference in New Issue
Block a user