In the video, I did not show all steps:
- configuring pre-requisites
- provisioning a Container App Environment
I will use ACA for Azure Container Apps.
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"serverAppID": { | |
"type": "string", | |
"metadata": { | |
"description": "ID of the server app registration (RBAC)" | |
} | |
}, |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: realtime-go | |
spec: | |
type: LoadBalancer | |
ports: | |
- protocol: TCP | |
port: 80 | |
targetPort: 8080 |
package main | |
import ( | |
"log" | |
"net/http" | |
"os" | |
"github.com/go-redis/redis" | |
socketio "github.com/googollee/go-socket.io" | |
consulapi "github.com/hashicorp/consul/api" |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: redisapp | |
labels: | |
app: redis | |
spec: | |
selector: | |
matchLabels: |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
namespace: certsync-csi | |
name: redis | |
labels: | |
app: redis | |
spec: | |
selector: |
resource vnet1 'Microsoft.Network/virtualNetworks@2020-11-01' = { | |
name: 'vnet1' | |
location: resourceGroup().location | |
properties: { | |
addressSpace: { | |
addressPrefixes: [ | |
'10.0.10.0/24' | |
] | |
} | |
subnets:[ |
All commands in the gist should be run from bash. You can use WSL (Windows Subsystem for Linux) to run the commands. You can also use the Azure Cloud Shell and select Bash instead of PowerShell.
Install Azure CLI (not needed in Azure Cloud Shell, CLI is pre-installed) and add the following Azure CLI extensions:
az extension add --name connectedk8s