22 lines
815 B
Bash
22 lines
815 B
Bash
#!/bin/sh
|
|
|
|
alias kubectl="microk8s kubectl" # MicroK8S fix
|
|
|
|
# Install plugins
|
|
microk8s enable dns
|
|
# microk8s enable ingress
|
|
# microk8s enable storage
|
|
# microk8s enable helm3
|
|
# microk8s enable metallb:10.64.0.100-10.64.0.200
|
|
|
|
# API Gateway CRDs
|
|
kubectl apply --server-side -f https://github.com/kubernetes-sigs/gateway-api/releases/latest/download/standard-install.yaml
|
|
kubectl apply --server-side -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.0.0/webhook-install.yaml
|
|
|
|
# Create ca root tls secret
|
|
kubectl create secret generic ca-root --from-file=ca-root.crt=deploy/certs/ca-root/ca-root.crt -n egommerce
|
|
|
|
# Create api-gateway tls secret
|
|
kubectl create secret tls api-gateway-cert --cert=deploy/certs/api-gateway/api-gateway.crt --key=deploy/certs/api-gateway/api-gateway.key -n egommerce
|
|
|