Browse Source

changed path for posts

fillkalpa 7 months ago
parent
commit
904f3b9ae4
2 changed files with 7 additions and 7 deletions
  1. 5
    5
      README.md
  2. 2
    2
      after-dark-k3s-hugo.yaml

+ 5
- 5
README.md View File

@@ -28,20 +28,20 @@ This is a multi tier deployment:
28 28
 
29 29
 * First retrieve your pod name and store it in a variable for your convenience ``$ AD_POD=$(kubectl get pods -l app=after-dark-hugo -o jsonpath='{.items[0].metadata.name}')``  
30 30
 * Create a new post  
31
-``$ kubectl exec $AD_POD -- hugo new -k post /posts/new-post.md``  or you can go ahead and copy your stuff under ``/posts`` on your host  
31
+``$ kubectl exec $AD_POD -- hugo new /my-content/post/new-post.md``  or you can go ahead and copy your stuff under ``/my-content`` on your host  
32 32
 * Apply custom styling  
33 33
 ``$ kubectl cp custom.css $AD_POD:/after-dark/flying-toasters/assets/css/custom.css``  
34 34
 * Build your draft posts  
35
-``$ kubectl exec  $AD_POD -- hugo  -D -c /posts -d /output``
36
-* Full rebuilt your site e.g after new styles appied ``$ kubectl exec  $AD_POD -- hugo -c /posts -d /output`` Note this will also revert drafts.  
37
-* Edit your posts ``$ kubectl exec -it $AD_POD -- vi /posts/my-post.md`` or directly inside your host's ``/posts``
35
+``$ kubectl exec  $AD_POD -- hugo  -D -c /my-content -d /output``
36
+* Full rebuilt your site e.g after new styles appied ``$ kubectl exec  $AD_POD -- hugo -c /my-content -d /output`` Note this will also revert drafts.  
37
+* Edit your posts ``$ kubectl exec -it $AD_POD -- vi /my-content/my-post.md`` or directly inside your host's ``/my-content``
38 38
 
39 39
 ## Browse to your site  
40 40
 
41 41
 Locate the nodeport we exposed our nginx for after-dark  
42 42
 ``$ kubectl get svc``
43 43
 The port we are looking for is the the one next to ``8080:``
44
-For instance in the example below, you would point your browser to `http://your-node-IP:32146`. Ignore the Cluster-IP shown, you want the real IP of your host.
44
+For instance in the example below, you would point your browser to `http://your-node-IP:32146`. Ignore the Cluster-IP and the External-IP shown below, you want the real IP of your host.
45 45
 
46 46
 | Name | Type | Cluster-IP | External-IP | Port(s) | Age |
47 47
 |--------------------|----------|---------------|-------------|----------------|-----|

+ 2
- 2
after-dark-k3s-hugo.yaml View File

@@ -26,7 +26,7 @@ spec:
26 26
           value: "true"
27 27
         volumeMounts:
28 28
         - name: site-content
29
-          mountPath: /posts
29
+          mountPath: /my-content
30 30
         - name: rendered-site
31 31
           mountPath: /output
32 32
         - name: repo
@@ -47,7 +47,7 @@ spec:
47 47
         emptyDir: {}
48 48
       - name: site-content
49 49
         hostPath:
50
-          path: /posts
50
+          path: /my-content
51 51
           type: DirectoryOrCreate
52 52
       - name: rendered-site
53 53
         hostPath:

Loading…
Cancel
Save