Compare commits
10 Commits
1f4b7100bc
...
c2142f7f63
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c2142f7f63 | ||
![]() |
9c92d19943 | ||
aead9151c0 | |||
14636a4d3b | |||
d6d6f1893e | |||
abf6f3feda | |||
7a4d06bbef | |||
efad73a1a4 | |||
50af2eccb3 | |||
e9a7daf5b3 |
@ -1,5 +1,8 @@
|
||||
name: Build and Push Image
|
||||
on: [ push ]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -40,3 +43,19 @@ jobs:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
git.aridgwayweb.com/armistace/blog:latest
|
||||
|
||||
- name: Deploy
|
||||
run: |
|
||||
echo "Installing Kubectl"
|
||||
apt-get update
|
||||
apt-get install -y apt-transport-https ca-certificates curl gnupg
|
||||
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.33/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
|
||||
chmod 644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg
|
||||
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.33/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list
|
||||
chmod 644 /etc/apt/sources.list.d/kubernetes.list
|
||||
apt-get update
|
||||
apt-get install kubectl
|
||||
kubectl delete namespace blog
|
||||
kubectl create namespace blog
|
||||
kubectl create secret docker-registry regcred --docker-server=${{ vars.DOCKER_SERVER }} --docker-username=${{ vars.DOCKER_USERNAME }} --docker-password='${{ secrets.DOCKER_PASSWORD }}' --docker-email=${{ vars.DOCKER_EMAIL }} --namespace=blog
|
||||
kubectl apply -f kube/blog_pod.yaml && kubectl apply -f kube/blog_deployment.yaml && kubectl apply -f kube/blog_service.yaml
|
||||
|
24
kube/blog_deployment.yaml
Normal file
24
kube/blog_deployment.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: blog-deployment
|
||||
labels:
|
||||
app: blog
|
||||
namespace: blog
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: blog
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: blog
|
||||
spec:
|
||||
containers:
|
||||
- name: blog
|
||||
image: git.aridgwayweb.com/armistace/blog:latest
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
13
kube/blog_pod.yaml
Normal file
13
kube/blog_pod.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: blog
|
||||
namespace: blog
|
||||
spec:
|
||||
containers:
|
||||
- name: blog
|
||||
image: git.aridgwayweb.com/armistace/blog:latest
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
13
kube/blog_service.yaml
Normal file
13
kube/blog_service.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: blog-service
|
||||
namespace: blog
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: blog
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8000
|
||||
nodePort: 30009
|
@ -1,4 +1,10 @@
|
||||
# When to use AI
|
||||
Title: When to use AI
|
||||
Date: 2025-06-05 20:00
|
||||
Modified: 2025-06-06 08:00
|
||||
Category: AI, Data
|
||||
Tags: ai, python
|
||||
Slug: when-to-use-ai
|
||||
Authors: Andrew Ridgway
|
||||
|
||||
## The Great AI Debate: When to Trust the Machine vs. When to Stick to Your Brain
|
||||
|
||||
@ -43,52 +49,3 @@ AI is good at *finding connections* and *handling ambiguity*, but it’s *not go
|
||||
|
||||
> *“I was given a list of work types that could be grouped into 1 of 2 categories exclusively.”*
|
||||
> *“The problem was… the ‘work types’ and work requests were at best tangentially related.”*
|
||||
|
||||
So I had to manually read each work type and map it to a work request. It was a *shudder-inducing* task.
|
||||
|
||||
## The Final Thought
|
||||
|
||||
So, in summary:
|
||||
|
||||
* **AI is not the best choice** when you need precision, accuracy, or a human touch.
|
||||
* **AI is the best choice** when you need to handle ambiguity, find connections, or automate repetitive tasks.
|
||||
|
||||
And that’s why I’m a journalist, a developer, and a DevOps expert. I know when to trust the machine and when to rely on my brain.
|
||||
|
||||
> *“When in doubt, just do it.”*
|
||||
|
||||
## Editable Structure for Easy Customization
|
||||
|
||||
### 📝 Title When to use AI
|
||||
|
||||
### 🧠 Introduction
|
||||
|
||||
* Briefly explain the question and the tone.
|
||||
|
||||
### 🧩 Sections
|
||||
|
||||
1. **When AI is Not the Best Choice**
|
||||
* Subpoints:
|
||||
* Fuzzy logic dilemmas
|
||||
* Manual mapping tasks
|
||||
* Precision vs. AI’s “fuzzy” logic
|
||||
2. **When AI is the Best Choice**
|
||||
* Subpoints:
|
||||
* Math and logic tasks
|
||||
* Automation of repetitive tasks
|
||||
* Suggesting numbers or constants
|
||||
3. **The Human vs. AI Divide**
|
||||
* Highlight the importance of human judgment in critical tasks
|
||||
4. **Final Thought**
|
||||
* Encourage readers to think critically about when to use AI
|
||||
|
||||
### 📝 Conclusion
|
||||
|
||||
* Wrap up the key points and reinforce the message.
|
||||
|
||||
## Tips for Editing
|
||||
|
||||
* Replace the example about the spreadsheet with your own scenario.
|
||||
* Add a personal anecdote or a relatable example.
|
||||
* Use humor to keep the tone light and engaging.
|
||||
* Add a call to action: “Next time you’re stuck, ask yourself: ‘Is this a task for AI or a task for me?’”
|
Loading…
x
Reference in New Issue
Block a user