This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1beta2 | |
kind: Deployment | |
metadata: | |
name: nginx | |
spec: | |
selector: | |
matchLabels: | |
app: nginx | |
replicas: 2 | |
template: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
namespace: metallb-system | |
name: config | |
data: | |
config: | | |
address-pools: | |
- name: default | |
protocol: layer2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
docker rm -f $(docker ps -qa) | |
docker volume rm $(docker volume ls -q) | |
cleanupdirs="/etc/ceph* /etc/cni* /etc/kubernetes* /opt/cni* /opt/rke* /run/secrets/kubernetes.io* /run/calico* /run/flannel* /var/lib/calico* /var/lib/etcd* /var/lib/cni* /var/lib/kubelet* /var/lib/rancher/rke/log* /var/log/containers* /var/log/kube-audit* /var/log/pods* /var/run/calico*" | |
for dir in $cleanupdirs; do | |
echo "Removing $dir" | |
rm -Rf $dir | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
rancher: | |
container_name: rancher | |
restart: always | |
image: rancher/rancher:v2.4.4 | |
networks: | |
- traefik | |
labels: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes auto; | |
pid /tmp/nginx.pid; | |
events { | |
worker_connections 1024; | |
use epoll; | |
multi_accept on; | |
} | |
http { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Step 4]: starting Harbor ... | |
Creating network "harbor_harbor" with the default driver | |
Creating network "harbor_harbor-chartmuseum" with the default driver | |
Creating harbor-log ... done | |
Creating harbor-portal ... done | |
Creating registryctl ... done | |
Creating harbor-db ... done | |
Creating redis ... done | |
Creating chartmuseum ... done | |
Creating registry ... done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration file of Harbor | |
# The IP address or hostname to access admin UI and registry service. | |
# DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients. | |
hostname: reg.mydomain.com | |
# http related config | |
http: | |
# port for http, default is 80. If https enabled, this port will redirect to https port | |
port: 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
labels: | |
# Dynamic configuration with Docker Labels | |
# Ref: https://docs.traefik.io/reference/dynamic-configuration/docker/ | |
- "traefik.enable=true" | |
- "traefik.http.routers.gitlab.entrypoints=web" | |
- "traefik.http.routers.gitlab.rule=Host(`gitlab.domain.com`)" | |
- "traefik.http.routers.gitlab.service=gitlab" | |
- "traefik.http.services.gitlab.loadbalancer.server.port=80" | |
- "traefik.http.routers.gitlab-registry.entrypoints=web" | |
- "traefik.http.routers.gitlab-registry.rule=Host(`registry.domain.com`)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
# The reverse proxy service (Traefik) | |
reverse-proxy: | |
# The official v2.2 Traefik docker image | |
image: "traefik:v2.2" | |
container_name: traefik | |
restart: unless-stopped | |
# Static Configuration CLI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
portainer: | |
container_name: portainer | |
restart: always | |
image: portainer/portainer | |
network_mode: bridge | |
ports: | |
- "9000:9000" |
NewerOlder