/k8s-deployment

Generate Kubernetes deployment files for my legacy

Primary LanguageShell

K8s Deployment

- depl/
  - {app_name}.yaml
- essential/
  - cert-manager.yaml      # cert-manager
  - cluster-issuer.yaml    # cloudflare dns & letsencrypt
  - https-secret.yaml      # wildcard certificate
  - reflector.yaml         # copy cert to specific namespace
  - env-resource.yaml      # namespace
  - nginx-ingress.yaml     # traffic entrance & network rules

Create nginx-ingress dashboard in Grafana

  1. Specify target_ip in prometheus.yaml
  2. Launch Prometheus and Grafana
    cd prom; docker-compose up -d
  3. In Grafana add Prometheus data source
    HTTP
    URL http://kubernetes.docker.internal:9090
    
  4. Import nginx-ingress dashboard