Skip to content

Commit f6dd6a4

Browse files
committed
Change namespace from cdn to understack-cdn
1 parent 825c389 commit f6dd6a4

10 files changed

Lines changed: 19 additions & 19 deletions

File tree

apps/site/cdn.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

apps/site/understack-cdn.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
component: understack-cdn
3+
sources:
4+
- ref: understack
5+
path: 'components/understack-cdn'
6+
- ref: deploy
7+
path: '{{.name}}/manifests/understack-cdn'
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Images are stored in Object Store
44

5-
Cacheing reverse-proxies at each fabric will fetch the images from Object Store
5+
Caching reverse-proxies at each fabric will fetch the images from Object Store
66
and make them available via HTTPS.
77

88
This allows a device to access firmware images via an HTTPS request to a
@@ -26,8 +26,8 @@ Our credentials and bucket info is in a secret and a configmap both named after
2626
the bucketclaim:
2727

2828
``` sh
29-
KEY_ID=`kubectl -n cdn get secrets firmware-images -o jsonpath='{.data.AWS_ACCESS_KEY_ID}' | base64 -d`
30-
KEY=`kubectl -n cdn get secrets firmware-images -o jsonpath='{.data.AWS_SECRET_ACCESS_KEY}' | base64 -d`
29+
KEY_ID=`kubectl -n understack-cdn get secrets firmware-images -o jsonpath='{.data.AWS_ACCESS_KEY_ID}' | base64 -d`
30+
KEY=`kubectl -n understack-cdn get secrets firmware-images -o jsonpath='{.data.AWS_SECRET_ACCESS_KEY}' | base64 -d`
3131
```
3232

3333
I was able to manage the bucket using the minio CLI client called "mc".
@@ -48,12 +48,12 @@ mc anonymous set download myrook/firmware-images/DELL/R7615/BIOS_H3TGJ_WN64_1.15
4848

4949
## Testing with curl
5050

51-
curl https://cdn.dev.undercloud.rackspace.net/DELL/R7615/BIOS_H3TGJ_WN64_1.15.3.EXE | sha256sum
51+
curl https://cdn.dev.undercloud.rackspace.net/firmware-images/DELL/R7615/BIOS_H3TGJ_WN64_1.15.3.EXE | shasum
5252

53-
## See nginx logs to check that it is Cacheing
53+
## See nginx logs to check that it is Caching
5454

5555
``` sh
56-
⇒ kubectl -n cdn logs deployments/cdn-edge
56+
⇒ kubectl -n understack-cdn logs deployments/cdn-edge
5757
Defaulted container "nginx" out of: nginx, cache-dir-init (init)
5858
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
5959
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: cdn-edge
5-
namespace: cdn
5+
namespace: understack-cdn
66
labels:
77
app: cdn-edge
88
spec:
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
kind: Namespace
33
metadata:
4-
name: cdn
4+
name: understack-cdn

components/cdn/nginx-config.yaml renamed to components/understack-cdn/nginx-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: ConfigMap
33
metadata:
44
name: nginx-config
5-
namespace: cdn
5+
namespace: understack-cdn
66
data:
77
nginx.conf: |
88
worker_processes auto;

components/cdn/object-bucket-claim.yaml renamed to components/understack-cdn/object-bucket-claim.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: objectbucket.io/v1alpha1
22
kind: ObjectBucketClaim
33
metadata:
44
name: firmware-images
5-
namespace: cdn
5+
namespace: understack-cdn
66
spec:
77
bucketName: firmware-images
88
storageClassName: ceph-bucket
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v1
33
kind: PersistentVolumeClaim
44
metadata:
55
name: nginx-cache
6-
namespace: cdn
6+
namespace: understack-cdn
77
spec:
88
accessModes:
99
- ReadWriteOnce
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: cdn-edge
5-
namespace: cdn
5+
namespace: understack-cdn
66
spec:
77
selector:
88
app: cdn-edge

0 commit comments

Comments
 (0)