avatarRenee LIN

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

2567

Abstract

ding the request.</li><li><b>nginx.ingress.kubernetes.io/ssl-redirect</b>: Automatically redirect HTTP traffic to HTTPS.</li><li><b>nginx.ingress.kubernetes.io/limit-connections</b>: Limit the number of simultaneous connections to a service.</li><li><b>nginx.ingress.kubernetes.io/proxy-body-size</b>: Set the maximum body size for client requests.</li></ul><h1 id="42c1">TLS Termination</h1><p id="9937">TLS termination at the Ingress Controller level can be configured to offload SSL/TLS decryption from backend services. This involves creating TLS certificates using Kubernetes secrets and referencing them in Ingress resources.</p><p id="40af"><b>Example TLS Termination Configuration:</b></p><div id="8001"><pre><span class="hljs-attr">apiVersion:</span> <span class="hljs-string">networking.k8s.io/v1</span> <span class="hljs-attr">kind:</span> <span class="hljs-string">Ingress</span> <span class="hljs-attr">metadata:</span> <span class="hljs-attr">name:</span> <span class="hljs-string">example-ingress</span> <span class="hljs-attr">spec:</span> <span class="hljs-attr">tls:</span> <span class="hljs-bullet">-</span> <span class="hljs-attr">hosts:</span> <span class="hljs-bullet">-</span> <span class="hljs-string">example.com</span> <span class="hljs-attr">secretName:</span> <span class="hljs-string">example-tls-secret</span> <span class="hljs-attr">rules:</span> <span class="hljs-bullet">-</span> <span class="hljs-attr">host:</span> <span class="hljs-string">example.com</span> <span class="hljs-attr">http:</span> <span class="hljs-attr">paths:</span> <span class="hljs-bullet">-</span> <span class="hljs-attr">path:</span> <span class="hljs-string">/</span> <span class="hljs-attr">pathType:</span> <span class="hljs-string">Prefix</span> <span class="hljs-attr">backend:</span> <span class="hljs-attr">service:</span> <span class="hljs-attr">name:</span> <span class="hljs-string">example-service</span> <span class="hljs-attr">port:</span> <span class="hljs-attr">number:</span> <span class="hljs-number">80</span></pre></div><h1 id="dade">Usage</h1><h2 id="06f9">Creating Ingress Resources</h2><p id="8dbb">Ingress resources define how incoming traffic should be routed to services within the Kubernetes cluster. They specify rules based on hostnames and paths.</p><p id="0d6b"><b>Example Ingress Resource:</b></p><div id="7eab"><pre><span class="hljs-attr">apiVersion:</span> <span class="hljs-string">networking.k8s.io/v1</span> <span class="hljs

Options

-attr">kind:</span> <span class="hljs-string">Ingress</span> <span class="hljs-attr">metadata:</span> <span class="hljs-attr">name:</span> <span class="hljs-string">example-ingress</span> <span class="hljs-attr">spec:</span> <span class="hljs-attr">rules:</span> <span class="hljs-bullet">-</span> <span class="hljs-attr">host:</span> <span class="hljs-string">example.com</span> <span class="hljs-attr">http:</span> <span class="hljs-attr">paths:</span> <span class="hljs-bullet">-</span> <span class="hljs-attr">path:</span> <span class="hljs-string">/app</span> <span class="hljs-attr">pathType:</span> <span class="hljs-string">Prefix</span> <span class="hljs-attr">backend:</span> <span class="hljs-attr">service:</span> <span class="hljs-attr">name:</span> <span class="hljs-string">app-service</span> <span class="hljs-attr">port:</span> <span class="hljs-attr">number:</span> <span class="hljs-number">80</span> <span class="hljs-bullet">-</span> <span class="hljs-attr">path:</span> <span class="hljs-string">/api</span> <span class="hljs-attr">pathType:</span> <span class="hljs-string">Prefix</span> <span class="hljs-attr">backend:</span> <span class="hljs-attr">service:</span> <span class="hljs-attr">name:</span> <span class="hljs-string">api-service</span> <span class="hljs-attr">port:</span> <span class="hljs-attr">number:</span> <span class="hljs-number">80</span></pre></div><h1 id="7135">Testing</h1><p id="40ff">Once the Ingress resources are created, you can verify the routing by accessing your services using the specified paths and hostnames.</p><div id="78c0"><pre><span class="hljs-variable"> </span>curl <span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/example.com/app</span></pre></div><div id="466d"><pre><span class="hljs-variable"> </span>curl <span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/example.com/api</span></pre></div><h1 id="b3cd">Conclusion</h1><p id="17b6">Nginx Ingress Controller is a powerful tool for managing inbound traffic to your Kubernetes cluster. By following this guide and experimenting with different configurations, you can effectively route traffic to your services, enforce security policies, and optimize the performance of your applications. Be sure to explore additional features and advanced configurations available in the official documentation to further enhance your networking setup.</p></article></body>

