Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/gbaeke/nasnet-go
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Mar 10, 2019
2 parents 7159086 + 6f2e401 commit 8ea066c
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
11 changes: 11 additions & 0 deletions aci.yaml
Expand Up @@ -17,6 +17,10 @@ properties:
requests:
cpu: 1
memoryInGb: 2
volumeMounts:
- mountPath: /root/.local/share/certmagic/
name: azurefile
readOnly: null
ports:
- port: 80
- port: 443
Expand All @@ -30,5 +34,12 @@ properties:
- protocol: tcp
port: '443'
restartPolicy: Always
volumes:
- azureFile:
readOnly: null
shareName: certs
storageAccountKey: ACCOUNTKEY
storageAccountName: nasnetstorage
name: azurefile
tags: null
type: Microsoft.ContainerInstance/containerGroups
16 changes: 16 additions & 0 deletions storage.md
@@ -0,0 +1,16 @@
# storage account and share

Create the storage account

az storage account create --resource-group scratch-rg --location westeurope --sku Standard_LRS --name nasnetstorage

Create the share

az storage share create --name certs --account-name nasnetstorage

Obtain the storage key

STORAGE_KEY=$(az storage account keys list --resource-group scratch-rg --account-name nasnetstorage --query "[0].value" --output tsv)
echo $STORAGE_KEY

The storage key needs to be entered in aci.yaml (search ACCOUNTKEY)
39 changes: 39 additions & 0 deletions yaml/nasnet.yaml
@@ -0,0 +1,39 @@
kind: Service
apiVersion: v1
metadata:
name: nasnet
spec:
selector:
app: nasnet
ports:
- protocol: TCP
port: 80
targetPort: 9090
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nasnet-app
labels:
app: nasnet
spec:
replicas: 2
selector:
matchLabels:
app: nasnet
template:
metadata:
labels:
app: nasnet
spec:
containers:
- name: nasnet
image: gbaeke/nasnet
resources:
limits:
cpu: "0.5"
requests:
cpu: "0.2"
ports:
- containerPort: 9090

0 comments on commit 8ea066c

Please sign in to comment.