- Debian Buster [2019-07-18]
- Debian Bullseye [2022-04-28]
apt update
apt full-upgrade
apt install certbot nginx-full| FROM mcr.microsoft.com/azure-cli:latest | |
| COPY azure-update-ddns.sh /usr/local/bin | |
| RUN chmod 755 /usr/local/bin/azure-update-ddns.sh | |
| CMD ["/usr/local/bin/azure-update-ddns.sh"] |
| /** | |
| * This little program prints out the url to the AWS console | |
| * generated from the local AWS credentials stored in environment variables: | |
| * AWS_ACCESS_KEY_ID | |
| * AWS_SECRET_ACCESS_KEY | |
| * AWS_SESSION_TOKEN | |
| * | |
| * Steps: | |
| * 1. Create a JSON object | |
| * session = JSON.stringify({ |
| multipass launch -n testvm -mem --cpu 1 --disk 5G --memory 2G 22.04 --cloud-init ~/.config/cloud-init.yml -v | |
| ip_addr=$(multipass info testvm | awk '/IPv4/ {print $NF}') | |
| ssh "ubuntu@${ip_addr}" |
| apiVersion: networking.k8s.io/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| name: ingress-{{ .Release.Name }}-frontend | |
| namespace: {{ .Release.Name }} | |
| annotations: | |
| kubernetes.io/ingress.class: "nginx-3" | |
| nginx.ingress.kubernetes.io/auth-tls-verify-client: "on" | |
| nginx.ingress.kubernetes.io/auth-tls-secret: {{ .Release.Name }}/tls-secret | |
| nginx.ingress.kubernetes.io/auth-tls-verify-depth: "1" |
To get a Kind cluster to work with an ingress controller such as NGINX Ingress Controller, you need some custom configuration of the cluster. Such a configuration file could look like:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
kubeadmConfigPatches:
- || ### Option 1 - Terraform can generate SSL/SSH private keys using the tls_private_key resource | |
| variable "key_name" {} | |
| resource "tls_private_key" "example" { | |
| algorithm = "RSA" | |
| rsa_bits = 4096 | |
| } | |
| resource "aws_key_pair" "generated_key" { |
| // | |
| // main.swift | |
| // Shell Notification Center | |
| // | |
| // Created by Keng Lee on 2021/1/15. | |
| // | |
| import Foundation | |
| import Combine | |
| var bag = Set<AnyCancellable>() |
You want to have a fresh copy instead of a template clone? Here you go
Set some variables
set GOVC_INSECURE=true
set [email protected]
set GOVC_PASSWORD=youguess
set GOVC_DATASTORE=mydatastore
| #cloud-config | |
| package_upgrade: true | |
| #ssh_authorized_keys: | |
| # - <your key> | |
| packages: | |
| - docker.io | |
| - docker-compose | |
| - jq |