The Ultimate Midjourney Prompt Guide 2023

Picture by author

As I mentioned in this post, I wanted to get some degree of control on generating the images. After learning from MidJourney’s documentation and experiments, I’ve gained more knowledge than last time. Although there is much more to learn, I’d like to share what I have learned this time. In the next post, I will research on how to create rich text prompts to generate images, since the newest version Midjourney V5 prefers detailed descriptions.

  1. Basic — official user guide
  2. Medium — focus on styles
  3. Advanced — having more control

And later this month I tried to create consistent characters with your desired reference Pictures.

1. Basic — official user guide

I always start learning a tool from its documentation, so I checked MidJourney’s user guide. There are nine parameters we can play around with. In my opinion, version, seed, chaos and stylize are more important because they are related to the content or backbone of the images. While the rest parameters, including quality, aspect ratio, stop, tile and video, are more related to the format of the generated images.

(1) Version

The default setting is version 4. I didn’t know it before reading the user guide, which means I’ve never tried version 5 yet.

using the --version or --v parameter 
or by using the /settings command and selecting a model version. 
screenshot by author
screenshot by author

(2) Seed

I think the seeds are important as I want to generate the same picture using the same prompt after I pick my favourite image.

--seed accepts whole numbers 0–4294967295.

We can use a random number each time, but if we forget, we could still find the seed information by sending the post an envelope emoji.

screenshot by author

(3) Chaos

Chaos is used to variant the images of different generations; it is useful to try a wider range at the beginning. The default is 0 (maximum is 100), which means you will get similar images if you use the same prompt every time.

screenshot by author

(4) Stylize

This parameter influences how artistic the image is. Let me try 750 on the Splatoon girl.

--stylize's default value is 100 and accepts integer values 0–1000

Wow, I like this.

(5) The rest parameters

  • Quality, output resolution, and the default value is 1, the highest quality.
  • Aspect ratio, the size of the image
  • Tile, generating images that can be used as repeating tiles
  • Stop, stop at any point of the generation process
  • Video, saving how the image evolves

2. Medium — focus on styles

There are different styles we can specify. The difficult part is, we need more art knowledge. For example, you can specify an artist’s style if you know his/her name.

Thanks to GPT, we can find out the style names faster than ever.

screenshot by author
screenshot by author

(1) Genre

  • Retro Video Game/ Anime/ Comic book / Kawaii Styles
  • More specifically, like Cyber Punk/ Pixar Movie Styles
picture by author
picture by author

(2) Artists

These ones failed; I think the Splatoon style is too impactful…

Picture by author

(3) Filming terms like lighting, angle

Picture by author
Picture by author

The list is endless, just find out the terms or texts describing the style you like with the help of ChatGPT.

3. Advanced — having more control

Some advanced techniques are listed in the documentation too.

(1) Weighting Your Prompts

Adding a double colon :: to a prompt indicates that each part of the prompt is separated. Assign values to define the weights.

Picture by author

(2) Exclude the object using the “no” keyword

picture by author

(3) Remix

Remix is a nice way to edit based on the original image.

Activate Remix mode with the /prefer remix command 
or by using the /settings command and toggling the 🎛️ Remix Mode button.
picture by author

I forgot to include the seed information

Try again:

picture by author

Assign “Dark” sunglasses. Darker, but the image is not

picture by author

(4) Based on your uploaded image

Upload(drag and drop or click the + button) the image, open the image in the browser to copy the link, and add the previous text prompt. I thought I could edit the uploaded image, but it seems to capture how the text is placed in the Nier picture. In other words, instead of editing on top of your image, it applies the style of your image to the text prompt.

If you liked posts like this, you might also like a Medium membership. It’s only $5 a month, but it will give you unlimited access to articles while supporting your favourite writers. If you sign up using this link, I’ll earn a small commission. Thanks!

Here is the Table of Contents for My Medium Posts

The other related posts on exploring how to use AI tools:

  1. How to use DALL-E 2 to create images from text
  2. How to use Stable-Diffusion to create images from text
  3. Using DreamFusion to Generate 3D Models from Text
  4. The New Impressive Text-to-Music Model by Google
  5. Safe Ways to Use ChatGPT to Study Better (No Cheating)
  6. Four Problems Bother Me When Using MidJourney+ChatGPT as a Beginner
  7. Try Hugging Face’s Open Source Text-to-Video Model (modelscope-text-to-video-synthesis)
  8. Adobe Firefly is All You Need
  9. How to Use ChatGPT to Accelerate Literature Review
  10. The Ultimate Midjourney Prompt Guide 2023
  11. What is Prompt Engineering? Will it Last Long? Do We Need to Learn It?
  12. ChatGPT in Healthcare
Generative Ai
AI
Midjourney
Image Generation
Prompt Engineering
Recommended from ReadMedium