Skip to content

Commit a2f1333

Browse files
committed
refactor: create Skaffold config for minikube
1 parent f2699af commit a2f1333

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

k8s/kkweon-okteto/grafana-agent.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ apiVersion: apps/v1
4747
kind: Deployment
4848
metadata:
4949
name: grafana-agent
50-
namespace: kkweon
5150
spec:
5251
minReadySeconds: 10
5352
replicas: 1
@@ -74,7 +73,14 @@ spec:
7473
volumeMounts:
7574
- mountPath: /etc/agent
7675
name: grafana-agent
76+
resources:
77+
limits:
78+
cpu: 100m
79+
memory: 100mi
80+
requests:
81+
cpu: 100m
82+
memory: 100mi
7783
volumes:
7884
- configMap:
7985
name: grafana-agent
80-
name: grafana-agent
86+
name: grafana-agent

k8s/kkweon-okteto/server.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
spec:
3636
containers:
3737
- image: okteto.dev/codingpot-pr12er-server
38-
imagePullPolicy: Always
38+
imagePullPolicy: IfNotPresent
3939
name: server
4040
ports:
4141
- containerPort: 9000
@@ -67,4 +67,4 @@ spec:
6767
exec:
6868
command: ["/bin/grpc_health_probe", "--addr=:9000"]
6969
initialDelaySeconds: 20
70-
periodSeconds: 60
70+
periodSeconds: 60

skaffold.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,18 @@ profiles:
1717
context: server
1818
docker:
1919
dockerfile: deploy/Dockerfile.raspberry
20+
21+
- name: minikube
22+
activation:
23+
- kubeContext: minikube
24+
deploy:
25+
kubectl:
26+
manifests:
27+
- ./k8s/kkweon-okteto/*.yaml
28+
29+
build:
30+
artifacts:
31+
- image: okteto.dev/codingpot-pr12er-server
32+
context: server
33+
docker:
34+
dockerfile: deploy/Dockerfile

0 commit comments

Comments
 (0)