|
|
|
|
|
by blinkingled
594 days ago
|
|
Just tried asking Llama 3.2:3b to write a YAML file with Kubernetes Deployment definition. It spit the yaml out but along with a ton of explanations. But when I followed up with below it did what I want it to do. >>> Remove the explanation parts and only leave yaml in place from above response.
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-deployment
spec:
replicas: 3
... Alternatively this worked as well
>>> Write a YAML file with kubernetes deployment object in it. Response should only contain the yaml file, no explanations.
... ions.
```yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-deployment
spec:
replicas: 3
selector:
matchLabels:
app: example-app
template:
metadata:
labels:
app: example-app
spec:
containers:
- name: example-container
image: nginx:latest
ports:
- containerPort: 80
``` |
|