diff --git a/src/kubernetes/sample-deployment.yaml b/src/kubernetes/sample-deployment.yaml new file mode 100644 index 0000000..4979232 --- /dev/null +++ b/src/kubernetes/sample-deployment.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: kuard +spec: + selector: + matchLabels: + app: kuard + replicas: 1 + template: + metadata: + labels: + app: kuard + spec: + containers: + - image: gcr.io/kuar-demo/kuard-amd64:1 + imagePullPolicy: Always + name: kuard + ports: + - containerPort: 8080 \ No newline at end of file diff --git a/src/kubernetes/sample-ingress.yaml b/src/kubernetes/sample-ingress.yaml new file mode 100644 index 0000000..80e2065 --- /dev/null +++ b/src/kubernetes/sample-ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: kuard + annotations: {} + #cert-manager.io/issuer: "letsencrypt-staging" +spec: + ingressClassName: nginx + tls: + - hosts: + - example.example.com + secretName: quickstart-example-tls + rules: + - host: example.example.com + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: kuard + port: + number: 80 \ No newline at end of file diff --git a/src/kubernetes/sample-services.yaml b/src/kubernetes/sample-services.yaml new file mode 100644 index 0000000..c87d00e --- /dev/null +++ b/src/kubernetes/sample-services.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: kuard +spec: + ports: + - port: 80 + targetPort: 8080 + protocol: TCP + selector: + app: kuard \ No newline at end of file