Skip to content

Commit d544b92

Browse files
frodesundbyandnordajhrv
committed
new colors
blog posts Co-authored-by: Andreas Nordahl <[email protected]> Co-authored-by: Johnny Horvi <[email protected]>
1 parent 87ba91b commit d544b92

19 files changed

+517
-528
lines changed

package-lock.json

+134
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"eslint-plugin-svelte": "^2.36.0",
2323
"globals": "^15.0.0",
2424
"mdsvex": "^0.12.3",
25+
"mdsvex-relative-images": "^1.0.3",
2526
"prettier": "^3.3.2",
2627
"prettier-plugin-svelte": "^3.2.6",
2728
"svelte": "^5.0.0",

src/lib/Brukere.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
z-index: -1;
4141
}
4242
.section::after {
43-
background: linear-gradient(to right, #3380a512, #6ee5c212);
43+
background: linear-gradient(to right, #3381a53e, #6ee5c125);
4444
}
4545
.users {
4646
font-size: 3rem;

src/lib/Glances.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@
6767
z-index: -1;
6868
}
6969
.glances::after {
70-
background: linear-gradient(to right, #ff910012, #f7689012);
70+
background: linear-gradient(to right, #ff91002a, #f7689124);
7171
}
7272
</style>

src/lib/Header.svelte

+4-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
</button>
3434
<nav class="main-menu" class:isOpen>
3535
<ul class="main-menu-list">
36-
<li><a class:isActive={isActive("blogg")} href="/blog">Blogg</a></li>
36+
<!-- <li><a class:isActive={isActive("blogg")} href="/blog">Blogg</a></li> -->
37+
<li><a class="main-menu-item" href="https://nais.io/blog">Blogg</a></li>
3738
<li><a class="main-menu-item" href="https://docs.nais.io">Dokumentasjon</a></li>
3839
<!-- <li><a class="main-menu-item" href="/annonseringer" class:isActive={isActive('annonseringer')}>Annonseringer</a></li> -->
3940
<!-- <li>
@@ -87,11 +88,11 @@
8788
}
8889
.header::before {
8990
transform: translate(-75%, -60%);
90-
background: linear-gradient(to right, #ff910012, #f7689028, #6200ff15);
91+
background: linear-gradient(to right, #ff910067, #f7689155, #6200ff51);
9192
}
9293
.header::after {
9394
transform: translate(0, -60%);
94-
background: linear-gradient(to right, #3380a518, #6ee5c218);
95+
background: linear-gradient(to right, #3381a542, #6ee5c131);
9596
}
9697
9798
.home {

src/routes/blog/+page.server.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
interface Post {
22
route: string;
3-
content: string;
43
metadata: {
54
title: string;
65
date: string;

src/routes/blog/posts/+layout.svelte

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<slot />

src/routes/blog/posts/changing-service-mesh/+page.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ author: Frode Sundby
77
tags: [istio, linkerd, LoadBalancing]
88
---
99

10-
1110
## Why change?
1211
With an ambition of making our environments as secure as possible, we jumped on the service-mesh bandwagon in 2018 with Istio 0.7 and have stuck with it since.
1312

@@ -23,7 +22,7 @@ We looked to the grand ol' Internet for alternatives and fixed our gaze on the r
2322
Having honed in on our preferred candidate, we decided to take it for a quick spin in a cluster and found our suspicions to be accurate.
2423

2524
Rarely has a meme depicted a feeling more strongly
26-
<!--![service-mesh-experiance](/blog/images/service-mesh-experience.jpg)-->
25+
![service-mesh-experiance](./images/service-mesh-experience.jpg)
2726

2827
Even though we'd invested a lot of time and built in quite a bit of Istio into our platform, we knew we had to make the change.
2928

@@ -36,7 +35,7 @@ The traffic was then forwarded to the Istio Ingressgateway, who in turn sent it
3635
Before the Ingressgateway could reach the application, both NetworkPolicies and AuthorizationPolicies were required to allow the traffic.
3736
We used an [operator](https://github.com/nais/naiserator) to configure these policies when an application was deployed.
3837

39-
<!-- ![changing-service-mesh](/blog/images/changing-service-mesh-1.png) -->
38+
![changing-service-mesh-1](./images/changing-service-mesh-1.png)
4039

4140
### New LoadBalancers and ingress controllers
4241
Since our LoadBalancers were configured by (and sent traffic to) Istio, we had to change the way we configured them.
@@ -86,7 +85,7 @@ spec:
8685
```
8786

8887
Alrighty. We'd now gotten ourselves a brand new set of independantly configured LoadBalancers and a shiny new Ingress Controller.
89-
<!-- ![changing-service-mesh](/blog/images/changing-service-mesh-2.png) -->
88+
![changing-service-mesh-2](./images/changing-service-mesh-2.png)
9089

9190
However - if we'd started shipping traffic to the new components at this stage, things would start breaking as there were no ingresses in the cluster - only VirtualServices.
9291
To avoid downtime, we created an interim ingress that forwarded all traffic to the Istio IngressGateway:
@@ -104,7 +103,7 @@ spec:
104103
path: /
105104
...
106105
```
107-
<!-- ![changing-service-mesh](/blog/images/changing-service-mesh-3.png) -->
106+
![changing-service-mesh-3](./images/changing-service-mesh-3.png)
108107
With this ingress in place, we could reach all the existing VirtualServices exposed by the Istio Ingressgateway via the new Loadbalancers and Nginx.
109108
And we could point our DNS records to the new rig without anyone noticing a thing.
110109

@@ -127,7 +126,7 @@ One thing we didn't take into concideration (but should have), was that some app
127126
When an ingress was created for a shared hostname, Nginx would stop forwarding requests for these hosts to Istio Ingressgateway, resulting in non-migrated applications not getting any traffic.
128127
Realizing this, we started migrating applications on the same hostname simultaneously too.
129128

130-
<!-- ![changing-service-mesh](/blog/images/changing-service-mesh-4.png) -->
129+
![changing-service-mesh-4](./images/changing-service-mesh-4.png)
131130
And within a couple of hours, all workloads were migrated and we had ourselves a brand spanking new service-mesh in production.
132131
And then they all lived happily ever after...
133132

@@ -137,7 +136,7 @@ Except that we had to clean up Istio's mess.
137136
What was left after the party was a fully operational Istio control plane, a whole bunch of Istio CRD's and a completely unused set of LoadBalancers. In addition we had to clean up everything related to Istio in a whole lot of pipelines and components
138137

139138

140-
<!-- ![changing-service-mesh](/blog/images/changing-service-mesh-5.png)
141-
![changing-service-mesh](/blog/images/changing-service-mesh-6.png) -->
139+
![changing-service-mesh-5](./images/changing-service-mesh-5.png)
140+
![changing-service-mesh-6](./images/changing-service-mesh-6.png)
142141

143142
It has to be said - there is a certain satisfaction in cleaning up after a party that has been going on for too long.
Loading
Loading
Loading
Loading
Loading
Loading
Loading

src/styles/app.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
body {
1010
font-family: 'Poppins', sans-serif;
11-
background-color: #f7fafe;
11+
background-color: #faf3f8;
1212
color: #222;
1313
}
1414
a {

static/nysky.png

207 KB
Loading

svelte.config.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
import adapter from "@sveltejs/adapter-static";
22
import path from "path";
33
import { mdsvex } from "mdsvex";
4+
import remarkRelativeImages from "mdsvex-relative-images";
5+
46

57
/** @type {import('@sveltejs/kit').Config} */
68
const config = {
79
// Consult https://github.com/sveltejs/svelte-preprocess
810
// for more information about preprocessors
911
extensions: ['.svelte', '.svx', '.md'],
10-
preprocess: mdsvex({extensions: ['.svx', '.md']}),
12+
preprocess: [
13+
mdsvex({
14+
extensions: ['.svx', '.md', '.mdx'],
15+
remarkPlugins: [remarkRelativeImages],
16+
})
17+
],
1118

1219
kit: {
1320
adapter: adapter({

0 commit comments

Comments
 (0)