diff --git a/README.md b/README.md index f036418..6b14cd5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Codius Examples -> Example [Codius services](https://godoc.org/github.com/codius/codius-crd-operator/api/v1alpha1#Service) +> Example [Codius services](https://godoc.org/github.com/codius/codius-operator/servers#Service) ### nginx diff --git a/nginx.yaml b/nginx.yaml index ef8d6e3..09f74d5 100644 --- a/nginx.yaml +++ b/nginx.yaml @@ -1,10 +1,12 @@ -apiVersion: core.codius.org/v1alpha1 -kind: Service -metadata: - name: nginx-codius-pod spec: containers: - name: app image: nginx@sha256:3e2ffcf0edca2a4e9b24ca442d227baea7b7f0e33ad654ef1eb806fbd9bedcf0 command: ["nginx", "-g", "daemon off;"] + readinessProbe: + httpGet: + path: / + port: 80 + failureThreshold: 10 + periodSeconds: 1 port: 80 diff --git a/quake.yaml b/quake.yaml index 2011ad0..df7d7ac 100644 --- a/quake.yaml +++ b/quake.yaml @@ -1,9 +1,11 @@ -apiVersion: core.codius.org/v1alpha1 -kind: Service -metadata: - name: quake3-codius-pod spec: containers: - name: app image: feraltc/quakejs-codius@sha256:be48c9fc47ea5defd1d5f9a039c47b826a833c849c3e7e564e8ad216fae51632 + readinessProbe: + httpGet: + path: / + port: 27960 + failureThreshold: 10 + periodSeconds: 1 port: 27960 diff --git a/react-app.yaml b/react-app.yaml index b351c74..60c59df 100644 --- a/react-app.yaml +++ b/react-app.yaml @@ -1,9 +1,11 @@ -apiVersion: core.codius.org/v1alpha1 -kind: Service -metadata: - name: my-codius-create-react-app spec: containers: - name: app image: androswong418/example-pod-1@sha256:8933bced1637e7d3b08c4aa50b96a45aef0b63f504f595bb890f57253af68b11 + readinessProbe: + httpGet: + path: / + port: 3000 + failureThreshold: 10 + periodSeconds: 1 port: 3000